[Python-modules-commits] r30000 - in packages/python-formencode/trunk/debian (6 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Tue Jul 29 19:09:48 UTC 2014


    Date: Tuesday, July 29, 2014 @ 19:09:47
  Author: piotr
Revision: 30000

* New upstream release
  - bump minimum required Python version to 2.6
* Add python3-formencode binary package
* Replace python-dns with python-dnspython dependency
* Add disable_pkg_resources_in_tests patch - this makes it possible to run
  tests after build (and is useless anyway)

Added:
  packages/python-formencode/trunk/debian/patches/
  packages/python-formencode/trunk/debian/patches/disable_pkg_resources_in_tests.patch
  packages/python-formencode/trunk/debian/patches/series
Modified:
  packages/python-formencode/trunk/debian/changelog
  packages/python-formencode/trunk/debian/control
  packages/python-formencode/trunk/debian/rules

Modified: packages/python-formencode/trunk/debian/changelog
===================================================================
--- packages/python-formencode/trunk/debian/changelog	2014-07-29 19:09:39 UTC (rev 29999)
+++ packages/python-formencode/trunk/debian/changelog	2014-07-29 19:09:47 UTC (rev 30000)
@@ -1,3 +1,14 @@
+python-formencode (1.3.0~a1-1) unstable; urgency=low
+
+  * New upstream release
+    - bump minimum required Python version to 2.6
+  * Add python3-formencode binary package
+  * Replace python-dns with python-dnspython dependency
+  * Add disable_pkg_resources_in_tests patch - this makes it possible to run
+    tests after build (and is useless anyway)
+
+ -- Piotr Ożarowski <piotr at debian.org>  Tue, 29 Jul 2014 20:13:27 +0200
+
 python-formencode (1.2.6-1) unstable; urgency=low
 
   [ Jakub Wilk ]

Modified: packages/python-formencode/trunk/debian/control
===================================================================
--- packages/python-formencode/trunk/debian/control	2014-07-29 19:09:39 UTC (rev 29999)
+++ packages/python-formencode/trunk/debian/control	2014-07-29 19:09:47 UTC (rev 30000)
@@ -1,25 +1,37 @@
 Source: python-formencode
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 9), dh-python, python-all (>= 2.6.6-3), python-setuptools (>= 0.6a9),
+Build-Depends: debhelper (>= 9), dh-python,
+ python-all (>= 2.6.6-3), python-setuptools (>= 0.6a9),
+ python3-all, python3-setuptools,
 # used in tests:
- python-nose, python-pycountry, python-dns
+ python-nose, python-pycountry, python-dnspython,
+ python3-nose, python3-dnspython
 Maintainer: Fabio Tranchitella <kobold at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
  Piotr Ożarowski <piotr at debian.org>
 Standards-Version: 3.9.5
-X-Python-Version: >= 2.4
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-formencode/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-formencode/trunk/
 Homepage: http://formencode.org
 
 Package: python-formencode
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-dns, python-pkg-resources,
- python (>= 2.5) | python-elementtree
+Depends: ${python:Depends}, ${misc:Depends}, python-dnspython, python-pkg-resources
 Suggests: python-egenix-mxdatetime
 Description: validation and form generation Python package
  FormEncode is a validation and form generation package. The validation can 
  be used separately from the form generation. The validation works on compound 
  data structures, with all parts being nestable. It is separate from HTTP or 
  any other input mechanism.
+
+Package: python3-formencode
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python3-dnspython, python3-pkg-resources
+Description: validation and form generation Python package
+ FormEncode is a validation and form generation package. The validation can 
+ be used separately from the form generation. The validation works on compound 
+ data structures, with all parts being nestable. It is separate from HTTP or 
+ any other input mechanism.

Added: packages/python-formencode/trunk/debian/patches/disable_pkg_resources_in_tests.patch
===================================================================
--- packages/python-formencode/trunk/debian/patches/disable_pkg_resources_in_tests.patch	                        (rev 0)
+++ packages/python-formencode/trunk/debian/patches/disable_pkg_resources_in_tests.patch	2014-07-29 19:09:47 UTC (rev 30000)
@@ -0,0 +1,12 @@
+Index: python-formencode-1.3.0~a1/formencode/tests/__init__.py
+===================================================================
+--- python-formencode-1.3.0~a1.orig/formencode/tests/__init__.py
++++ python-formencode-1.3.0~a1/formencode/tests/__init__.py
+@@ -12,5 +12,5 @@ os.environ['LANGUAGE'] = 'C'
+ import warnings
+ warnings.simplefilter('default')
+ 
+-import pkg_resources
+-pkg_resources.require('FormEncode')
++#import pkg_resources
++#pkg_resources.require('FormEncode')

Added: packages/python-formencode/trunk/debian/patches/series
===================================================================
--- packages/python-formencode/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-formencode/trunk/debian/patches/series	2014-07-29 19:09:47 UTC (rev 30000)
@@ -0,0 +1 @@
+disable_pkg_resources_in_tests.patch

Modified: packages/python-formencode/trunk/debian/rules
===================================================================
--- packages/python-formencode/trunk/debian/rules	2014-07-29 19:09:39 UTC (rev 29999)
+++ packages/python-formencode/trunk/debian/rules	2014-07-29 19:09:47 UTC (rev 30000)
@@ -1,11 +1,14 @@
 #! /usr/bin/make -f
 export PYBUILD_NAME=formencode
-export PYBUILD_TEST_NOSE=1
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_auto_install:
 	dh_auto_install --buildsystem=pybuild
 	find debian/python-formencode/ -type d -name i18n -print0 | xargs --null --no-run-if-empty rm -rf
 	dh_install -X.po -X.py formencode/i18n/* /usr/share/locale/
+
+override_dh_auto_test:
+	# network is required for the http://this.domain.does.not.exist.example.org/test.html test
+	http_proxy='' dh_auto_test --buildsystem=pybuild -- --test-nose --disable test/python3




More information about the Python-modules-commits mailing list