Add the dependencies.
from __future__ import absolute_import
+import sys
+
import pad
import distutils.core
+# TODO: adjust this for CPython/PyPy
+with open("requirements/base.txt") as base:
+ requirements = base.readlines()
+if sys.version_info.major == 3:
+ with open("requirements/python3.txt") as py3:
+ requirements.extend(py3.readlines())
+elif sys.version_info.major == 2:
+ with open("requirements/python2.txt") as py2:
+ requirements.extend(py2.readlines())
+
+with open("requirements/tests.txt") as test:
+test_requirements = test.readlines()
+
distutils.core.setup(
name='SpamPAD',
version=pad.__version__,
@@ -19,4 +34,6 @@ distutils.core.setup(
'pad.plugins',
'pad.protocol',
],
+ install_requires=requirements,
+ tests_require=test_requirements,
)
