debian/0000775000000000000000000000000012466556026007204 5ustar debian/python3-wadllib.install0000664000000000000000000000002012466552270013601 0ustar usr/lib/python3 debian/watch0000664000000000000000000000011112466552270010223 0ustar version=3 https://launchpad.net/wadllib/+download .*/wadllib-(.+).tar.gz debian/patches/0000775000000000000000000000000012466554163010633 5ustar debian/patches/install-data0000664000000000000000000000104012466552270013123 0ustar Description: Install version.txt with package_data Author: Stefano Rivera Last-Update: 2012-02-23 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ version=__version__, packages=find_packages('src'), package_dir={'':'src'}, + package_data={'wadllib': ['version.txt']}, include_package_data=True, zip_safe=False, maintainer='LAZR Developers', --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,2 @@ -recursive-include src *.json *.xml *.txt include ez_setup.py include COPYING.txt HACKING.txt debian/patches/series0000664000000000000000000000005212466554163012045 0ustar install-data bytes.patch bytes-test.patch debian/patches/bytes-test.patch0000664000000000000000000000222312466554142013753 0ustar Description: Update doctests to be pyhon2 & python3 friendly. Origin: commit, revision id: dimitri.j.ledkov@intel.com-20150211041908-7greonadajj0omw8 Author: Dimitri John Ledkov Last-Update: 2015-02-11 X-Bzr-Revision-Id: dimitri.j.ledkov@intel.com-20150211041908-7greonadajj0omw8 === modified file 'src/wadllib/README.txt' --- old/src/wadllib/README.txt 2013-02-25 18:53:09 +0000 +++ new/src/wadllib/README.txt 2015-02-11 04:19:08 +0000 @@ -573,24 +573,7 @@ ... text_field="text", binary_field="\x01\x02") >>> print(media_type) multipart/form-data; boundary=... - >>> print(doc) - MIME-Version: 1.0 - Content-Type: multipart/form-data; boundary="..." - - --... - Content-Type: text/plain; charset="utf-8" - MIME-Version: 1.0 - Content-Disposition: form-data; name="text_field" - - text - --... - Content-Type: application/octet-stream - MIME-Version: 1.0 - Content-Disposition: form-data; name="binary_field" - - ... - --... - >>> '\x01\x02' in doc + >>> b'\x01\x02' in doc True >>> method = service_root.get_method('post', 'text/unknown') debian/patches/bytes.patch0000664000000000000000000000236012466552322012776 0ustar Description: MIME document needs to be bytes in python3 Origin: commit, revision id: dimitri.j.ledkov@intel.com-20150211040157-2hyi9olcaaoc3x5p Author: Dimitri John Ledkov Bug: https://launchpad.net/bugs/1414063 Last-Update: 2015-02-11 X-Bzr-Revision-Id: dimitri.j.ledkov@intel.com-20150211040157-2hyi9olcaaoc3x5p === modified file 'src/wadllib/application.py' --- old/src/wadllib/application.py 2013-02-25 18:53:09 +0000 +++ new/src/wadllib/application.py 2015-02-11 03:56:31 +0000 @@ -853,11 +853,10 @@ inner['Content-Disposition'] = ( 'form-data; name="%s"' % param.name) outer.attach(inner) - doc = str(outer) - # Chop off the 'From' line, which only makes sense in an - # email. (Python 3 does not include it.) - if doc.startswith('From '): - doc = doc[doc.find('\n')+1:] + if hasattr(outer, "as_bytes"): + doc = outer.as_bytes() + else: + doc = outer.as_string(unixfrom=False) media_type = (outer.get_content_type() + '; boundary="%s"' % outer.get_boundary()) elif media_type == 'application/json': debian/rules0000775000000000000000000000137412466552270010266 0ustar #!/usr/bin/make -f PYTHON2=$(shell pyversions -vr) PYTHON3=$(shell py3versions -vr) %: dh $@ --with python2,python3 build-python%: python$* setup.py build override_dh_auto_build: $(PYTHON3:%=build-python%) dh_auto_build ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) test-python%: python$* setup.py test -vv override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) endif install-python%: python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb override_dh_auto_install: $(PYTHON3:%=install-python%) dh_auto_install find debian/tmp -name SOURCES.txt -delete override_dh_installchangelogs: dh_installchangelogs -k src/wadllib/NEWS.txt override_dh_auto_clean: dh_auto_clean rm -rf build rm -rf src/*.egg-info debian/source/0000775000000000000000000000000012466552270010501 5ustar debian/source/format0000664000000000000000000000001412466552270011707 0ustar 3.0 (quilt) debian/control0000664000000000000000000000271212466555620010610 0ustar Source: python-wadllib Section: python Priority: optional Maintainer: Stefano Rivera Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 7.3.0), python-all (>= 2.6.6-3~), python-lazr.uri, python-setuptools, python3-all (>= 3.1.2-6~), python3-lazr.uri, python3-setuptools Standards-Version: 3.9.6 Homepage: https://launchpad.net/wadllib Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-wadllib/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-wadllib/trunk/ X-Python-Version: >= 2.4 X-Python3-Version: >= 3.4 Package: python-wadllib Architecture: all Depends: ${misc:Depends}, ${python:Depends} Description: Python library for navigating WADL files The Web Application Description Language (WADL) is an XML vocabulary for describing the capabilities of HTTP resources. wadllib can be used in conjunction with an HTTP library to navigate and manipulate those resources. . This package provides wadllib for Python 2.x. Package: python3-wadllib Architecture: all Depends: ${misc:Depends}, ${python3:Depends} Description: Python 3 library for navigating WADL files The Web Application Description Language (WADL) is an XML vocabulary for describing the capabilities of HTTP resources. wadllib can be used in conjunction with an HTTP library to navigate and manipulate those resources. . This package provides wadllib for Python 3.x. debian/changelog0000664000000000000000000001412212466555752011063 0ustar python-wadllib (1.3.2-3) unstable; urgency=medium * Return binary MIME representation, rather than string. (LP: #1414063) * Bump python3 compat to 3.4. * Bump standards version to 3.9.6. -- Dimitri John Ledkov Wed, 11 Feb 2015 04:34:50 +0000 python-wadllib (1.3.2-2) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Stefano Rivera ] * Upload to unstable. * Drop SOURCES.txt from the binary packages. -- Stefano Rivera Fri, 10 May 2013 00:42:46 +0200 python-wadllib (1.3.2-1) experimental; urgency=low [ Barry Warsaw ] * Team upload. - New upstream release. - Fix hash randomization test failure for Python 3.3. (LP: #1132125) (Closes: #686332) * debian/control: Update Standards-Version to 3.9.4. [ Stefano Rivera ] * Drop no-et-roundtrip patch, applied upstream. * Bump copyright years. -- Stefano Rivera Tue, 26 Feb 2013 02:14:37 +0200 python-wadllib (1.3.0-2) unstable; urgency=low * Rebuild against python3-defaults 3.2.3~rc1-2, to generate correct ${python3:Depends}. * Patch no-et-roundtrip: Avoid round-trip through ET that loses namespaces. (LP: #924240) * Bump Standards-Version to 3.9.3, no changes needed. -- Stefano Rivera Thu, 22 Mar 2012 16:48:48 +0200 python-wadllib (1.3.0-1) unstable; urgency=low * New upstream release. (Closes: #658051) - With Python 3 support. Thanks Barry Warsaw. * New maintainer. * Wrap long dependency lists. * Run test suite. - B-D on python-all and python3-all for test suite. * Dropped usage of ${python:Breaks}, no longer used by dh_python2. * Drop pydist-overrides, no longer necessary. * Updated watch file. * Clean src/egg-info. * Removed changelog duplicate, NEWS.txt. * debian/copyright: Converted to DEP5 machine-readable format. * Install version.txt via package_data. -- Stefano Rivera Thu, 23 Feb 2012 00:39:57 +0200 python-wadllib (1.2.0+ds-2) unstable; urgency=low * Python transition: - Add support for python2.7 - Drop support for python2.5 * debian/control: - Bump Standards-Version to 3.9.2, no changes required. -- Luca Falavigna Mon, 18 Apr 2011 22:41:01 +0200 python-wadllib (1.2.0+ds-1) unstable; urgency=low * New upstream release. * Upload to unstable -- Luca Falavigna Mon, 14 Feb 2011 21:52:29 +0100 python-wadllib (1.1.8+ds-1) experimental; urgency=low * New upstream release. * Repack upstream tarball to include COPYING.txt and HACKING.txt files, they were removed from release tarball by mistake. * Switch to dh_python2. * debian/patches/no_package_data.patch: - Do not install documentation files in Python module directory. * debian/control: - Bump Standards-Version to 3.9.1, no changes required. * debian/docs: - Install documentation files under /usr/share/doc. * debian/pydist-overrides: - Do not require elementtree as dependency. -- Luca Falavigna Sat, 04 Dec 2010 12:56:24 +0100 python-wadllib (1.1.4-2) unstable; urgency=low * Switch to format 3.0 (quilt). * debian/control: - Move myself as Maintainer, DPMT as Uploaders. - Always depend on python-simplejson, drop the alternative python2.6 dependency, as wadllib explicitly needs simplejson, not json provided by python2.6. - Remove references on python-elementtree and python-celementtree. - Bump Standards-Version to 3.8.4, no changes required. * debian/preinst: - Remove it, useful for Ubuntu Lucid only. * debian/rules: - Install upstream changelog. -- Luca Falavigna Thu, 29 Apr 2010 21:52:07 +0200 python-wadllib (1.1.4-1) unstable; urgency=low * Initial Debian release (Closes: #551274). * Package taken from Ubuntu, major changes introduced are: - Switch to debhelper 7. - Switch to python-support, also providing preinst script to handle removal of stale .pyc files to ease transition. -- Luca Falavigna Sat, 17 Oct 2009 13:40:56 +0200 python-wadllib (1.1.2-0ubuntu1) karmic; urgency=low * New upstream release. * Add python2.6 as an alternative to celementree. Add python2.5 and python2.6 as alternative Build-Depends. (LP: #374893) -- James Westby Fri, 14 Aug 2009 16:31:45 +0100 python-wadllib (0.1~bzr7-0ubuntu1) jaunty; urgency=low * New upstream snapshot. - Expose dates and times as python datetime objects. This may break code that tries to parse these values. * Add back VCS-Bzr pointing to the correct location. * Turn on the missing doctests extensions that are needed for the tests to pass. -- James Westby Mon, 09 Feb 2009 12:33:04 +0100 python-wadllib (0.1~bzr6-0ubuntu3) jaunty; urgency=low * Add python2.5 to python-celementtree | python-elementtree so they do not get automatically installed on a python2.5 system * Remove vcs references in debian/control to non-existant vcs repo * Comment ezsetup out of setup.py to tame ezsetup and use installed packages -- Scott Kitterman Sat, 07 Feb 2009 20:42:47 -0500 python-wadllib (0.1~bzr6-0ubuntu2) intrepid; urgency=low * Add "python-celementtree | python-elementtree" to Depends and Build-Depends-Indep, for python2.4. The code will optimistically import the former, but fall back to the latter. They aren't needed on python2.5, as it first tries to import the module built in to that version, so these can be dropped again when python2.4 is removed from the archive. Thanks to Colin Watson. -- James Westby Thu, 16 Oct 2008 12:13:23 +0100 python-wadllib (0.1~bzr6-0ubuntu1) intrepid; urgency=low * Initial release (LP: #254613) * Disable setuptools_bzr in setup.py, as we are building from a tarball, and so the detection of version controlled data files fails, meaning that important files are not included in the package. -- James Westby Mon, 04 Aug 2008 12:37:47 +0100 debian/python3-wadllib.docs0000664000000000000000000000002712466552270013072 0ustar src/wadllib/README.txt debian/python-wadllib.docs0000664000000000000000000000002712466552270013007 0ustar src/wadllib/README.txt debian/compat0000664000000000000000000000000212466552270010377 0ustar 7 debian/copyright0000664000000000000000000000174212466552270011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: wadllib Source: https://launchpad.net/wadllib Files: * Copyright: 2008-2013 Canonical Ltd. License: LGPL-3.0 Files: debian/* Copyright: 2009, James Westby 2009-2011, Luca Falavigna 2012-2013, Stefano Rivera License: LGPL-3.0 License: LGPL-3.0 lazr.restfulclient is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3 of the License. . lazr.restfulclient is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . On Debian systems the complete text of the LGPL, version 3, can be found at /usr/share/common-licenses/LGPL-3. debian/python-wadllib.install0000664000000000000000000000002112466552270013517 0ustar usr/lib/python2*