forked from praekeltfoundation/vumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (52 loc) · 2.12 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
54
55
56
57
58
59
60
from setuptools import setup, find_packages
import re
def listify(filename):
return filter(None, open(filename, 'r').read().split('\n'))
_SIMPLE_VERSION_RE = re.compile("(?P<name>.*)-(?P<version>[0-9.]+)$")
def parse_requirements(filename):
install_requires = []
dependency_links = []
for requirement in listify(filename):
if requirement.startswith("https:") or requirement.startswith("http:"):
(_, _, name) = requirement.partition('#egg=')
ver_match = _SIMPLE_VERSION_RE.match(name)
if ver_match:
# egg names with versions need to be converted to
# an == requirement.
name = "%(name)s==%(version)s" % ver_match.groupdict()
install_requires.append(name)
dependency_links.append(requirement)
else:
install_requires.append(requirement)
return install_requires, dependency_links
install_requires, dependency_links = parse_requirements("requirements.pip")
setup(
name="vumi",
version="0.5.0a",
url='http://github.com/praekelt/vumi',
license='BSD',
description="Super-scalable messaging engine for the delivery of SMS, "
"Star Menu and chat messages to diverse audiences in "
"emerging markets and beyond.",
long_description=open('README.rst', 'r').read(),
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages() + [
# NOTE:2012-01-18: This is commented out for now, pending a fix for
# https://github.com/pypa/pip/issues/355
#'twisted.plugins',
],
package_data={'twisted.plugins': ['twisted/plugins/*.py']},
include_package_data=True,
install_requires=install_requires,
dependency_links=dependency_links,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
],
)