forked from DistrictDataLabs/product-classifier
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
42 lines (34 loc) · 1.17 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
#!/usr/bin/env python
try:
from setuptools import setup
from setuptools import find_packages
except ImportError:
raise ImportError("Could not import \"setuptools\". Please install the setuptools package.")
packages = find_packages(where=".",
exclude=('tests', 'bin', 'docs', 'fixtures', 'conf'))
requires = []
with open('requirements.txt', 'r') as reqfile:
for line in reqfile:
requires.append(line.strip())
classifiers = (
'Intended Audience :: Developers',
'License :: Other/Proprietary License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
)
config = {
"name": "Product Classifier",
"version": "1.0",
"description": "Classify products into categories by their name with NLTK",
"author": "Benjamin Bengfort",
"author_email": "[email protected]",
"url": "https://github.com/georgetown-analytics/product-classifier",
"packages": packages,
"install_requires": requires,
"classifiers": classifiers,
"zip_safe": False,
"scripts": ['bin/apparel-classify.py',],
}
setup(**config)