Package: python-publicsuffix
Version: 1.0.5-1
Severity: wishlist
Tags: patch

Please see the attached patch for adding a python3 binary.  I did adjust the
short and long descriptions slightly so that the python and python3
descriptions would be different.

Scott K
diff -Nru python-publicsuffix-1.0.5/debian/changelog python-publicsuffix-1.0.5/debian/changelog
--- python-publicsuffix-1.0.5/debian/changelog	2014-03-21 03:30:18.000000000 -0400
+++ python-publicsuffix-1.0.5/debian/changelog	2014-09-13 23:25:14.000000000 -0400
@@ -1,3 +1,9 @@
+python-publicsuffix (1.0.5-2) UNRELEASED; urgency=medium
+
+  * Add support for python3 (python3-publicsuffix)
+
+ -- Scott Kitterman <sc...@kitterman.com>  Sat, 13 Sep 2014 23:24:30 -0400
+
 python-publicsuffix (1.0.5-1) unstable; urgency=medium
 
   [ Tomaz Solc ]
diff -Nru python-publicsuffix-1.0.5/debian/control python-publicsuffix-1.0.5/debian/control
--- python-publicsuffix-1.0.5/debian/control	2014-03-21 03:17:13.000000000 -0400
+++ python-publicsuffix-1.0.5/debian/control	2014-09-13 23:23:52.000000000 -0400
@@ -2,7 +2,7 @@
 Maintainer: Evgeni Golov <evg...@debian.org>
 Section: python
 Priority: optional
-Build-Depends: python-all (>= 2.6.6-3), debhelper (>= 7.0.50~)
+Build-Depends: python-all (>= 2.6.6-3), python3-all, dh-python, debhelper (>= 7.0.50~)
 Standards-Version: 3.9.5
 Homepage: https://pypi.python.org/pypi/publicsuffix
 Vcs-Git: git://anonscm.debian.org/collab-maint/python-publicsuffix.git
@@ -11,9 +11,22 @@
 Package: python-publicsuffix
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}, publicsuffix
-Description: get a public suffix for a domain name using the Public Suffix List
- This module allows you to get the public suffix of a domain name using the
- Public Suffix List from http://publicsuffix.org.
+Description: Python module to get a domain suffix using the Public Suffix List
+ This Python module allows you to get the public suffix of a domain name using
+ the Public Suffix List from http://publicsuffix.org.
+ .
+ A public suffix is one under which Internet users can directly register
+ names. Some examples of public suffixes are .com, .co.uk and pvt.k12.wy.us.
+ Accurately knowing the public suffix of a domain is useful when handling
+ web browser cookies, highlighting the most important part of a domain name
+ in a user interface or sorting URLs by web site.
+
+Package: python3-publicsuffix
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}, publicsuffix
+Description: Python3 module to get a domain suffix using the Public Suffix List
+ This Python3 module allows you to get the public suffix of a domain name
+ using the Public Suffix List from http://publicsuffix.org.
  .
  A public suffix is one under which Internet users can directly register
  names. Some examples of public suffixes are .com, .co.uk and pvt.k12.wy.us.
diff -Nru python-publicsuffix-1.0.5/debian/rules python-publicsuffix-1.0.5/debian/rules
--- python-publicsuffix-1.0.5/debian/rules	2014-03-21 03:12:44.000000000 -0400
+++ python-publicsuffix-1.0.5/debian/rules	2014-09-13 23:34:22.000000000 -0400
@@ -1,8 +1,10 @@
 #!/usr/bin/make -f
 
+export PYBUILD_NAME=publicsuffix
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_auto_install:
 	dh_auto_install
-	$(RM) $(CURDIR)/debian/python-publicsuffix/usr/lib/python*/dist-packages/publicsuffix.txt
+	$(RM) $(CURDIR)/debian/python*-publicsuffix/usr/lib/python*/dist-packages/publicsuffix.txt

Reply via email to