-
Notifications
You must be signed in to change notification settings - Fork 44
/
setup.py
78 lines (69 loc) · 2.95 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
"""Setup script."""
import re
from os import path
from io import open
from setuptools import setup, find_packages
__encode__ = 'utf8'
DISTNAME = 'pyss3'
DESCRIPTION = ("Python package that implements the SS3 text classifier (with "
"visualizations tools for XAI)")
AUTHOR = 'Sergio Burdisso'
AUTHOR_EMAIL = 'sergio.burdisso@gmail.com, sburdisso@unsl.edu.ar'
URL = "https://github.com/sergioburdisso/pyss3"
LICENSE = "MIT License"
CLASSIFIERS = ['Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Visualization',
'Operating System :: OS Independent']
__cwd__ = path.abspath(path.dirname(__file__))
__readme_file__ = path.join(__cwd__, 'README.md')
with open(__readme_file__, encoding=__encode__) as readme:
LONG_DESCRIPTION = readme.read()
_version_re__ = r"__version__\s*=\s*['\"]([^'\"]+)['\"]"
__init_file__ = path.join(__cwd__, '%s/__init__.py' % DISTNAME)
with open(__init_file__, encoding=__encode__) as __init__py:
VERSION = re.search(_version_re__, __init__py.read()).group(1)
if __name__ == "__main__":
setup(name=DISTNAME,
version=VERSION,
maintainer=AUTHOR,
maintainer_email=AUTHOR_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
packages=find_packages(),
package_data={DISTNAME: ['resources/**/*', 'resources/**/**/*']},
include_package_data=True,
classifiers=CLASSIFIERS,
python_requires='>=2.7',
install_requires=['six',
'cython',
'scikit-learn[alldeps]>=0.20',
'tqdm>=4.8.4',
'matplotlib',
'iterative-stratification'],
tests_require=['pytest',
'pytest-mock'
'pytest-cov>=2.5'
'codecov',
'flake8',
'six',
'cython',
'scikit-learn[alldeps]>=0.20',
'tqdm>=4.8.4',
'matplotlib',
'iterative-stratification'],
extras_require={
':python_version >= "3"': ['stylecloud'],
},
entry_points={'console_scripts': ['pyss3=pyss3.cmd_line:main']})