[Python-modules-commits] r28442 - in packages/python-w3lib/trunk/debian (5 files)

vcheng at users.alioth.debian.org vcheng at users.alioth.debian.org
Tue Apr 1 20:14:37 UTC 2014


    Date: Tuesday, April 1, 2014 @ 20:14:36
  Author: vcheng
Revision: 28442

Add py3 support with pybuild

Modified:
  packages/python-w3lib/trunk/debian/changelog
  packages/python-w3lib/trunk/debian/compat
  packages/python-w3lib/trunk/debian/control
  packages/python-w3lib/trunk/debian/copyright
  packages/python-w3lib/trunk/debian/rules

Modified: packages/python-w3lib/trunk/debian/changelog
===================================================================
--- packages/python-w3lib/trunk/debian/changelog	2014-04-01 20:07:30 UTC (rev 28441)
+++ packages/python-w3lib/trunk/debian/changelog	2014-04-01 20:14:36 UTC (rev 28442)
@@ -3,6 +3,7 @@
   * Team upload.
   * New upstream release. (Closes: #734545)
   * Add Vcs-* fields in debian/control. (Closes: #735306)
+  * Create python3 package using pybuild and dh_python3 (merged from Ubuntu).
   * Update Standards version to 3.9.5.
 
  -- Vincent Cheng <vcheng at debian.org>  Tue, 01 Apr 2014 12:58:22 -0700

Modified: packages/python-w3lib/trunk/debian/compat
===================================================================
--- packages/python-w3lib/trunk/debian/compat	2014-04-01 20:07:30 UTC (rev 28441)
+++ packages/python-w3lib/trunk/debian/compat	2014-04-01 20:14:36 UTC (rev 28442)
@@ -1 +1 @@
-7
+9

Modified: packages/python-w3lib/trunk/debian/control
===================================================================
--- packages/python-w3lib/trunk/debian/control	2014-04-01 20:07:30 UTC (rev 28441)
+++ packages/python-w3lib/trunk/debian/control	2014-04-01 20:14:36 UTC (rev 28442)
@@ -3,8 +3,9 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Ignace Mouzannar <mouzannar at gmail.com>
-Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~)
-X-Python-Version: >=2.5, <=2.7
+Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python-setuptools, python3-setuptools, python3-all, dh-python
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.3
 Standards-Version: 3.9.5
 Homepage: http://pypi.python.org/pypi/w3lib
 Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/python-w3lib/trunk/
@@ -13,8 +14,7 @@
 Package: python-w3lib
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}
-Provides: ${python:Provides}
-Description: Collection of web-related functions for Python
+Description: Collection of web-related functions for Python (Python 2)
  Python module with simple, reusable functions to work with URLs, HTML,
  forms, and HTTP, that aren’t found in the Python standard library.
  .
@@ -32,3 +32,29 @@
  The code of w3lib was originally part of the Scrapy framework but was later
  stripped out of Scrapy, with the aim of make it more reusable and to provide
  a useful library of web functions without depending on Scrapy.
+ .
+ This is the Python 2 version of the package.
+
+Package: python3-w3lib
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Collection of web-related functions for Python (Python 3)
+ Python module with simple, reusable functions to work with URLs, HTML,
+ forms, and HTTP, that aren’t found in the Python standard library.
+ .
+ This module is used to, for example:
+  - remove comments, or tags from HTML snippets
+  - extract base url from HTML snippets
+  - translate entites on HTML strings
+  - encoding mulitpart/form-data
+  - convert raw HTTP headers to dicts and vice-versa
+  - construct HTTP auth header
+  - RFC-compliant url joining
+  - sanitize urls (like browsers do)
+  - extract arguments from urls
+ .
+ The code of w3lib was originally part of the Scrapy framework but was later
+ stripped out of Scrapy, with the aim of make it more reusable and to provide
+ a useful library of web functions without depending on Scrapy.
+ .
+ This is the Python 3 version of the package.

Modified: packages/python-w3lib/trunk/debian/copyright
===================================================================
--- packages/python-w3lib/trunk/debian/copyright	2014-04-01 20:07:30 UTC (rev 28441)
+++ packages/python-w3lib/trunk/debian/copyright	2014-04-01 20:14:36 UTC (rev 28442)
@@ -1,4 +1,4 @@
-Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=213&view=co&pathrev=213
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: w3lib
 Upstream-Contact: Scrapy project <info at scrapy.org>
 Source: http://pypi.python.org/pypi/w3lib

Modified: packages/python-w3lib/trunk/debian/rules
===================================================================
--- packages/python-w3lib/trunk/debian/rules	2014-04-01 20:07:30 UTC (rev 28441)
+++ packages/python-w3lib/trunk/debian/rules	2014-04-01 20:14:36 UTC (rev 28442)
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
 
+export PYBUILD_NAME=w3lib
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3 --buildsystem=pybuild




More information about the Python-modules-commits mailing list