forked from AstarVienna/irdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (29 loc) · 940 Bytes
/
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
#!/usr/bin/env python3
"""IRDB"""
from distutils.core import setup
import os
from os import path as pth
# Version number
MAJOR = 0
MINOR = 1
ATTR = 'dev1'
VERSION = '%d.%d%s' % (MAJOR, MINOR, ATTR)
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/",
packages = ["irdb/tests"],
)
if __name__ == '__main__':
create_manifest()
setup_package()