summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-08-26 21:54:13 +0200
committerKali Kaneko <kali@leap.se>2013-08-26 21:54:13 +0200
commit4c5fcefcb0205727aed5ef59cd18b0dd263c4cfd (patch)
tree74faa509c3ef691cfd6c3272d0881ee6970743c2 /setup.py
parent9070d74a47158f5749c5e16b8d9d9e62a55d07df (diff)
parent4a124f94730775b97afc49b48ccfa0206459190f (diff)
Merge tag '0.3.1' into debian-0.3.1
Tag leap.common version 0.3.1 Conflicts: pkg/requirements.pip src/leap/common/events/events_pb2.py
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py27
1 files changed, 10 insertions, 17 deletions
diff --git a/setup.py b/setup.py
index 0db731e..21426ca 100644
--- a/setup.py
+++ b/setup.py
@@ -19,20 +19,14 @@ setup file for leap.common
"""
from setuptools import setup, find_packages
-# XXX parse pkg/requirements.pip
-requirements = [
- "jsonschema",
- "pyxdg",
- 'protobuf',
- 'protobuf.socketrpc',
- "PyOpenSSL",
- "python-dateutil",
- "PyCrypto",
-]
+from pkg import utils
+parsed_reqs = utils.parse_requirements()
-#dependency_links = [
- #"https://protobuf-socket-rpc.googlecode.com/files/protobuf.socketrpc-1.3.2.tar.gz#egg=protobuf.socketrpc"
-#]
+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-'
tests_requirements = [
'mock',
@@ -54,9 +48,8 @@ trove_classifiers = [
setup(
name='leap.common',
- # If you change version, do it also in
- # src/leap/common/__init__.py
- version='0.3.0',
+ version=versioneer.get_version(),
+ cmdclass=versioneer.get_cmdclass(),
url='https://leap.se/',
license='GPLv3+',
author='The LEAP Encryption Access Project',
@@ -73,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