forked from rapidpro/rapidpro-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
46 lines (34 loc) · 1.37 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
from setuptools import setup, find_packages
def _is_requirement(line):
"""Returns whether the line is a valid package requirement."""
line = line.strip()
return line and not (line.startswith("-r") or line.startswith("#"))
def _read_requirements(filename):
"""Returns a list of package requirements read from the file."""
requirements_file = open(filename).read()
return [line.strip() for line in requirements_file.splitlines()
if _is_requirement(line)]
required_packages = _read_requirements("requirements/base.txt")
test_packages = _read_requirements("requirements/tests.txt")
setup(
name='rapidpro-python',
version=__import__('temba_client').__version__,
description='Python client library for the RapidPro',
url='https://github.com/rapidpro',
author='Nyaruka',
author_email='[email protected]',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='rapidpro client',
packages=find_packages(),
install_requires=required_packages,
test_suite='nose.collector',
tests_require=required_packages + test_packages,
)