-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
106 lines (92 loc) · 3.42 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
from setuptools import setup
import glob
import re
VERSION_FILE_PATH = 'concrete/version.py'
VERSION_RE = re.compile(
r'^__version__ = (?P<quote>[\'"])(?P<version>[0-9]+\.[0-9]+\.[0-9]+(?:\.dev[0-9]+)?)(?P=quote)$'
)
with open("README.rst", "r", encoding="utf-8") as fh:
long_description = fh.read()
def get_version():
with open(VERSION_FILE_PATH) as f:
for line in f:
m = VERSION_RE.match(line.rstrip())
if m is not None:
return m.group('version')
raise Exception('unable to determine version from %s' % VERSION_FILE_PATH)
if __name__ == '__main__':
setup(
name="concrete",
version=get_version(),
description="Python modules and scripts for working with Concrete",
long_description=long_description,
packages=[
'concrete',
# Python code generated by Thrift Compiler
'concrete.access',
'concrete.annotate',
'concrete.audio',
'concrete.clustering',
'concrete.communication',
'concrete.context',
'concrete.convert',
'concrete.email',
'concrete.entities',
'concrete.exceptions',
'concrete.language',
'concrete.learn',
'concrete.linking',
'concrete.metadata',
'concrete.nitf',
'concrete.property',
'concrete.search',
'concrete.services',
'concrete.services.results',
'concrete.situations',
'concrete.spans',
'concrete.structure',
'concrete.summarization',
'concrete.twitter',
'concrete.uuid',
# Python code generated by people
'concrete.util',
],
scripts=glob.glob('scripts/*.py')
+ glob.glob('concrete/services/*-remote'),
install_requires=[
'boto',
'bottle',
'humanfriendly',
'networkx<2.8',
'thrift==0.16.0',
'redis>=2.10.0',
'pycountry>=17.9.23',
'requests',
],
url="https://github.com/hltcoe/concrete-python",
classifiers=[
'Development Status :: 4 - Beta',
#'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Database :: Front-Ends',
'Topic :: Multimedia :: Sound/Audio :: Speech',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
'Topic :: Text Processing :: Linguistic',
'Topic :: Utilities',
],
)