[Python-modules-commits] r29224 - in packages/python-smstrade/trunk/debian (9 files)
jandd at users.alioth.debian.org
jandd at users.alioth.debian.org
Wed Jun 4 22:02:41 UTC 2014
Date: Wednesday, June 4, 2014 @ 22:02:40
Author: jandd
Revision: 29224
* add Python 3 support
- new binary package python3-smstrade
- move docs and examples to separate binary package python-smstrade-doc
- add python3 Build-Depends and Depends lines
- change debian/rules to use PYBUILD_* variables and change --buildsystem
to pybuild, add python3 to --with
* renames:
- debian/manpages -> debian/python-smstrade.manpages
- debian/docs -> debian/python-smstrade-doc.docs
- debian/examples -> debian/python-smstrade-doc.examples
Added:
packages/python-smstrade/trunk/debian/python-smstrade-doc.docs
(from rev 29215, packages/python-smstrade/trunk/debian/docs)
packages/python-smstrade/trunk/debian/python-smstrade-doc.examples
(from rev 29215, packages/python-smstrade/trunk/debian/examples)
packages/python-smstrade/trunk/debian/python-smstrade.manpages
(from rev 29215, packages/python-smstrade/trunk/debian/manpages)
Modified:
packages/python-smstrade/trunk/debian/changelog
packages/python-smstrade/trunk/debian/control
packages/python-smstrade/trunk/debian/rules
Deleted:
packages/python-smstrade/trunk/debian/docs
packages/python-smstrade/trunk/debian/examples
packages/python-smstrade/trunk/debian/manpages
Modified: packages/python-smstrade/trunk/debian/changelog
===================================================================
--- packages/python-smstrade/trunk/debian/changelog 2014-06-04 20:56:11 UTC (rev 29223)
+++ packages/python-smstrade/trunk/debian/changelog 2014-06-04 22:02:40 UTC (rev 29224)
@@ -1,3 +1,18 @@
+python-smstrade (0.2.4-3) UNRELEASED; urgency=medium
+
+ * add Python 3 support
+ - new binary package python3-smstrade
+ - move docs and examples to separate binary package python-smstrade-doc
+ - add python3 Build-Depends and Depends lines
+ - change debian/rules to use PYBUILD_* variables and change --buildsystem
+ to pybuild, add python3 to --with
+ * renames:
+ - debian/manpages -> debian/python-smstrade.manpages
+ - debian/docs -> debian/python-smstrade-doc.docs
+ - debian/examples -> debian/python-smstrade-doc.examples
+
+ -- Jan Dittberner <jandd at debian.org> Wed, 04 Jun 2014 23:00:05 +0200
+
python-smstrade (0.2.4-2) unstable; urgency=medium
* add python-six to Depends and Build-Depends
Modified: packages/python-smstrade/trunk/debian/control
===================================================================
--- packages/python-smstrade/trunk/debian/control 2014-06-04 20:56:11 UTC (rev 29223)
+++ packages/python-smstrade/trunk/debian/control 2014-06-04 22:02:40 UTC (rev 29224)
@@ -3,18 +3,28 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Jan Dittberner <jandd at debian.org>
-Build-Depends: debhelper (>= 9), python
-Build-Depends-Indep: python-appdirs,
+Build-Depends: debhelper (>= 9), python, python3
+Build-Depends-Indep: dh-python,
+ python-appdirs,
python-httpretty,
python-pytest,
python-requests,
python-setuptools,
python-six,
- python-vcversioner
+ python-vcversioner,
+ python3-appdirs,
+ python3-httpretty,
+ python3-pytest,
+ python3-requests,
+ python3-setuptools,
+ python3-six,
+ python3-vcversioner
Standards-Version: 3.9.5
Homepage: https://pypi.python.org/pypi/smstrade/
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-smstrade/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-smstrade/trunk/
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.3
Package: python-smstrade
Architecture: all
@@ -24,7 +34,8 @@
python-six,
${misc:Depends},
${python:Depends}
-Description: Python library to send SMS via the smstrade service
+Suggests: python-smstrade-doc
+Description: Python library to send SMS via the smstrade service (Python 2)
python-smstrade lets you send SMS via and retrieve your account balance from
the service of smstrade.eu.
.
@@ -33,3 +44,42 @@
.
The package may be used for alerting in monitoring applications or other
scenarios where sending SMS might be useful.
+ .
+ This is the Python 2 version of the package.
+
+Package: python3-smstrade
+Architecture: all
+Depends: python3-appdirs,
+ python3-pkg-resources,
+ python3-requests,
+ python3-six,
+ ${misc:Depends},
+ ${python3:Depends}
+Suggests: python-smstrade-doc
+Description: Python library to send SMS via the smstrade service (Python 3)
+ python-smstrade lets you send SMS via and retrieve your account balance from
+ the service of smstrade.eu.
+ .
+ The package comes with two command line utilities smstrade_send and
+ smstrade_balance to access the library functionality from the command line.
+ .
+ The package may be used for alerting in monitoring applications or other
+ scenarios where sending SMS might be useful.
+ .
+ This is the Python 3 version of the package.
+
+Package: python-smstrade-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: Python library to send SMS via the smstrade service (documentation)
+ python-smstrade lets you send SMS via and retrieve your account balance from
+ the service of smstrade.eu.
+ .
+ The package comes with two command line utilities smstrade_send and
+ smstrade_balance to access the library functionality from the command line.
+ .
+ The package may be used for alerting in monitoring applications or other
+ scenarios where sending SMS might be useful.
+ .
+ This is the common documentation for the package.
Deleted: packages/python-smstrade/trunk/debian/docs
===================================================================
--- packages/python-smstrade/trunk/debian/docs 2014-06-04 20:56:11 UTC (rev 29223)
+++ packages/python-smstrade/trunk/debian/docs 2014-06-04 22:02:40 UTC (rev 29224)
@@ -1 +0,0 @@
-README.rst
Deleted: packages/python-smstrade/trunk/debian/examples
===================================================================
--- packages/python-smstrade/trunk/debian/examples 2014-06-04 20:56:11 UTC (rev 29223)
+++ packages/python-smstrade/trunk/debian/examples 2014-06-04 22:02:40 UTC (rev 29224)
@@ -1,2 +0,0 @@
-examples/smstrade.ini
-tests/test_*.py
Deleted: packages/python-smstrade/trunk/debian/manpages
===================================================================
--- packages/python-smstrade/trunk/debian/manpages 2014-06-04 20:56:11 UTC (rev 29223)
+++ packages/python-smstrade/trunk/debian/manpages 2014-06-04 22:02:40 UTC (rev 29224)
@@ -1,2 +0,0 @@
-debian/smstrade_balance.1
-debian/smstrade_send.1
Copied: packages/python-smstrade/trunk/debian/python-smstrade-doc.docs (from rev 29215, packages/python-smstrade/trunk/debian/docs)
===================================================================
--- packages/python-smstrade/trunk/debian/python-smstrade-doc.docs (rev 0)
+++ packages/python-smstrade/trunk/debian/python-smstrade-doc.docs 2014-06-04 22:02:40 UTC (rev 29224)
@@ -0,0 +1 @@
+README.rst
Copied: packages/python-smstrade/trunk/debian/python-smstrade-doc.examples (from rev 29215, packages/python-smstrade/trunk/debian/examples)
===================================================================
--- packages/python-smstrade/trunk/debian/python-smstrade-doc.examples (rev 0)
+++ packages/python-smstrade/trunk/debian/python-smstrade-doc.examples 2014-06-04 22:02:40 UTC (rev 29224)
@@ -0,0 +1,2 @@
+examples/smstrade.ini
+tests/test_*.py
Copied: packages/python-smstrade/trunk/debian/python-smstrade.manpages (from rev 29215, packages/python-smstrade/trunk/debian/manpages)
===================================================================
--- packages/python-smstrade/trunk/debian/python-smstrade.manpages (rev 0)
+++ packages/python-smstrade/trunk/debian/python-smstrade.manpages 2014-06-04 22:02:40 UTC (rev 29224)
@@ -0,0 +1,2 @@
+debian/smstrade_balance.1
+debian/smstrade_send.1
Modified: packages/python-smstrade/trunk/debian/rules
===================================================================
--- packages/python-smstrade/trunk/debian/rules 2014-06-04 20:56:11 UTC (rev 29223)
+++ packages/python-smstrade/trunk/debian/rules 2014-06-04 22:02:40 UTC (rev 29224)
@@ -3,17 +3,15 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export PYBUILD_NAME=smstrade
+export PYBUILD_TEST_ARGS_python2=unset http_proxy ; unset https_proxy ; cd {dir} ; py.test
+export PYBUILD_TEST_ARGS_python3=unset http_proxy ; unset https_proxy ; cd {dir} ; py.test-3
+# do not install scripts for Python 3 they are provided by the Python 2 package
+export PYBUILD_AFTER_INSTALL_python3=rm -rf {destdir}/usr/bin
-override_dh_auto_clean:
- rm -rf smstrade.egg-info
- dh_auto_clean
-
-override_dh_auto_test:
- py.test
-
override_dh_installchangelogs:
dh_installchangelogs -i ChangeLog.rst
%:
- dh $@ --with=python2 --buildsystem=python_distutils
+ dh $@ --with=python2,python3 --buildsystem=pybuild
More information about the Python-modules-commits
mailing list