forked from ratt-ru/Stimela-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (42 loc) · 1.45 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
#!/usr/bin/env python3
import os
import sys
from setuptools import setup
import glob
PACKAGE_NAME = "stimela"
__version__ = "1.7.9"
build_root = os.path.dirname(__file__)
def readme():
"""Get readme content for package long description"""
with open(os.path.join(build_root, 'README.rst')) as f:
return f.read()
def requirements():
"""Get package requirements"""
with open(os.path.join(build_root, 'requirements.txt')) as f:
return [pname.strip() for pname in f.readlines()]
setup(name=PACKAGE_NAME,
version=__version__,
description="Dockerized radio interferometry scripting framework",
long_description=readme(),
long_description_content_type="text/x-rst",
author="Sphesihle Makhathini & RATT",
author_email="[email protected]",
url="https://github.com/ratt-ru/Stimela",
packages=["stimela", "stimela/cargo",
"stimela/utils", "stimela/cargo/cab",
"stimela/cargo/base"],
package_data={"stimela/cargo": [
"base/*/Dockerfile",
"base/*.template",
"cab/*/src/*.py",
"base/*/xvfb.init.d",
"cab/*/parameters.json",
"cab/*/src/tdlconf.profiles",
]},
python_requires='>=3.6',
install_requires=requirements(),
tests_require=['nose'],
scripts=["bin/" + i for i in os.listdir("bin")] +
glob.glob("stimela/cargo/cab/stimela_runscript"),
classifiers=[],
)