forked from AstarVienna/ScopeSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (56 loc) · 2.29 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
#!/usr/bin/env python3
"""
ScopeSim: A python package to simulate telescope observations
=============================================================
$ pip install wheel twine
How to compile and put these on pip::
$ python setup.py sdist bdist_wheel
$ twine upload dist/*
Errors
------
- 'long_description_content_type not found':
Can occur because the licence string is too long.
Consider just referencing the GNU licences rather than including the full
thing in the licence section.
"""
from setuptools import setup, find_packages
with open('README.md') as f:
__readme__ = f.read()
with open('LICENCE') as f:
__license__ = f.read()
with open('scopesim/version.py') as f:
__version__ = f.readline().split("'")[1]
def setup_package():
setup(name='ScopeSim',
version=__version__,
description="Generalised telescope observation simulator",
long_description=__readme__,
long_description_content_type='text/markdown',
author="Kieran Leschinski",
author_email="[email protected]",
url="https://github.com/astronomyk/ScopeSim",
license="GNU General Public License",
package_dir={'scopesim': 'scopesim'},
include_package_data=True,
packages=find_packages(exclude=('docs', 'docs_to_be_sorted', 'data',
'misc', 'OLD_code', 'temp', 'tests')),
install_requires=["numpy>=1.16",
"scipy>=1.0.0",
"astropy>=2.0",
"matplotlib>=1.5",
"docutils",
"pyyaml>5.1",
"requests>=2.20",
"beautifulsoup4>=4.4",
"synphot>=0.1.3",
"skycalc_ipy",
"anisocado",
],
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()