forked from ArtificialStellarPopulations/ArtPop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (50 loc) · 1.53 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
import os, sys
import builtins
from setuptools import setup, find_packages
sys.path.append('src')
def readme():
with open("README.rst") as f:
return f.read()
# HACK: fetch version
builtins.__ARTPOP_SETUP__ = True
import artpop
version = artpop.__version__
# Publish the library to PyPI.
if "publish" in sys.argv[-1]:
os.system("python setup.py sdist bdist_wheel")
os.system(f"python3 -m twine upload dist/*{version}*")
sys.exit()
# Push a new tag to GitHub.
if "tag" in sys.argv:
os.system("git tag -a v{0} -m 'version {0}'".format(version))
os.system("git push --tags")
sys.exit()
setup(
name='artpop',
version=version,
description='Building artificial galaxies one star at a time',
long_description=readme(),
author='Johnny Greco & Shany Danieli',
author_email='[email protected]',
packages=find_packages(where="src"),
package_dir={"": "src"},
package_data={"artpop": ["data/*.pkl", "data/*.txt"]},
include_package_data=True,
url='https://github.com/ArtificialStellarPopulations/ArtPop',
install_requires=[
'numpy>=1.17',
'scipy>=1',
'astropy>=4',
'matplotlib>=3',
'fast-histogram>=0.9',
'requests',
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Astronomy",
],
python_requires='>=3.6',
)