forked from radiocosmology/alpenhorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (43 loc) · 1.41 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from codecs import open
from os import path
from setuptools import find_packages, setup
import alpenhorn
here = path.abspath(path.dirname(__file__))
def strip_envmark(requires):
# Strip out environment markers options
return [req.split(";")[0].rstrip() for req in requires]
# Get the long description from the README file
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
with open(path.join(here, "requirements.txt")) as f:
requirements = strip_envmark(f.readlines())
with open(path.join(here, "test-requirements.txt")) as f:
test_requirements = strip_envmark(f.readlines())
setup_requirements = [
"pytest-runner",
]
setup(
name="alpenhorn",
version=alpenhorn.__version__,
description="Data archive management software.",
long_description=long_description,
author="CHIME collaboration",
author_email="[email protected]",
url="https://github.com/radiocosmology/alpenhorn",
license="MIT",
packages=find_packages(exclude=["docs", "tests"]),
scripts=[],
entry_points={
"console_scripts": [
"alpenhorn = alpenhorn.client:cli",
"alpenhornd = alpenhorn.service:cli",
]
},
python_requires=">=3.10",
install_requires=requirements,
tests_require=test_requirements,
test_suite="tests",
setup_requires=setup_requirements,
)