-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
109 lines (100 loc) · 3.9 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
107
108
109
install_requires = [
'setuptools',
'numpy >= 1.10.0',
'sqlalchemy >= 2.0',
'pyparsing >= 2.1.0',
'WebOb >= 1.7.0rc2', # Response.has_body
'repoze.lru >= 0.4', # py3 compat
'zope.interface >= 3.8.0', # has zope.interface.registry
'zope.deprecation >= 3.5.0', # py3 compat
'venusian >= 1.0a3', # ``ignore``
'translationstring >= 0.4', # py3 compat
'PasteDeploy >= 1.5.0', # py3 compat
'plaster',
'plaster_pastedeploy',
'pyramid',
'waitress',
'pyramid_debugtoolbar',
'pyramid_jinja2',
'pyramid_tm','pyramid_retry',
'zope.sqlalchemy',
'hupper',
'scipy >= 0.14.0',
'more_itertools >= 8.0.0',
'matplotlib >= 3.0.0', # for web interface
'tqdm >= 4.59.0',
'tblib >= 3.0.0',
'packaging >= 22.0'
]
tests_require = [
'pytest >= 5.0.0',
'webtest >= 2.0',
'pyquery >= 1.3.0',
'pynbody >= 2.0.0-beta.8',
'yt>=3.4.0',
'PyMySQL>=1.0.2',
]
import codecs
import os.path
from setuptools import find_packages, setup
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md')) as f:
long_description = f.read()
setup(name='tangos',
version=get_version("tangos/__init__.py"),
description='TANGOS, the agile numerical galaxy organisation system',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
],
author="Andrew Pontzen",
author_email="[email protected]",
license="BSD",
packages=find_packages(),
entry_points={'paste.app_factory': [
'main = tangos.web:main',
],
'console_scripts': [ 'tangos_add_bh = tangos.scripts.add_bh:main',
'tangos_bh_timelink = tangos.scripts.bh_timelink:main',
'tangos_crosslink = tangos.scripts.crosslink:main',
'tangos_fix_bh_hosts = tangos.scripts.fix_bh_hosts:main',
'tangos_import_from_ahf = tangos.scripts.import_from_ahf:main',
'tangos_manager = tangos.scripts.manager:main',
'tangos_preprocess_bh = tangos.scripts.preprocess_bh:main',
'tangos_timelink = tangos.scripts.timelink:main',
'tangos_writer = tangos.scripts.writer:main',
'tangos = tangos.scripts:main'
]
},
include_package_data=True,
zip_safe=False,
python_requires='>=3.8',
install_requires=install_requires,
tests_require=tests_require,
test_suite="tests",
long_description=long_description,
long_description_content_type='text/markdown',
extras_require={'test': tests_require,
'rmdbs': ['PyMySQL[rsa]',
'psycopg2-binary']
}
)