[Python-modules-commits] r26892 - in packages/webtest/trunk/debian (6 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Wed Dec 25 09:18:37 UTC 2013


    Date: Wednesday, December 25, 2013 @ 09:18:35
  Author: piotr
Revision: 26892

* Add python3-webtest binary package
* Move documentation to python-webtest-doc binary package
* Switch debian/rules to dh sequencer and pybuild buildsystem
* debhelper's compat changed to 9

Added:
  packages/webtest/trunk/debian/python-webtest-doc.dirs
    (from rev 26817, packages/webtest/trunk/debian/dirs)
Modified:
  packages/webtest/trunk/debian/changelog
  packages/webtest/trunk/debian/compat
  packages/webtest/trunk/debian/control
  packages/webtest/trunk/debian/rules
Deleted:
  packages/webtest/trunk/debian/dirs

Modified: packages/webtest/trunk/debian/changelog
===================================================================
--- packages/webtest/trunk/debian/changelog	2013-12-24 14:12:39 UTC (rev 26891)
+++ packages/webtest/trunk/debian/changelog	2013-12-25 09:18:35 UTC (rev 26892)
@@ -1,3 +1,12 @@
+webtest (2.0.10-2) UNRELEASED; urgency=medium
+
+  * Add python3-webtest binary package
+  * Move documentation to python-webtest-doc binary package
+  * Switch debian/rules to dh sequencer and pybuild buildsystem
+  * debhelper's compat changed to 9
+
+ -- Piotr Ożarowski <piotr at debian.org>  Tue, 24 Dec 2013 11:10:23 +0100
+
 webtest (2.0.10-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/webtest/trunk/debian/compat
===================================================================
--- packages/webtest/trunk/debian/compat	2013-12-24 14:12:39 UTC (rev 26891)
+++ packages/webtest/trunk/debian/compat	2013-12-25 09:18:35 UTC (rev 26892)
@@ -1 +1 @@
-5
+9

Modified: packages/webtest/trunk/debian/control
===================================================================
--- packages/webtest/trunk/debian/control	2013-12-24 14:12:39 UTC (rev 26891)
+++ packages/webtest/trunk/debian/control	2013-12-25 09:18:35 UTC (rev 26892)
@@ -3,9 +3,14 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Piotr Ożarowski <piotr at debian.org>
-Build-Depends: debhelper (>= 5)
-Build-Depends-Indep: python-all, dh-python,
- python-setuptools (>= 0.6b3-1~), python-webob, python-sphinx (>= 1.0.7+dfsg-1~)
+Build-Depends: debhelper (>= 9)
+Build-Depends-Indep: dh-python, python-all, python3-all,
+ python-setuptools, python-webob,
+ python3-setuptools, python3-webob,
+# docs & tests
+ python-sphinx (>= 1.0.7+dfsg-1~), python-six, python-bs4, python-waitress,
+# tests
+# python-unittest2, python-pyquery
 Standards-Version: 3.9.5
 X-Python-Version: >=2.6
 Homepage: http://pythonpaste.org/webtest/
@@ -18,10 +23,39 @@
  python-six, python-waitress (>= 0.8.5), python-bs4,
  python-paste (>= 1.7.1), python-pastedeploy
 Recommends: python-lxml, python-pyquery
-Suggests: ${sphinxdoc:Depends}
+Suggests: python-webtest-doc
 Description: wraps any WSGI application and makes it easy to test
  WebTest helps you test your WSGI-based web applications. This can be any
  application that has a WSGI (Web Server Gateway Interface) interface,
  including an application written in a framework that supports WSGI (which
  includes most actively developed Python web frameworks – almost anything
  that even nominally supports WSGI should be testable).
+
+Package: python3-webtest
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python3-webob,
+ python3-six, python3-waitress (>= 0.8.5), python3-bs4,
+ python3-paste, python3-pastedeploy
+Recommends: python3-lxml
+#, python3-pyquery
+Suggests: python-webtest-doc
+Description: wraps any WSGI application and makes it easy to test
+ WebTest helps you test your WSGI-based web applications. This can be any
+ application that has a WSGI (Web Server Gateway Interface) interface,
+ including an application written in a framework that supports WSGI (which
+ includes most actively developed Python web frameworks – almost anything
+ that even nominally supports WSGI should be testable).
+ .
+ This is the Python 3 version of the package.
+
+Package: python-webtest-doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Breaks: python-webtest (<< 2.0.10-2)
+Replaces: python-webtest (<< 2.0.10-2)
+Description: wraps any WSGI application and makes it easy to test
+ WebTest helps you test your WSGI-based web applications. This can be any
+ application that has a WSGI (Web Server Gateway Interface) interface,
+ including an application written in a framework that supports WSGI (which
+ includes most actively developed Python web frameworks – almost anything
+ that even nominally supports WSGI should be testable).

Deleted: packages/webtest/trunk/debian/dirs
===================================================================
--- packages/webtest/trunk/debian/dirs	2013-12-24 14:12:39 UTC (rev 26891)
+++ packages/webtest/trunk/debian/dirs	2013-12-25 09:18:35 UTC (rev 26892)
@@ -1,2 +0,0 @@
-/usr/share/doc/python-webtest/docs
-/usr/share/lintian/overrides

Copied: packages/webtest/trunk/debian/python-webtest-doc.dirs (from rev 26817, packages/webtest/trunk/debian/dirs)
===================================================================
--- packages/webtest/trunk/debian/python-webtest-doc.dirs	                        (rev 0)
+++ packages/webtest/trunk/debian/python-webtest-doc.dirs	2013-12-25 09:18:35 UTC (rev 26892)
@@ -0,0 +1,2 @@
+/usr/share/doc/python-webtest/docs
+/usr/share/lintian/overrides

Modified: packages/webtest/trunk/debian/rules
===================================================================
--- packages/webtest/trunk/debian/rules	2013-12-24 14:12:39 UTC (rev 26891)
+++ packages/webtest/trunk/debian/rules	2013-12-25 09:18:35 UTC (rev 26892)
@@ -1,54 +1,20 @@
-#!/usr/bin/make -f
+#! /usr/bin/make -f
 
-#export DH_VERBOSE=1
+export PYBUILD_NAME=webtest
+# disable tests, some dependencies are not packaged, f.e. wsgiproxy
+export PYBUILD_DISABLE=test
 
-PYVERS=$(shell pyversions -vr)
-PKGDIR=$(CURDIR)/debian/python-webtest
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -rf dist build
-	find . -name *\.py[co] -exec rm {} \;
-	dh_clean build-docs* $(PYVERS:%=install-python%)
-
-build: build-indep
-build-arch:
-build-indep: build-docs
-
-build-docs:
-	dh_testdir
-	dh_installdirs
+override_dh_auto_build:
+	dh_auto_build --buildsystem=pybuild
 	mkdir -p docs/_static # Sphinx needs it
-	PYTHONPATH=. sphinx-build -N -q -E -b html docs/ $(PKGDIR)/usr/share/doc/python-webtest/docs/
-	touch $@
-
-install: $(PYVERS:%=install-python%)
-install-python%:
-	python$* setup.py install \
-		--single-version-externally-managed \
-		--root $(CURDIR)/debian/python-webtest
-	touch $@
-
-binary-indep: build install
-	dh_testdir -i
-	dh_testroot -i
-	dh_installchangelogs -i
-	dh_installdocs -i
-	dh_sphinxdoc -i
-	dh_python2 -i
+	PYTHONPATH=. sphinx-build -N -q -E -b html docs/ debian/python-webtest-doc/usr/share/doc/python-webtest-doc/
 	# it's not an extra license file
-	echo "python-webtest: extra-license-file usr/share/doc/python-webtest/docs/_sources/license.txt" \
-		>> $(PKGDIR)/usr/share/lintian/overrides/python-webtest
-	dh_compress -i -X.py -X.js
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i -- -Z bzip2
+	dh_installdirs
+	echo "python-webtest: extra-license-file usr/share/doc/python-webtest-doc/_sources/license.txt" \
+		>> debian/python-webtest-doc/usr/share/lintian/overrides/python-webtest
 
-binary-arch:
-
-binary: binary-indep binary-arch
-
-.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install build
+override_dh_sphinxdoc:
+	dh_sphinxdoc -p python-webtest-doc




More information about the Python-modules-commits mailing list