[Python-modules-commits] r30279 - in packages/configobj/trunk/debian (control rules)

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Wed Aug 27 14:18:44 UTC 2014


    Date: Wednesday, August 27, 2014 @ 14:18:43
  Author: bdrung
Revision: 30279

Use the pybuild buildsystem and release a package for Python 3.

Closes: #660172

Modified:
  packages/configobj/trunk/debian/control
  packages/configobj/trunk/debian/rules

Modified: packages/configobj/trunk/debian/control
===================================================================
--- packages/configobj/trunk/debian/control	2014-08-27 13:56:43 UTC (rev 30278)
+++ packages/configobj/trunk/debian/control	2014-08-27 14:18:43 UTC (rev 30279)
@@ -10,11 +10,16 @@
  python-all (>= 2.6.5-13~),
  python-docutils,
  python-epydoc,
+ python-pytest,
  python-setuptools,
- python-unittest2
+ python-unittest2,
+ python3-all,
+ python3-pytest,
+ python3-setuptools
 Standards-Version: 3.9.5
 Homepage: http://www.voidspace.org.uk/python/configobj.html
-X-Python-Version: >= 2.3
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/configobj/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/configobj/trunk/
 XS-Testsuite: autopkgtest
@@ -22,7 +27,7 @@
 Package: python-configobj
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}
-Description: simple but powerful config file reader and writer for Python
+Description: simple but powerful config file reader and writer for Python 2
  ConfigObj is a simple but powerful config file reader and writer: an
  ini file round tripper. Its main feature is that it is very easy to
  use, with a straightforward programmer's interface and a simple
@@ -40,3 +45,29 @@
   * The order of keys/sections is preserved
   * Full Unicode support
   * Powerful unrepr mode for storing/retrieving Python data-types
+ .
+  This is the Python 2 version of the package.
+
+Package: python3-configobj
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: simple but powerful config file reader and writer for Python 3
+ ConfigObj is a simple but powerful config file reader and writer: an
+ ini file round tripper. Its main feature is that it is very easy to
+ use, with a straightforward programmer's interface and a simple
+ syntax for config files. It has lots of other features, though:
+ .
+  * Nested sections (subsections), to any level
+  * List values
+  * Multiple line values
+  * String interpolation (substitution)
+  * Integrated with a powerful validation system
+    + including automatic type checking/conversion
+    + and allowing default values
+    + repeated sections
+  * All comments in the file are preserved
+  * The order of keys/sections is preserved
+  * Full Unicode support
+  * Powerful unrepr mode for storing/retrieving Python data-types
+ .
+  This is the Python 3 version of the package.

Modified: packages/configobj/trunk/debian/rules
===================================================================
--- packages/configobj/trunk/debian/rules	2014-08-27 13:56:43 UTC (rev 30278)
+++ packages/configobj/trunk/debian/rules	2014-08-27 14:18:43 UTC (rev 30279)
@@ -1,8 +1,10 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+export PYBUILD_NAME=configobj
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_auto_build:
 	dh_auto_build
@@ -11,19 +13,7 @@
 		-o api configobj
 
 override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	set -ex; \
-	export PYTHONPATH=.; \
-	export PYTHONWARNINGS=default; \
-	for py in $(shell pyversions -r); do \
-		$$py tests/test_configobj.py; \
-		if [ "$$py" = "python2.7" ]; then \
-			$$py -m unittest discover -s tests; \
-		else \
-			$$py $(shell which unit2) discover -s tests; \
-		fi; \
-	done
-endif
+	dh_auto_test -- --test-pytest --test-args "$(CURDIR)/tests"
 
 override_dh_compress:
 	dh_compress -X.js




More information about the Python-modules-commits mailing list