-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
52 lines (43 loc) · 1.39 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from pathlib import Path
from setuptools import setup, find_packages
from utils.setup_utils.get_ext import get_ext_modules_n_cmdclass
ROOT_DIR = Path(__file__).parent
# make description
readme = ROOT_DIR.joinpath('README.md')
if readme.exists():
with readme.open() as f:
long_description = f.read()
try:
from pypandoc import convert_text
long_description = convert_text(
long_description, 'rst', format='md')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
else:
long_description = '-'
# get cython extension
ext_modules, cmdclass = get_ext_modules_n_cmdclass()
setup(
name="text-normalizer",
version="0.1.3",
description="Yoctol Natural Language Text Normalizer",
license="MIT",
author="Solumilken",
author_email="[email protected]",
url="https://github.com/Yoctol/text-normalizer",
packages=find_packages(),
install_requires=[
'pandas;python_version>="3.5"',
'pandas<0.21;python_version<"3.5"',
],
python_requires=">=3.5",
long_description=long_description,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
include_package_data=True,
cmdclass=cmdclass,
ext_modules=ext_modules,
)