forked from vertexproject/synapse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
100 lines (84 loc) · 2.84 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
VERSION = '2.26.0'
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'
def run(self):
tag = os.getenv('CIRCLE_TAG', '')
tag = tag.lstrip('v')
if tag != VERSION:
info = f"Git tag: {tag} does not match the version of this app: {VERSION}"
sys.exit(info)
long_description_content_type = None
long_description = None
readme = './README.rst'
if os.path.exists(readme):
print(f'Adding {readme} contents as the long description.')
with open('./README.rst', 'rb') as fd:
buf = fd.read()
long_description = buf.decode()
long_description_content_type = 'text/x-rst'
setup(
name='synapse',
version=VERSION,
description='Synapse Intelligence Analysis Framework',
long_description=long_description,
long_description_content_type=long_description_content_type,
author='The Vertex Project LLC',
author_email='[email protected]',
url='https://github.com/vertexproject/synapse',
license='Apache License 2.0',
packages=find_packages(exclude=['scripts',
]),
include_package_data=True,
install_requires=[
'pyOpenSSL>=16.2.0,<20.0.0',
'msgpack>=1.0.2,<1.1.0',
'xxhash>=1.4.4,<2.0.0',
'lmdb>=1.0.0,<1.1.0',
'tornado>=6.0.3,<7.0.0',
'regex>=2020.5.14',
'PyYAML>=5.2,<6.0',
'aiohttp>=3.6.3,<4.0',
'aiohttp-socks>=0.5.5,<0.6.0',
'prompt-toolkit>=3.0.4,<3.1.0',
'lark-parser>=0.9.0,<0.11.0',
'Pygments>=2.6.0,<2.7.0',
'packaging>=20.0,<21.0',
'fastjsonschema>=2.14.3,<2.15',
],
extras_require={
'docs': [
'nbconvert==5.6.1',
'sphinx>=1.8.2,<2.0.0',
'jupyter>=1.0.0,<2.0.0',
'hide-code>=0.5.2,<0.5.3',
'nbstripout>=0.3.3,<1.0.0',
'sphinx-rtd-theme>=0.4.2,<1.0.0',
],
'dev': [
'pytest>=5.1.0,<6.0.0',
'autopep8>=1.5.4,<2.0.0',
'pytest-cov>=2.9.0,<3.0.0',
'pycodestyle>=2.6.0,<3.0.0',
'bump2version>=1.0.0,<1.1.0',
'pytest-xdist>=1.32.0,<2.0.0',
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Topic :: System :: Clustering',
'Topic :: System :: Distributed Computing',
'Topic :: System :: Software Distribution',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
cmdclass={
'verify': VerifyVersionCommand,
},
)