-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (42 loc) · 1.37 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
import os
from setuptools import setup, find_packages
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
long_description = open('README.md').read()
__version__ = ""
exec(open('opentc/icap/setting.py').read())
if os.path.islink("opentc/util"):
os.remove("opentc/util")
setup(
name='opentc-icap',
version=__version__,
description='ICAP Server for OpenTC (A text classification engine using machine learning)',
long_description=long_description,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Text Processing :: Filters'
],
keywords='machine learning cnn svm bayesian',
url='https://github.com/cahya-wirawan/opentc-icap',
author='Cahya Wirawan',
author_email='Cahya.Wirawan@gmail.com',
license='MIT',
packages=find_packages('.'),
package_dir={'': '.'},
install_requires=[
'opentc-util',
'pyicap',
'python-magic',
'python-multipart',
'PyYAML',
'textract'
],
scripts=['bin/opentc-icap'],
data_files=[('/etc/opentc-icap', ['config/opentc-icap.yml', 'config/logging.yml'])],
include_package_data=True,
zip_safe=False)