[Python-modules-commits] r26836 - in packages/python-ecdsa/trunk/debian (8 files)

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Sat Dec 21 16:16:04 UTC 2013


    Date: Saturday, December 21, 2013 @ 16:16:03
  Author: sramacher
Revision: 26836

Build python3-ecdsa.
Add upstream's ecdsa/_version.py which is missing from the GitHub tarball.
Relicense Debian packaging as Expat. Thanks to Bart Martens for transferring the
copyright.

Added:
  packages/python-ecdsa/trunk/debian/patches/upstream-_version.patch
  packages/python-ecdsa/trunk/debian/python-ecdsa.install
  packages/python-ecdsa/trunk/debian/python3-ecdsa.install
Modified:
  packages/python-ecdsa/trunk/debian/changelog
  packages/python-ecdsa/trunk/debian/control
  packages/python-ecdsa/trunk/debian/copyright
  packages/python-ecdsa/trunk/debian/patches/series
  packages/python-ecdsa/trunk/debian/rules

Modified: packages/python-ecdsa/trunk/debian/changelog
===================================================================
--- packages/python-ecdsa/trunk/debian/changelog	2013-12-20 21:34:51 UTC (rev 26835)
+++ packages/python-ecdsa/trunk/debian/changelog	2013-12-21 16:16:03 UTC (rev 26836)
@@ -1,3 +1,16 @@
+python-ecdsa (0.10-2) unstable; urgency=low
+
+  * Add Python 3 package.
+    - debian/rules: Add --with python3.
+    - debian/python{,3}-ecdsa.install: Add install files to place files in
+      correct packages.
+    - debian/control: Add python3-all and python3-six to Build-Depends.
+  * debian/copyright: Relicense Debian packaging as Expat.
+  * debian/patches/upstream-_version.patch: Add upstream's ecdsa/_version.py
+    which is not included in the tarball from GitHub.
+
+ -- Sebastian Ramacher <sramacher at debian.org>  Sat, 21 Dec 2013 17:09:07 +0100
+
 python-ecdsa (0.10-1) unstable; urgency=low
 
   * New upstream release. (Closes: #730663)

Modified: packages/python-ecdsa/trunk/debian/control
===================================================================
--- packages/python-ecdsa/trunk/debian/control	2013-12-20 21:34:51 UTC (rev 26835)
+++ packages/python-ecdsa/trunk/debian/control	2013-12-21 16:16:03 UTC (rev 26836)
@@ -7,12 +7,15 @@
  debhelper (>= 9),
  dh-python,
  python-all,
+ python3-all,
  python-six (>= 1.2),
+ python3-six (>= 1.2),
  openssl
 Homepage: https://github.com/warner/python-ecdsa
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-ecdsa/trunk/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-ecdsa/trunk/
 Standards-Version: 3.9.5
+X-Python3-Version: >= 3.2
 
 Package: python-ecdsa
 Architecture: all
@@ -20,9 +23,26 @@
  ${misc:Depends},
  ${python:Depends},
  python-six (>= 1.2)
-Description: ECDSA cryptographic signature library (pure python)
+Description: ECDSA cryptographic signature library (Python 2)
  This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
  Digital Signature Algorithm), implemented purely in Python.  With this library,
  you can quickly create keypairs (signing key and verifying key), sign messages,
  and verify the signatures. The keys and signatures are very short, making them
  easy to handle and incorporate into other protocols.
+ .
+ This package contains the module for Python 2.
+
+Package: python3-ecdsa
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-six (>= 1.2)
+Description: ECDSA cryptographic signature library (Python 3)
+ This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
+ Digital Signature Algorithm), implemented purely in Python.  With this library,
+ you can quickly create keypairs (signing key and verifying key), sign messages,
+ and verify the signatures. The keys and signatures are very short, making them
+ easy to handle and incorporate into other protocols.
+ .
+ This package contains the module for Python 3.

