-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (33 loc) · 1.21 KB
/
setup.py
File metadata and controls
42 lines (33 loc) · 1.21 KB
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
#!/usr/bin/env python3
"""IRDB"""
from distutils.core import setup
import os
from os import path as pth
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',
description = "Instrument package database",
author = "Kieran Leschinski",
author_email = "kieran.leschinski@unive.ac.at",
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",
"pyyaml>5.1",
"paramiko",
"scopesim>=0.10.1",
],
)
if __name__ == '__main__':
create_manifest()
setup_package()