forked from topiaruss/nameko-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (45 loc) · 1.7 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
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
from setuptools import setup, find_packages
from os.path import abspath, dirname, join
setup_dir = dirname(abspath(__file__))
def parse_requirements(fn, dependency_links):
requirements = []
with open(fn, 'rb') as f:
for dep in f:
dep = dep.strip()
# need to make test_requirements.txt work with
# setuptools like it would work with `pip -r`
# URLs will not work, so we transform them to
# dependency_links and requirements
if dep.startswith('-e '):
dep = dep[3:]
if dep.startswith('git+'):
dependency_links.append(dep)
_, dep = dep.rsplit('#egg=', 1)
dep = dep.replace('-', '==', 1)
requirements.append(dep)
return requirements, dependency_links
requirements, dependency_links = parse_requirements(
join(setup_dir, 'requirements.txt'), [])
setup(
name='nameko-chat',
version='0.1',
description='serverless console chat application built on nameko',
author='onefinestay',
author_email='[email protected]',
url='http://github.com/onefinestay/nameko-chat',
packages=find_packages(exclude=['test', 'test.*']),
install_requires=requirements,
dependency_links=dependency_links,
zip_safe=True,
license='Apache License, Version 2.0',
classifiers=[
"Programming Language :: Python",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python :: 2.7",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
]
)