-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (26 loc) · 897 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
#!/usr/bin/env python3
# =============================================================================
# @file setup.py
# @brief Installation setup file
# @author Michael Hucka <[email protected]>
# @license Please see the file named LICENSE in the project directory
# @website https://github.com/caltechlibrary/pubarchiver
#
# Note: configuration metadata is maintained in setup.cfg. This file exists
# primarily to hook in setup.cfg and requirements.txt.
#
# =============================================================================
import os
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
req_file = path.join(here, 'requirements.txt')
if path.exists(req_file):
with open(req_file) as f:
reqs = f.read().rstrip().splitlines()
else:
reqs = []
setup(
setup_requires = ['wheel'],
install_requires = reqs,
)