summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog31
-rw-r--r--debian/clean1
-rw-r--r--debian/compat1
-rw-r--r--debian/control13
-rw-r--r--debian/copyright16
-rw-r--r--debian/doc2
-rw-r--r--debian/pydist-overrides2
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/source/format1
-rw-r--r--setup.py70
10 files changed, 144 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..629f80f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,31 @@
+leap-keymanager (0.3.3) unstable; urgency=low
+
+ * Update to 0.3.3
+ * Change dependency to python-gnupg-ng
+
+ -- Micah Anderson <micah@debian.org> Mon, 14 Oct 2013 03:16:39 -0300
+
+leap-keymanager (0.3.2) unstable; urgency=low
+
+ * Update to 0.3.2
+
+ -- Micah Anderson <micah@debian.org> Thu, 12 Sep 2013 14:04:59 +0200
+
+leap-keymanager (0.3.1) unstable; urgency=low
+
+ * Update to 0.3.1
+ * Note correct package name for python-leap-common in pydist-overrides
+
+ -- Micah Anderson <micah@debian.org> Tue, 27 Aug 2013 20:12:43 +0200
+
+leap-keymanager (0.3.0) unstable; urgency=low
+
+ * Update to 0.3.0
+
+ -- Micah Anderson <micah@leap.se> Tue, 13 Aug 2013 15:44:26 -0400
+
+leap-keymanager (0.2.0) unstable; urgency=low
+
+ * Initial debian package
+
+ -- Micah Anderson <micah@leap.se> Thu, 18 Jul 2013 14:08:30 -0400
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..8ea5a5b
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+src/leap.keymanager.egg-info/*
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e4be973
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
+Source: leap-keymanager
+Maintainer: Micah Anderson <micah@leap.se>
+Section: python
+Priority: optional
+Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9)
+Standards-Version: 3.9.4
+
+Package: leap-keymanager
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Description: LEAP's Key Manager
+ The Key Manager handles all types of keys to allow for point-to-point
+ encryption between parties communicating through LEAP infrastructure.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..85071d3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: python-leap.keyring
+Upstream-Contact: info@leap.se
+Source: <git://code.leap.se/leap_keyring/>
+
+Files: *
+Copyright: Copyright (C) 2013 LEAP
+License: GPL-3+
+
+Files: debian/*
+Copyright: Copyright 2013 Micah Anderson <micah@leap.se>
+License: GPL-3+
+
+License: GPL-3+
+ On Debian systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL'.
diff --git a/debian/doc b/debian/doc
new file mode 100644
index 0000000..ed089a7
--- /dev/null
+++ b/debian/doc
@@ -0,0 +1,2 @@
+README.rst
+CHANGELOG
diff --git a/debian/pydist-overrides b/debian/pydist-overrides
new file mode 100644
index 0000000..0fecd4c
--- /dev/null
+++ b/debian/pydist-overrides
@@ -0,0 +1,2 @@
+leap.common python-leap-common ; PEP386
+gnupg python-gnupg-ng ; PEP386
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2bdcd17
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with python2 --buildsystem=python_distutils
+
+override_dh_installchangelogs:
+ dh_installchangelogs CHANGELOG
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/setup.py b/setup.py
index 1e48931..778909d 100644
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,7 @@
"""
setup file for leap.keymanager
"""
+import re
from setuptools import setup
from setuptools import find_packages
@@ -42,17 +43,82 @@ trove_classifiers = [
'Topic :: Software Development :: Libraries',
]
+DOWNLOAD_BASE = ('https://github.com/leapcode/keymanager/'
+ 'archive/%s.tar.gz')
+_versions = versioneer.get_versions()
+VERSION = _versions['version']
+VERSION_FULL = _versions['full']
+DOWNLOAD_URL = ""
+
+# get the short version for the download url
+_version_short = re.findall('\d+\.\d+\.\d+', VERSION)
+if len(_version_short) > 0:
+ VERSION_SHORT = _version_short[0]
+ DOWNLOAD_URL = DOWNLOAD_BASE % VERSION_SHORT
+
+cmdclass = versioneer.get_cmdclass()
+
+
+from setuptools import Command
+
+
+class freeze_debianver(Command):
+ """
+ Freezes the version in a debian branch.
+ To be used after merging the development branch onto the debian one.
+ """
+ user_options = []
+
+ def initialize_options(self):
+ pass
+
+ def finalize_options(self):
+ pass
+
+ def run(self):
+ proceed = str(raw_input(
+ "This will overwrite the file _version.py. Continue? [y/N] "))
+ if proceed != "y":
+ print("He. You scared. Aborting.")
+ return
+ template = r"""
+# This file was generated by the `freeze_debianver` command in setup.py
+# Using 'versioneer.py' (0.7+) from
+# revision-control system data, or from the parent directory name of an
+# unpacked source archive. Distribution tarballs contain a pre-generated copy
+# of this file.
+
+version_version = '{version}'
+version_full = '{version_full}'
+"""
+ templatefun = r"""
+
+def get_versions(default={}, verbose=False):
+ return {'version': version_version, 'full': version_full}
+"""
+ subst_template = template.format(
+ version=VERSION_SHORT,
+ version_full=VERSION_FULL) + templatefun
+ with open(versioneer.versionfile_source, 'w') as f:
+ f.write(subst_template)
+
+
+cmdclass["freeze_debianver"] = freeze_debianver
+
# XXX add ref to docs
setup(
name='leap.keymanager',
- version=versioneer.get_version(),
- cmdclass=versioneer.get_cmdclass(),
+ version=VERSION,
+ cmdclass=cmdclass,
url='https://leap.se/',
+ download_url=DOWNLOAD_URL,
license='GPLv3+',
description='LEAP\'s Key Manager',
author='The LEAP Encryption Access Project',
author_email='info@leap.se',
+ maintainer='Kali Kaneko',
+ maintainer_email='kali@leap.se',
long_description=(
"The Key Manager handles all types of keys to allow for "
"point-to-point encryption between parties communicating through "