Modified: packages/python-ecdsa/trunk/debian/copyright
===================================================================
--- packages/python-ecdsa/trunk/debian/copyright	2013-12-20 21:34:51 UTC (rev 26835)
+++ packages/python-ecdsa/trunk/debian/copyright	2013-12-21 16:16:03 UTC (rev 26836)
@@ -14,28 +14,12 @@
 License: Expat
 
 Files: debian/*
-Copyright:
- 2013 Bart Martens <bartm at knars.be>
- 2013 Sebastian Ramacher <sramacher at debian.org>
-License: GPL-3+
- This program is free software: you can redistribute it and/or modify it under
- the terms of the GNU General Public License as published by the Free Software
- Foundation, either version 3 of the License, or (at your option) any later
- version.
- .
- This package is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- .
- You should have received a copy of the GNU General Public License along with
- this program. If not, see <http://www.gnu.org/licenses/>.
- .
- On Debian systems, the complete text of the GNU General Public License version
- 3 can be found in '/usr/share/common-licenses/GPL-3'.
-
-Files: debian/patches/*
 Copyright: 2013 Sebastian Ramacher <sramacher at debian.org>
 License: Expat
+Comment:
+ The previous packaging was done by Bart Martens <bartm at knars.be>. He kindly
+ transferred the copyright to Sebastian Ramacher in
+ <1386653824.8289.4.camel at tatty.ra.intranet>.
 
 License: Expat
  Permission is hereby granted, free of charge, to any person

Modified: packages/python-ecdsa/trunk/debian/patches/series
===================================================================
--- packages/python-ecdsa/trunk/debian/patches/series	2013-12-20 21:34:51 UTC (rev 26835)
+++ packages/python-ecdsa/trunk/debian/patches/series	2013-12-21 16:16:03 UTC (rev 26836)
@@ -1 +1,2 @@
 system-six.patch
+upstream-_version.patch

Added: packages/python-ecdsa/trunk/debian/patches/upstream-_version.patch
===================================================================
--- packages/python-ecdsa/trunk/debian/patches/upstream-_version.patch	                        (rev 0)
+++ packages/python-ecdsa/trunk/debian/patches/upstream-_version.patch	2013-12-21 16:16:03 UTC (rev 26836)
@@ -0,0 +1,17 @@
+Description: Add upstream's ecdsa/_version.py
+ The tarball from GitHub does not contain this file. However, the tarball from
+ PyPI includes it. The file is needed to get the correct version information for
+ setup.py. Until we switch to PyPI as source for upstream tarballs with the next
+ release, include it via a patch.
+Origin: upstream,
+ https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.10.tar.gz
+Last-Update: 2013-12-10
+
+--- /dev/null
++++ python-ecdsa-0.10/ecdsa/_version.py
+@@ -0,0 +1,5 @@
++
++# This file is originally generated from Git information by running 'setup.py
++# version'. Distribution tarballs contain a pre-generated copy of this file.
++
++__version__ = '0.10'

Added: packages/python-ecdsa/trunk/debian/python-ecdsa.install
===================================================================
--- packages/python-ecdsa/trunk/debian/python-ecdsa.install	                        (rev 0)
+++ packages/python-ecdsa/trunk/debian/python-ecdsa.install	2013-12-21 16:16:03 UTC (rev 26836)
@@ -0,0 +1,2 @@
+usr/lib/python2*/*-packages/ecdsa/*.py
+usr/lib/python2*/*-packages/ecdsa*.egg-info

Added: packages/python-ecdsa/trunk/debian/python3-ecdsa.install
===================================================================
--- packages/python-ecdsa/trunk/debian/python3-ecdsa.install	                        (rev 0)
+++ packages/python-ecdsa/trunk/debian/python3-ecdsa.install	2013-12-21 16:16:03 UTC (rev 26836)
@@ -0,0 +1,2 @@
+usr/lib/python3*/*-packages/ecdsa/*.py
+usr/lib/python3*/*-packages/ecdsa*.egg-info

Modified: packages/python-ecdsa/trunk/debian/rules
===================================================================
--- packages/python-ecdsa/trunk/debian/rules	2013-12-20 21:34:51 UTC (rev 26835)
+++ packages/python-ecdsa/trunk/debian/rules	2013-12-21 16:16:03 UTC (rev 26836)
@@ -1,12 +1,11 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS
 
-override_dh_install:
-	dh_install
-	find debian/python-ecdsa -name "six.py" -delete
-	find debian/python-ecdsa -name "t" -type d -prune -exec rm -rf '{}' \;
+override_dh_auto_install:
+	dh_auto_install
+	find debian/tmp -name "six.py" -delete




More information about the Python-modules-commits mailing list