Package: python-repoze.lru
Version: 0.6-1
Severity: normal

Dear Maintainer,

I'd like to run a python3 application that needs
python3-repoze.lru. python3-prepoze.lru package is python3 compatible.

May I commit and do a team upload to build python3 package?
Diff attached.

Regards,

Dmitrijs.

Index: debian/changelog
===================================================================
--- debian/changelog	(revision 25066)
+++ debian/changelog	(working copy)
@@ -1,3 +1,12 @@
+python-repoze.lru (0.6-2) UNRELEASED; urgency=low
+
+  * Team upload
+  * Add python3 package
+  * Bump debhelper to 9, standards to 3.8.4
+  * Install upstream changelog under proper name
+
+ -- Dmitrijs Ledkovs <[email protected]>  Tue, 02 Jul 2013 20:38:00 +0100
+
 python-repoze.lru (0.6-1) unstable; urgency=low
 
   [ Jakub Wilk ]
Index: debian/compat
===================================================================
--- debian/compat	(revision 25066)
+++ debian/compat	(working copy)
@@ -1 +1 @@
-7
+9
Index: debian/control
===================================================================
--- debian/control	(revision 25066)
+++ debian/control	(working copy)
@@ -3,8 +3,9 @@
 Priority: extra
 Maintainer: Debian Python Modules Team <[email protected]>
 Uploaders: TANIGUCHI Takaki <[email protected]>
-Build-Depends: debhelper (>= 7.0.50~), python-setuptools, python-all
-Standards-Version: 3.9.3
+Build-Depends: debhelper (>= 9), python-setuptools, python-all, python3-setuptools, python3-all
+Standards-Version: 3.9.4
+X-Python3-Versions: >= 3.2
 Homepage: http://www.repoze.org/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-repoze.lru/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-repoze.lru/trunk/
@@ -17,3 +18,15 @@
  repoze.lru is a LRU (least recently used) cache implementation. Keys and
  values that are not used frequently will be evicted from the cache faster
  than keys and values that are used frequently.
+ . 
+ This is the Python 2 version of the package.
+
+Package: python3-repoze.lru
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: tiny LRU cache implementation and decorator for Python 3
+ repoze.lru is a LRU (least recently used) cache implementation. Keys and
+ values that are not used frequently will be evicted from the cache faster
+ than keys and values that are used frequently.
+ . 
+ This is the Python 3 version of the package.
Index: debian/docs
===================================================================
--- debian/docs	(revision 25066)
+++ debian/docs	(working copy)
@@ -1,4 +1,2 @@
-CHANGES.txt
 COPYRIGHT.txt
 README.txt
-README.txt
Index: debian/python-repoze.lru.install
===================================================================
--- debian/python-repoze.lru.install	(revision 0)
+++ debian/python-repoze.lru.install	(working copy)
@@ -0,0 +1 @@
+/usr/lib/python2*
Index: debian/python3-repoze.lru.install
===================================================================
--- debian/python3-repoze.lru.install	(revision 0)
+++ debian/python3-repoze.lru.install	(working copy)
@@ -0,0 +1 @@
+/usr/lib/python3*
Index: debian/rules
===================================================================
--- debian/rules	(revision 25066)
+++ debian/rules	(working copy)
@@ -1,4 +1,29 @@
 #!/usr/bin/make -f
 
+PYTHON2:=$(shell pyversions -r)
+PYTHON3:=$(shell py3versions -r)
+py3sdo=set -e; $(foreach py, $(PYTHON3), $(py) $(1);)
+pyalldo=set -e; $(foreach py, $(PYTHON2) $(PYTHON3), $(py) $(1);)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
+
+override_dh_auto_build:
+	dh_auto_build
+	$(call py3sdo, setup.py build)
+
+override_dh_auto_install:
+	dh_auto_install
+	$(call py3sdo, setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb)
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf build *.egg-info
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+override_dh_auto_test:
+	$(call pyalldo, setup.py test)
+endif
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGES.txt
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to