[Python-modules-commits] r25976 - in packages/python-memprof/trunk/debian (11 files)
vicho at users.alioth.debian.org
vicho at users.alioth.debian.org
Thu Sep 26 22:43:14 UTC 2013
Date: Thursday, September 26, 2013 @ 22:43:13
Author: vicho
Revision: 25976
Provide a Python3 version of the package
Added:
packages/python-memprof/trunk/debian/python-memprof.docs
(from rev 25962, packages/python-memprof/trunk/debian/docs)
packages/python-memprof/trunk/debian/python-memprof.examples
(from rev 25974, packages/python-memprof/trunk/debian/examples)
packages/python-memprof/trunk/debian/python-memprof.install
packages/python-memprof/trunk/debian/python-memprof.manpages
(from rev 25962, packages/python-memprof/trunk/debian/python-memprof.manpages)
packages/python-memprof/trunk/debian/python3-memprof.install
Modified:
packages/python-memprof/trunk/debian/changelog
packages/python-memprof/trunk/debian/control
packages/python-memprof/trunk/debian/rules
Deleted:
packages/python-memprof/trunk/debian/docs
packages/python-memprof/trunk/debian/examples
packages/python-memprof/trunk/debian/python-memprof.manpages
Modified: packages/python-memprof/trunk/debian/changelog
===================================================================
--- packages/python-memprof/trunk/debian/changelog 2013-09-26 22:18:02 UTC (rev 25975)
+++ packages/python-memprof/trunk/debian/changelog 2013-09-26 22:43:13 UTC (rev 25976)
@@ -4,6 +4,7 @@
* Convert to arch: any as memprof now needs cython
* Install demo.py in examples/
* Depend on python-pkg-resources
+ * Provide a Python3 version of the package
-- 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-26 22:18:02 UTC (rev 25975)
+++ packages/python-memprof/trunk/debian/control 2013-09-26 22:43:13 UTC (rev 25976)
@@ -7,7 +7,9 @@
python-dev (>= 2.6.6-3~),
python3-all-dev,
python-setuptools,
+ python3-setuptools,
cython,
+ cython3,
Standards-Version: 3.9.4
Homepage: http://jmdana.github.io/memprof/
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-memprof/trunk/
@@ -15,13 +17,29 @@
Package: python-memprof
Architecture: any
-Depends: ${misc:Depends},
+Depends: python-pkg-resources,
+ python-nose,
+ python-tornado,
+ ${misc:Depends},
${python:Depends},
${shlibs:Depends},
- python-pkg-resources,
- python-nose,
- python-tornado
-Description: memory profiler for Python
+Description: memory profiler for Python (Python 2)
python-memprof logs the memory used by variables during the execution
of decorated methods. It creates a report in a text file and you can
plot the result using "mp_plot".
+ .
+ This package contains the Python 2 version of memprof.
+
+Package: python3-memprof
+Architecture: any
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends},
+Recommends: python-memprof
+Description: memory profiler for Python (Python 3)
+ python-memprof logs the memory used by variables during the execution
+ of decorated methods. It creates a report in a text file and you can
+ plot the result using "mp_plot", which is part of the python-memprof
+ package.
+ .
+ This package contains the Python 3 version of memprof.
Deleted: packages/python-memprof/trunk/debian/docs
===================================================================
--- packages/python-memprof/trunk/debian/docs 2013-09-26 22:18:02 UTC (rev 25975)
+++ packages/python-memprof/trunk/debian/docs 2013-09-26 22:43:13 UTC (rev 25976)
@@ -1 +0,0 @@
-README.md
Deleted: packages/python-memprof/trunk/debian/examples
===================================================================
--- packages/python-memprof/trunk/debian/examples 2013-09-26 22:18:02 UTC (rev 25975)
+++ packages/python-memprof/trunk/debian/examples 2013-09-26 22:43:13 UTC (rev 25976)
@@ -1,2 +0,0 @@
-examples/demo.py
-examples/foo.png
Copied: packages/python-memprof/trunk/debian/python-memprof.docs (from rev 25962, packages/python-memprof/trunk/debian/docs)
===================================================================
--- packages/python-memprof/trunk/debian/python-memprof.docs (rev 0)
+++ packages/python-memprof/trunk/debian/python-memprof.docs 2013-09-26 22:43:13 UTC (rev 25976)
@@ -0,0 +1 @@
+README.md
Copied: packages/python-memprof/trunk/debian/python-memprof.examples (from rev 25974, packages/python-memprof/trunk/debian/examples)
===================================================================
--- packages/python-memprof/trunk/debian/python-memprof.examples (rev 0)
+++ packages/python-memprof/trunk/debian/python-memprof.examples 2013-09-26 22:43:13 UTC (rev 25976)
@@ -0,0 +1,2 @@
+examples/demo.py
+examples/foo.png
Added: packages/python-memprof/trunk/debian/python-memprof.install
===================================================================
--- packages/python-memprof/trunk/debian/python-memprof.install (rev 0)
+++ packages/python-memprof/trunk/debian/python-memprof.install 2013-09-26 22:43:13 UTC (rev 25976)
@@ -0,0 +1,2 @@
+usr/lib/python2*
+usr/bin/mp_plot
Deleted: packages/python-memprof/trunk/debian/python-memprof.manpages
===================================================================
--- packages/python-memprof/trunk/debian/python-memprof.manpages 2013-09-26 22:18:02 UTC (rev 25975)
+++ packages/python-memprof/trunk/debian/python-memprof.manpages 2013-09-26 22:43:13 UTC (rev 25976)
@@ -1 +0,0 @@
-debian/mp_plot.1
Copied: packages/python-memprof/trunk/debian/python-memprof.manpages (from rev 25962, packages/python-memprof/trunk/debian/python-memprof.manpages)
===================================================================
--- packages/python-memprof/trunk/debian/python-memprof.manpages (rev 0)
+++ packages/python-memprof/trunk/debian/python-memprof.manpages 2013-09-26 22:43:13 UTC (rev 25976)
@@ -0,0 +1 @@
+debian/mp_plot.1
Added: packages/python-memprof/trunk/debian/python3-memprof.install
===================================================================
--- packages/python-memprof/trunk/debian/python3-memprof.install (rev 0)
+++ packages/python-memprof/trunk/debian/python3-memprof.install 2013-09-26 22:43:13 UTC (rev 25976)
@@ -0,0 +1 @@
+usr/lib/python3*
Modified: packages/python-memprof/trunk/debian/rules
===================================================================
--- packages/python-memprof/trunk/debian/rules 2013-09-26 22:18:02 UTC (rev 25975)
+++ packages/python-memprof/trunk/debian/rules 2013-09-26 22:43:13 UTC (rev 25976)
@@ -4,5 +4,19 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+PYTHON3=$(shell py3versions -vr)
+
%:
dh $@ --with python2,python3
+
+build-python%:
+ python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+ dh_auto_build
+
+install-python%:
+ python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+ dh_auto_install
More information about the Python-modules-commits
mailing list