forked from njoyce/biloba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (30 loc) · 1009 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from setuptools import find_packages, setup
from pip.req import parse_requirements
def get_version():
import imp
pkg_meta = imp.load_source('_pkg_meta', 'biloba/_pkg_meta.py')
return pkg_meta.version
def get_requirements(filename):
try:
from pip.download import PipSession
session = PipSession()
except ImportError:
session = None
reqs = parse_requirements(filename, session=session)
return [str(r.req) for r in reqs]
setup_args = dict(
name='biloba',
version=get_version(),
maintainer='Nick Joyce',
maintainer_email='[email protected]',
description=(
'Provides gevent primitives to orchestrate different '
'orthogonal servers and services together.'
),
url='https://github.com/njoyce/biloba',
packages=find_packages(),
install_requires=get_requirements('requirements.txt'),
tests_require=get_requirements('requirements_dev.txt'),
)
if __name__ == '__main__':
setup(**setup_args)