-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
38 lines (32 loc) · 1.06 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
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
install_requires = []
dependency_links = []
req_files = ['requirements.txt']
for file in req_files:
with open(os.path.join(here, file)) as f:
lines = f.readlines()
install_requires.extend([p.strip() for p in lines if ' ' not in p])
dependency_links.extend([p.split()[-1].strip() for p in lines
if ' ' in p])
setup(
name='spirit',
description='',
url='https://github.com/koalagogo/spirit',
version='0.1.0',
author='kolagogo org',
author_email='',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
],
packages=find_packages('.', exclude=('tests*')),
install_requires=install_requires,
dependency_links=dependency_links,
)