forked from AstarVienna/irdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (42 loc) · 1.56 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
#!/usr/bin/env python3
"""IRDB"""
from distutils.core import setup
import os
from os import path as pth
# Version number
with open('irdb/version.py') as f:
__version__ = f.readline().split("'")[1]
def create_manifest():
pkgs_list = [pkg for pkg in os.listdir("./") if \
pth.isdir(pkg) and pth.exists(pth.join(pkg, f"{pkg}.yaml"))]
with open("MANIFEST.in", "w") as f:
for pkg_name in pkgs_list:
f.write(f"include {pkg_name}/*\n")
print(f"Including {pkg_name}")
def setup_package():
setup(name = 'IRDB',
version = __version__,
description = "Instrument package database",
author = "Kieran Leschinski",
author_email = "[email protected]",
url = "http://homepage.univie.ac.at/kieran.leschinski/",
package_dir={'scopesim': 'scopesim'},
packages = ["irdb/tests"],
install_requires=["numpy>=1.16",
"scipy>=1.0.0",
"astropy>=2.0",
"matplotlib>=1.5",
"docutils",
"requests>=2.20",
"beautifulsoup4>=4.4",
"lxml",
"pyyaml>5.1",
"pysftp",
"synphot>=0.1.3",
"skycalc_ipy>=0.1.3",
"anisocado",
],
)
if __name__ == '__main__':
create_manifest()
setup_package()