-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
65 lines (58 loc) · 2.2 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
import os
import re
from setuptools import setup, find_packages
PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(PACKAGE_DIR, 'requirements.txt')) as f:
install_requires = f.read().splitlines()
install_requires = [l for l in install_requires if not l.startswith('#')]
tests_requirements_file = os.path.join(PACKAGE_DIR, 'tests/requirements.txt')
# in the release tar.gz file, there will be no tests_requirements_file
if os.path.isfile(tests_requirements_file):
with open(tests_requirements_file) as f:
tests_require = f.read().splitlines()
tests_require = [l for l in tests_require if not l.startswith('#')]
else:
tests_require = []
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
VERSIONFILE = os.path.join(PACKAGE_DIR, "chunkflow/__version__.py")
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^version = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
version = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." %
(VERSIONFILE, ))
setup(
name='chunkflow',
description='Composable image chunk operators to create pipeline' +
' for distributed computation.',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license='Apache License 2.0',
version=version,
author='Jingpeng Wu',
author_email='jingpeng.wu@gmail.com',
packages=find_packages(exclude=['bin', 'docker', 'kubernetes']),
url='https://github.com/seung-lab/chunkflow',
install_requires=install_requires,
tests_require=tests_require,
entry_points='''
[console_scripts]
chunkflow=chunkflow.flow.flow:main
''',
classifiers=[
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires='>=3',
zip_safe=False,
)