-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
28 lines (24 loc) · 883 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
import os
from setuptools import setup
version_py = os.path.join('api', 'version.py')
with open(version_py, 'r') as fh:
version = fh.read().strip().split('=')[-1].replace("'", "")
with open('requirements.txt', 'r') as fh:
install_requires = []
for line in fh.readlines():
line = line.strip()
if '://' in line:
line = line.split('=')[-1]
install_requires.append(line)
tests_require_txt = os.path.join('tests', 'requirements.txt')
with open(tests_require_txt, 'r') as fh:
tests_require = [l.strip() for l in fh.readlines()]
setup(name='antismash.db.api',
version=version,
install_requires=install_requires,
tests_require=tests_require,
author='Kai Blin',
author_email='[email protected]',
description='A REST-like web API for antismash DB',
packages=['api'],
zip_safe=False)