-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (33 loc) · 1.04 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages, Command
from setuptools.command.test import test as test_command
import stenopsi
setup_requires = ('setuptools',)
dependency_links, install_requires = [], []
def parse_reqs(f):
reqs, deps = [], []
for l in f.readlines():
l = l.strip()
if l and not l.startswith("#"):
reqs.append(l)
return reqs, deps
with open('requirements.pip') as f:
install_requires, dependency_links = parse_reqs(f)
with open('requirements_test.pip') as f:
tests_require, tdeps = parse_reqs(f)
dependency_links += tdeps
setup(name='stenopsi',
version=stenopsi.__versionstr__,
author='starenka',
author_email='starenka0@gmail.com',
url='https://github.com/starenka/stenopsi',
packages=find_packages(),
include_package_data=True,
scripts=['manage.py'],
install_requires=install_requires,
dependency_links=dependency_links,
setup_requires=setup_requires,
tests_require=tests_require,
)