-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
50 lines (39 loc) · 1.4 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
from setuptools import setup, find_packages
def parse_requirements(fn):
with open(fn) as f:
return [req for req in f.read().strip().split('\n') if "#" not in req]
parsed_requirements = parse_requirements(
'requirements.txt',
)
parsed_test_requirements = parse_requirements(
'requirements.txt',
)
requirements = [str(ir) for ir in parsed_requirements]
test_requirements = [str(tr) for tr in parsed_test_requirements]
with open('DESCRIPTION.rst') as description_file:
description = description_file.read()
setup(
name='text_preprocessing',
version='0.1.1',
description="A python package for text preprocessing task in natural language processing",
long_description=description,
url='https://github.com/berknology/text-preprocessing',
license="BSD license",
author="He Hao",
author_email='berknology@gmail.com',
packages=find_packages(include=['text_preprocessing', 'text_preprocessing.*']),
include_package_data=True,
install_requires=requirements,
zip_safe=False,
keywords='NLP',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
test_suite='tests',
tests_require=test_requirements
)