[Python-modules-commits] [python-wget] 04/09: Add python3 support

Balasankar C balasankarc-guest at moszumanska.debian.org
Sat Apr 4 11:04:47 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository python-wget.

commit bbbe22ef79c1c7835cb8309ed3437c903bc46af3
Author: Balasankar C <balasankarc at autistici.org>
Date:   Mon Mar 30 20:39:16 2015 +0530

    Add python3 support
---
 debian/control | 32 ++++++++++++++++++++++++++++++--
 debian/rules   |  2 +-
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 5edda5d..8497f1a 100644
--- a/debian/control
+++ b/debian/control
@@ -2,15 +2,43 @@ Source: python-wget
 Maintainer: Balasankar C <balasankarc at autistici.org>
 Section: python
 Priority: optional
-Build-Depends: python-all (>= 2.6.6-3), debhelper (>= 9), dh-python, python-setuptools 
+Build-Depends: python-all (>= 2.6.6-3), debhelper (>= 9), dh-python, python-setuptools, 
+               python3-all, python3-setuptools
 Standards-Version: 3.9.6
 Homepage: http://bitbucket.org/techtonik/python-wget/
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 
 Package: python-wget
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}, python-urllib3
-Description: pure Python download utility
+Description: pure Python download utility for Python 2
+ This package installs the Python wget module for python version 2.x
+ Usage
+ =====
+ .
+   python -m wget [options] <URL>
+ .
+   options:
+     -o --output FILE|DIR   output filename or directory
+ .
+ API Usage
+ =========
+ .
+   >>> import wget
+   >>> url = 'http://www.futurecrew.com/skaven/song_files/mp3/razorback.mp3'
+   >>> filename = wget.download(url)
+   100% [................................................] 3841532 / 3841532>
+   >> filename
+   'razorback.mp3'
+ .
+ The skew that you see above is a documented side effect.
+
+Package: python3-wget
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}, python-urllib3
+Description: pure Python download utility for Python 3
+ This package installs the Python wget module for python version 3.x
  Usage
  =====
  .
diff --git a/debian/rules b/debian/rules
index ea5a953..be11ae8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,5 @@
 # Mon, 30 Mar 2015 01:09:57 +0530
 export PYBUILD_NAME=wget
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
 

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



More information about the Python-modules-commits mailing list