Fold in changes.
[leap_pycommon.git] / setup.py
index 59700e5..21426ca 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -19,27 +19,15 @@ setup file for leap.common
 """
 from setuptools import setup, find_packages
 
+from pkg import utils
+parsed_reqs = utils.parse_requirements()
+
 import versioneer
 versioneer.versionfile_source = 'src/leap/common/_version.py'
 versioneer.versionfile_build = 'leap/common/_version.py'
 versioneer.tag_prefix = ''  # tags are like 1.2.0
 versioneer.parentdir_prefix = 'leap.common-'
 
-# XXX parse pkg/requirements.pip
-requirements = [
-    "jsonschema",
-    "pyxdg",
-    'protobuf>=2.4.1',
-    'protobuf.socketrpc',
-    "PyOpenSSL",
-    "python-dateutil",
-    "PyCrypto",
-]
-
-#dependency_links = [
-    #"https://protobuf-socket-rpc.googlecode.com/files/protobuf.socketrpc-1.3.2.tar.gz#egg=protobuf.socketrpc"
-#]
-
 tests_requirements = [
     'mock',
 ]
@@ -78,7 +66,7 @@ setup(
     #packages=find_packages('src', exclude=['leap.common.tests']),
     packages=find_packages('src'),
     test_suite='leap.common.tests',
-    install_requires=requirements,
+    install_requires=parsed_reqs,
     #dependency_links=dependency_links,
     tests_require=tests_requirements,
     include_package_data=True