[Python-modules-commits] r34350 - in packages/python-cryptography/trunk/debian (changelog rules)

mithrandi at users.alioth.debian.org mithrandi at users.alioth.debian.org
Sun Sep 20 23:31:45 UTC 2015


    Date: Sunday, September 20, 2015 @ 23:31:44
  Author: mithrandi
Revision: 34350

Remove cffi from requires.txt after dh_python[23] runs
(closes: #799628).

Modified:
  packages/python-cryptography/trunk/debian/changelog
  packages/python-cryptography/trunk/debian/rules

Modified: packages/python-cryptography/trunk/debian/changelog
===================================================================
--- packages/python-cryptography/trunk/debian/changelog	2015-09-20 19:35:02 UTC (rev 34349)
+++ packages/python-cryptography/trunk/debian/changelog	2015-09-20 23:31:44 UTC (rev 34350)
@@ -1,3 +1,10 @@
+python-cryptography (1.0.1-4) unstable; urgency=medium
+
+  * Remove cffi from requires.txt after dh_python[23] runs
+    (closes: #799628).
+
+ -- Tristan Seligmann <mithrandi at debian.org>  Mon, 21 Sep 2015 01:28:46 +0200
+
 python-cryptography (1.0.1-3) unstable; urgency=medium
 
   * Drop cffi pydist overrides, as cffi now ships pydist files which are

Modified: packages/python-cryptography/trunk/debian/rules
===================================================================
--- packages/python-cryptography/trunk/debian/rules	2015-09-20 19:35:02 UTC (rev 34349)
+++ packages/python-cryptography/trunk/debian/rules	2015-09-20 23:31:44 UTC (rev 34350)
@@ -16,6 +16,18 @@
 	       cryptography/hazmat/primitives/__pycache__
 
 
+override_dh_python2:
+	dh_python2
+	# Remove "cffi" from requires after dh_python has seen it (so that the
+	# pydist file takes effect), because it is not actually needed at
+	# runtime.
+	sed -i '/^cffi$$/d' \
+	    debian/python-cryptography/usr/lib/python*/dist-packages/cryptography*.egg-info/requires.txt
+
+
 override_dh_python3:
 	dh_python3
 	rm -rf debian/python3-cryptography/usr/lib/python3.?
+	# See comment in override_dh_python2
+	sed -i '/^cffi$$/d' \
+	    debian/python3-cryptography/usr/lib/python3/dist-packages/cryptography*.egg-info/requires.txt




More information about the Python-modules-commits mailing list