forked from AstarVienna/ScopeSim_Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (46 loc) · 1.87 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
#!/usr/bin/env python3
"""
ScopeSim_templates: Helper functions for making ScopeSim Source objects
=======================================================================
How to compile and put these on pip::
$ python setup.py sdist bdist_wheel
$ twine upload dist/*
"""
from datetime import datetime
from distutils.core import setup
from setuptools import find_packages
# Version number
with open('scopesim_templates/version.py') as f:
__version__ = f.readline().split("'")[1]
with open("README.rst", "r", encoding='utf-8') as fh:
long_description = fh.read()
def setup_package():
setup(name='ScopeSim_Templates',
version=__version__,
description="On-sky source templates for ScopeSim",
long_description=long_description,
author="A* Vienna",
author_email="[email protected]",
url="https://github.com/AstarVienna/ScopeSim_Templates",
package_dir={'scopesim_templates': 'scopesim_templates'},
packages=find_packages(),
include_package_data=True,
install_requires=["numpy>=1.16",
"scipy>0.17",
"astropy>1.1.2",
"matplotlib>1.5.0",
"requests>2.0",
"pyyaml>5",
"synphot>0.1",
"scopesim",
"pyckles",
"spextra",
],
classifiers=["Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy", ]
)
if __name__ == '__main__':
setup_package()