[Python-modules-commits] [pycurl] 06/06: Prep 7.43.0-1 release.

Barry Warsaw barry at moszumanska.debian.org
Thu Mar 10 15:09:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository pycurl.

commit 21196b20b165a5a676ecd41926459acac171e786
Author: Barry Warsaw <barry at python.org>
Date:   Thu Mar 10 10:09:33 2016 -0500

    Prep 7.43.0-1 release.
---
 debian/changelog         |  7 +++++++
 debian/tests/control     |  2 ++
 debian/tests/livetest.sh | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a204c5b..c38c022 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pycurl (7.43.0-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * d/tests: Add a live test which downloads a well published resource.
+
+ -- Barry Warsaw <barry at debian.org>  Thu, 10 Mar 2016 09:48:57 -0500
+
 pycurl (7.21.5-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/tests/control b/debian/tests/control
index de24746..71b6b24 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -4,3 +4,5 @@
 Test-Command: python -c "import curl; print curl.__file__"
 
 Test-Command: python3 -c "import curl; print(curl.__file__)"
+
+Tests: livetest.sh
diff --git a/debian/tests/livetest.sh b/debian/tests/livetest.sh
new file mode 100644
index 0000000..94cdd18
--- /dev/null
+++ b/debian/tests/livetest.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+cat > $ADTTMP/livetest.py <<EOF
+from __future__ import print_function
+
+import io
+import pycurl
+
+fp = io.BytesIO()
+
+c = pycurl.Curl()
+c.setopt(pycurl.URL, 'https://pypi.python.org/daytime')
+c.setopt(pycurl.USERAGENT, 'Debian package DEP-8 test')
+c.setopt(pycurl.WRITEDATA, fp)
+c.perform()
+c.close()
+
+print(fp.getvalue().decode('utf-8'), end='')
+
+EOF
+
+for py in `pyversions -i`
+do
+    $py --version
+    $py $ADTTMP/livetest.py
+done
+
+for py in `py3versions -i`
+do
+    $py --version
+    $py $ADTTMP/livetest.py
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pycurl.git



More information about the Python-modules-commits mailing list