-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
67 lines (60 loc) · 2.19 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
import os.path as osp
from setuptools import setup, find_packages
MIN_PY_VER = '3.6'
DISTNAME = 'ReconstructOrder'
DESCRIPTION = 'Reconstruct birefringence, slow axis, bright-field, and degree of polarization from polarization-resolved images.'
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
LONG_DESCRIPTION_content_type = "text/markdown"
# LONG_DESCRIPTION = __doc__
LICENSE = 'Chan Zuckerberg Biohub Software License'
DOWNLOAD_URL = 'https://github.com/czbiohub/ReconstructOrder'
INSTALL_REQUIRES = []
REQUIRES = []
CLASSIFIERS = [
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Utilities',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'
]
# populate packages
PACKAGES = [package for package in find_packages()]
# parse requirements
with open(osp.join('requirements', 'default.txt')) as f:
requirements = [line.strip() for line in f
if line and not line.startswith('#')]
# populate requirements
for l in requirements:
sep = l.split(' #')
INSTALL_REQUIRES.append(sep[0].strip())
if len(sep) == 2:
REQUIRES.append(sep[1].strip())
if __name__ == '__main__':
setup(
name=DISTNAME,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type=LONG_DESCRIPTION_content_type,
license=LICENSE,
download_url=DOWNLOAD_URL,
version="0.0.1",
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
requires=REQUIRES,
python_requires=f'>={MIN_PY_VER}',
packages=PACKAGES,
include_package_data=True,
entry_points={
'console_scripts': ['runReconstruction=ReconstructOrder.cli_module:main']
}
)