[Python-modules-commits] r25981 - in packages/python-memprof/trunk/debian (5 files)
vicho at users.alioth.debian.org
vicho at users.alioth.debian.org
Fri Sep 27 08:03:39 UTC 2013
Date: Friday, September 27, 2013 @ 08:03:36
Author: vicho
Revision: 25981
Drop python-nose and python-tornado dependencies by importing
ecb69a2 (use recommended way of getting the version number) from
upstream
Added:
packages/python-memprof/trunk/debian/patches/
packages/python-memprof/trunk/debian/patches/from_upstream__no_tornado_nose.patch
packages/python-memprof/trunk/debian/patches/series
Modified:
packages/python-memprof/trunk/debian/changelog
packages/python-memprof/trunk/debian/control
Modified: packages/python-memprof/trunk/debian/changelog
===================================================================
--- packages/python-memprof/trunk/debian/changelog 2013-09-27 05:17:25 UTC (rev 25980)
+++ packages/python-memprof/trunk/debian/changelog 2013-09-27 08:03:36 UTC (rev 25981)
@@ -5,6 +5,9 @@
* Install demo.py in examples/
* Depend on python-pkg-resources
* Provide a Python3 version of the package
+ * Drop python-nose and python-tornado dependencies by importing
+ ecb69a2 (use recommended way of getting the version number) from
+ upstream
-- Javi Merino <vicho at debian.org> Wed, 25 Sep 2013 06:56:03 +0100
Modified: packages/python-memprof/trunk/debian/control
===================================================================
--- packages/python-memprof/trunk/debian/control 2013-09-27 05:17:25 UTC (rev 25980)
+++ packages/python-memprof/trunk/debian/control 2013-09-27 08:03:36 UTC (rev 25981)
@@ -18,8 +18,6 @@
Package: python-memprof
Architecture: any
Depends: python-pkg-resources,
- python-nose,
- python-tornado,
${misc:Depends},
${python:Depends},
${shlibs:Depends},
Added: packages/python-memprof/trunk/debian/patches/from_upstream__no_tornado_nose.patch
===================================================================
--- packages/python-memprof/trunk/debian/patches/from_upstream__no_tornado_nose.patch (rev 0)
+++ packages/python-memprof/trunk/debian/patches/from_upstream__no_tornado_nose.patch 2013-09-27 08:03:36 UTC (rev 25981)
@@ -0,0 +1,20 @@
+From: Javi Merino <cibervicho at gmail.com>
+Origin: upstream, https://github.com/jmdana/memprof/commit/ecb69a230065abe2fe5f91799a72928579ee27d8
+Subject: use recommended way of getting the version number
+
+pkg_resources.require() should not be called directly, it raises
+DistributionNotFound() for tornado and nose in Debian (and probably
+others). get_distribution() gives you the version as well and is not
+recommended against in the documentation, so use it.
+
+diff --git a/memprof/__init__.py b/memprof/__init__.py
+index 785e7c8..91938a1 100644
+--- a/memprof/__init__.py
++++ b/memprof/__init__.py
+@@ -17,4 +17,4 @@
+ from .memprof import *
+ import pkg_resources
+
+-__version__ = pkg_resources.require("memprof")[0].version
++__version__ = pkg_resources.get_distribution("memprof").version
+
Added: packages/python-memprof/trunk/debian/patches/series
===================================================================
--- packages/python-memprof/trunk/debian/patches/series (rev 0)
+++ packages/python-memprof/trunk/debian/patches/series 2013-09-27 08:03:36 UTC (rev 25981)
@@ -0,0 +1 @@
+from_upstream__no_tornado_nose.patch
More information about the Python-modules-commits
mailing list