-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
38 lines (30 loc) · 1.01 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
""" Setup
"""
from os import chdir, pardir
from os.path import join, exists, dirname, normpath, abspath
from setuptools import find_packages, setup
reqs_default = join(dirname(__file__), "requirements.txt")
reqs_core = join(dirname(__file__), "requirements.core.txt")
required = []
if exists(reqs_default):
with open(reqs_default) as f:
required += f.read().splitlines()
if exists(reqs_core):
with open(reqs_core) as f:
required += f.read().splitlines()
with open(join(dirname(__file__), "README.rst")) as f:
long_desc = f.read()
# Allow setup.py to be run from any path
chdir(normpath(join(abspath(__file__), pardir)))
setup(
name="core_linked_records_app",
version="2.13.0",
description="Linked records for the core project",
long_description=long_desc,
author="NIST IT Lab",
author_email="[email protected]",
url="https://github.com/usnistgov/core_linked_records_app",
packages=find_packages(),
include_package_data=True,
install_requires=required,
)