Here's a debdiff to both upgrade to 0.7.1 (latest upstream as of this writing), and to add python3-keyring package. Of course, you'll want to edit the changelog and control files (maintainer) as appropriate. This has been uploaded to Ubuntu.
diff -Nru python-keyring-0.6.2/debian/changelog python-keyring-0.7.1/debian/changelog --- python-keyring-0.6.2/debian/changelog 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/changelog 2012-01-24 18:51:12.000000000 -0500 @@ -1,3 +1,18 @@ +python-keyring (0.7.1-0ubuntu1) precise; urgency=low + + * New upstream release (Closes: #656680) + * Build for Python 3. + * Run the tests (for Python == 2.7). + * Add unzip to B-D and repack the upstream tarball. + + -- Barry Warsaw <ba...@ubuntu.com> Tue, 24 Jan 2012 18:50:31 -0500 + +python-keyring (0.6.2-1build1) precise; urgency=low + + * Rebuild to drop python2.6 dependencies. + + -- Matthias Klose <d...@ubuntu.com> Sat, 31 Dec 2011 02:10:54 +0000 + python-keyring (0.6.2-1) unstable; urgency=low * New upstream version diff -Nru python-keyring-0.6.2/debian/control python-keyring-0.7.1/debian/control --- python-keyring-0.6.2/debian/control 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/control 2012-01-24 18:51:26.000000000 -0500 @@ -2,9 +2,16 @@ Priority: optional Section: python X-Python-Version: >= 2.5 -Maintainer: Carl Chenet <cha...@ohmytux.com> +X-Python3-Version: >= 3.2 +Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> +XSBC-Original-Maintainer: Carl Chenet <cha...@ohmytux.com> Uploaders: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org> -Build-Depends: debhelper (>= 7.0.50~), python-all (>=2.6.6-3), python-setuptools +Build-Depends: debhelper (>= 7.0.50~), + python-all (>=2.6.6-3), + python-setuptools, + python3-all, + python3-setuptools, + unzip Standards-Version: 3.9.2 Homepage: http://home.python-keyring.org/ Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/python-keyring/trunk/ @@ -18,3 +25,14 @@ The Python keyring library provides an easy way to access the system keyring service (e.g Gnome-Keyring, KWallet) from Python. it can be used in any application that needs safe password storage. + +Package: python3-keyring +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Recommends: python-crypto +Description: store and access your passwords safely + The Python keyring library provides an easy way to access the system + keyring service (e.g Gnome-Keyring, KWallet) from Python. + it can be used in any application that needs safe password storage. + . + This is the Python 3 version of the package. diff -Nru python-keyring-0.6.2/debian/python3-keyring.install python-keyring-0.7.1/debian/python3-keyring.install --- python-keyring-0.6.2/debian/python3-keyring.install 1969-12-31 19:00:00.000000000 -0500 +++ python-keyring-0.7.1/debian/python3-keyring.install 2012-01-24 18:46:23.000000000 -0500 @@ -0,0 +1 @@ +usr/lib/python3 diff -Nru python-keyring-0.6.2/debian/python-keyring.install python-keyring-0.7.1/debian/python-keyring.install --- python-keyring-0.6.2/debian/python-keyring.install 1969-12-31 19:00:00.000000000 -0500 +++ python-keyring-0.7.1/debian/python-keyring.install 2012-01-24 18:46:23.000000000 -0500 @@ -0,0 +1 @@ +usr/lib/python2* diff -Nru python-keyring-0.6.2/debian/rules python-keyring-0.7.1/debian/rules --- python-keyring-0.6.2/debian/rules 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/rules 2012-01-24 18:46:40.000000000 -0500 @@ -1,7 +1,42 @@ #!/usr/bin/make -f +#DH_VERBOSE=1 + +PYTHON2=$(shell pyversions -vr) +PYTHON3=$(shell py3versions -vr) + %: - dh $@ --with python2 + dh $@ --with python2,python3 + +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) +test-python2.7: + # The test suite needs a functioning $HOME. + mkdir -p build/home + HOME=$(CURDIR)/build/home \ + python$* -m unittest discover + +test-python%: + @echo "Test suite does not run in Python $@. Skipping." + +override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) +else + @echo "nocheck set, skipping tests" +endif + +override_dh_auto_build: + dh_auto_build + set -ex; for py in $(PYTHON3) ; do \ + python$$py setup.py build; \ + done; + +override_dh_auto_install: + dh_auto_install + set -ex; for py in $(PYTHON3) ; do \ + python$$py setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ + done; override_dh_installchangelogs: dh_installchangelogs -k CHANGES.txt + +get-packaged-orig-source: + uscan --force-download --repack --verbose diff -Nru python-keyring-0.6.2/debian/watch python-keyring-0.7.1/debian/watch --- python-keyring-0.6.2/debian/watch 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/watch 2012-01-24 18:46:23.000000000 -0500 @@ -1,2 +1,2 @@ version=3 -http://pypi.python.org/packages/source/k/keyring/keyring-([\d\.]*).tar.gz +http://pypi.python.org/packages/source/k/keyring/keyring-([\d\.]*).zip
diff -Nru python-keyring-0.6.2/debian/changelog python-keyring-0.7.1/debian/changelog --- python-keyring-0.6.2/debian/changelog 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/changelog 2012-01-24 18:51:12.000000000 -0500 @@ -1,3 +1,18 @@ +python-keyring (0.7.1-0ubuntu1) precise; urgency=low + + * New upstream release (Closes: #656680) + * Build for Python 3. + * Run the tests (for Python == 2.7). + * Add unzip to B-D and repack the upstream tarball. + + -- Barry Warsaw <ba...@ubuntu.com> Tue, 24 Jan 2012 18:50:31 -0500 + +python-keyring (0.6.2-1build1) precise; urgency=low + + * Rebuild to drop python2.6 dependencies. + + -- Matthias Klose <d...@ubuntu.com> Sat, 31 Dec 2011 02:10:54 +0000 + python-keyring (0.6.2-1) unstable; urgency=low * New upstream version diff -Nru python-keyring-0.6.2/debian/control python-keyring-0.7.1/debian/control --- python-keyring-0.6.2/debian/control 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/control 2012-01-24 18:51:26.000000000 -0500 @@ -2,9 +2,16 @@ Priority: optional Section: python X-Python-Version: >= 2.5 -Maintainer: Carl Chenet <cha...@ohmytux.com> +X-Python3-Version: >= 3.2 +Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> +XSBC-Original-Maintainer: Carl Chenet <cha...@ohmytux.com> Uploaders: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org> -Build-Depends: debhelper (>= 7.0.50~), python-all (>=2.6.6-3), python-setuptools +Build-Depends: debhelper (>= 7.0.50~), + python-all (>=2.6.6-3), + python-setuptools, + python3-all, + python3-setuptools, + unzip Standards-Version: 3.9.2 Homepage: http://home.python-keyring.org/ Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/python-keyring/trunk/ @@ -18,3 +25,14 @@ The Python keyring library provides an easy way to access the system keyring service (e.g Gnome-Keyring, KWallet) from Python. it can be used in any application that needs safe password storage. + +Package: python3-keyring +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Recommends: python-crypto +Description: store and access your passwords safely + The Python keyring library provides an easy way to access the system + keyring service (e.g Gnome-Keyring, KWallet) from Python. + it can be used in any application that needs safe password storage. + . + This is the Python 3 version of the package. diff -Nru python-keyring-0.6.2/debian/python3-keyring.install python-keyring-0.7.1/debian/python3-keyring.install --- python-keyring-0.6.2/debian/python3-keyring.install 1969-12-31 19:00:00.000000000 -0500 +++ python-keyring-0.7.1/debian/python3-keyring.install 2012-01-24 18:46:23.000000000 -0500 @@ -0,0 +1 @@ +usr/lib/python3 diff -Nru python-keyring-0.6.2/debian/python-keyring.install python-keyring-0.7.1/debian/python-keyring.install --- python-keyring-0.6.2/debian/python-keyring.install 1969-12-31 19:00:00.000000000 -0500 +++ python-keyring-0.7.1/debian/python-keyring.install 2012-01-24 18:46:23.000000000 -0500 @@ -0,0 +1 @@ +usr/lib/python2* diff -Nru python-keyring-0.6.2/debian/rules python-keyring-0.7.1/debian/rules --- python-keyring-0.6.2/debian/rules 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/rules 2012-01-24 18:46:40.000000000 -0500 @@ -1,7 +1,42 @@ #!/usr/bin/make -f +#DH_VERBOSE=1 + +PYTHON2=$(shell pyversions -vr) +PYTHON3=$(shell py3versions -vr) + %: - dh $@ --with python2 + dh $@ --with python2,python3 + +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) +test-python2.7: + # The test suite needs a functioning $HOME. + mkdir -p build/home + HOME=$(CURDIR)/build/home \ + python$* -m unittest discover + +test-python%: + @echo "Test suite does not run in Python $@. Skipping." + +override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) +else + @echo "nocheck set, skipping tests" +endif + +override_dh_auto_build: + dh_auto_build + set -ex; for py in $(PYTHON3) ; do \ + python$$py setup.py build; \ + done; + +override_dh_auto_install: + dh_auto_install + set -ex; for py in $(PYTHON3) ; do \ + python$$py setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ + done; override_dh_installchangelogs: dh_installchangelogs -k CHANGES.txt + +get-packaged-orig-source: + uscan --force-download --repack --verbose diff -Nru python-keyring-0.6.2/debian/watch python-keyring-0.7.1/debian/watch --- python-keyring-0.6.2/debian/watch 2012-01-24 18:59:35.000000000 -0500 +++ python-keyring-0.7.1/debian/watch 2012-01-24 18:46:23.000000000 -0500 @@ -1,2 +1,2 @@ version=3 -http://pypi.python.org/packages/source/k/keyring/keyring-([\d\.]*).tar.gz +http://pypi.python.org/packages/source/k/keyring/keyring-([\d\.]*).zip
signature.asc
Description: PGP signature