debian/0000775000000000000000000000000012435520402007165 5ustar debian/control0000664000000000000000000000420412403662577010607 0ustar Source: python-pkginfo Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Jan Dittberner Build-Depends: debhelper (>= 9~), dh-python, python-all, python3-all, python-setuptools, python3-setuptools, python3-sphinx Standards-Version: 3.9.5 X-Python-Version: >= 2.6 X-Python3-Version: >= 3.3 Homepage: http://pypi.python.org/pypi/pkginfo/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-pkginfo/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-pkginfo/trunk/ Package: python-pkginfo Architecture: all Depends: python-pkg-resources, ${misc:Depends}, ${python:Depends} Recommends: python-pkginfo-doc (=${binary:Version}) Description: Python 2.x module to query metadata from packages This package provides an API for querying the distutils metadata written in the PKG-INFO file inside a source distribution (an sdist), or into the EGG-INFO directory of an installed distribution. . This package contains the Python 2 version of the library Package: python-pkginfo-doc Architecture: all Section: doc Depends: ${misc:Depends}, ${sphinxdoc:Depends} Description: Python module to query metadata from packages documentation This package provides an API for querying the distutils metadata written in the PKG-INFO file inside a source distribution (an sdist), or into the EGG-INFO directory of an installed distribution. Package: python3-pkginfo Architecture: all Depends: python3-pkg-resources, ${misc:Depends}, ${python3:Depends} Recommends: python-pkginfo-doc (=${binary:Version}) Breaks: python-pkginfo (<< 1.1-2) Replaces: python-pkginfo (<< 1.1-2) Description: Python 3.x module to query metadata from packages This package provides an API for querying the distutils metadata written in the PKG-INFO file inside a source distribution (an sdist), or into the EGG-INFO directory of an installed distribution. . This package contains the Python 3 version of the library In addition, this package contains the 'pkginfo' executable debian/rules0000775000000000000000000000151012403644377010257 0ustar #!/usr/bin/make -f export PYBUILD_NAME=pkginfo # Let's ship pkginfo executable only in the python3 version of the package export PYBUILD_AFTER_INSTALL_python2=rm -f {destdir}/usr/bin/pkginfo && find {destdir} -type d -empty -delete %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild override_dh_auto_build: dh_auto_build --buildsystem=pybuild python3 setup.py build_sphinx override_dh_clean: rm -rf *.egg-info pkginfo/tests/sneaky/src/namespaced.sneaky.egg-info dh_clean override_dh_auto_test: ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) set -e -x; \ cd pkginfo/tests/sneaky ; python setup.py egg_info ; cd ../../.. ; \ PYTHONPATH=$(CURDIR)/build/lib.* python setup.py test cd pkginfo/tests/sneaky ; python3 setup.py egg_info ; cd ../../.. ; \ PYTHONPATH=$(CURDIR)/build/lib.* python3 setup.py test endif debian/python-pkginfo-doc.docs0000664000000000000000000000002212403644377013565 0ustar build/sphinx/html debian/pkginfo.10000664000000000000000000000326512041312132010702 0ustar .TH PKGINFO "1" "October 2012" "pkginfo" "User Commands" .SH NAME pkginfo \- print metadata for one or more Python package distributions .SH SYNOPSIS .TP \fBpkginfo [options] \fIpath ...\fR .SH DESCRIPTION .TP Print the metadata for one or more Python package distributions. .PP Each 'path' entry can be one of the following: .PP - a source distribution: in this case, 'path' should point to an existing archive file (.tar.gz, .tar.bz2, or .zip) as generated by 'setup.py sdist'. .PP - a binary distribution: in this case, 'path' should point to an existing archive file (.egg) .PP - a "develop" checkout: in ths case, 'path' should point to a directory intialized via 'setup.py develop' (under setuptools). .PP - an installed package: in this case, 'path' should be the importable name of the package. .SH OPTIONS .IP "\-h, \-\-help" show help message and exit .IP "\-m METADATA_VERSION, \-\-metadata\-version=METADATA_VERSION" Override metadata version .IP "\-f FIELDS, \-\-field=FIELDS" Specify an output field (repeatable) .IP "\-d DOWNLOAD_URL_PREFIX, \-\-download\-url\-prefix=DOWNLOAD_URL_PREFIX" Download URL prefix .IP "\-\-simple" Output as simple key\-value pairs .IP "\-s, \-\-skip" Skip missing values in simple output .IP "\-S, \-\-no\-skip" Don't skip missing values in simple output .IP "\-\-single" Output delimited values .IP "\-\-item\-delim=ITEM_DELIM" Delimiter for fields in single\-line output .IP "\-\-sequence\-delim=SEQUENCE_DELIM" Delimiter for multi\-valued fields .IP "\-\-csv" Output as CSV .IP "\-\-ini" Output as INI .SH "SEE ALSO" The full documentation for .B pkginfo is available in /usr/share/doc/python-pkginfo-doc/html if the python-pkginfo-doc package is installed debian/source/0000775000000000000000000000000012302136746010474 5ustar debian/source/format0000664000000000000000000000001412041312132011663 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212041312132010353 0ustar 9 debian/changelog0000664000000000000000000000275612435520402011051 0ustar python-pkginfo (1.1-2~ubuntu14.04.1) trusty-backports; urgency=medium * No-change backport to trusty (LP: #1396859) -- Scott Kitterman Wed, 26 Nov 2014 22:56:50 -0500 python-pkginfo (1.1-2) unstable; urgency=medium * Team upload * Use pybuild * Add a patch that fixes unit tests when running on python3.4 * Add a patch that fixes pkginfo executable when using python3.4 * Add a new 'python3-pkginfo' binary package and move the main executable and the manual page there. This is a compromise between adding a new binary package (seems wasteful) and renaming all executables to have the interpreter version (against the python3 policy) * Adjust the 'python-pkginfo-doc' package to build with python3 and to make sense for both versions of the library -- Zygmunt Krynicki Mon, 21 Apr 2014 14:24:48 +0200 python-pkginfo (1.1-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Jan Dittberner ] * New upstream version * debian/rules: create pkginfo/tests/sneaky egg info to make the unit tests work and cleanup after testing * debian/control: bump Standards-Version (no changes) * run wrap-and-sort (changed debian/control and debian/copyright) -- Jan Dittberner Sat, 22 Feb 2014 16:05:06 +0100 python-pkginfo (0.9.1-1) unstable; urgency=low * Initial release. (Closes: #691172) -- Jan Dittberner Mon, 22 Oct 2012 20:54:14 +0200 debian/watch0000664000000000000000000000012612041312132010205 0ustar version=3 http://pypi.python.org/packages/source/p/pkginfo/ pkginfo-([\d.]+)\.tar\.gz debian/python3-pkginfo.manpages0000664000000000000000000000002112403644377013747 0ustar debian/pkginfo.1 debian/patches/0000775000000000000000000000000012403664372010626 5ustar debian/patches/fix-tests-on-python3.40000664000000000000000000000151212403662577014661 0ustar Description: Fix tests failing on python3.4 This patch corrects tests that contained hard-coded check for python3.3 where the (presumed) intent was to just test for >= 3.3. Bug-Ubuntu: https://bugs.launchpad.net/pkginfo/+bug/1367436 Forwarded: yes Last-Update: 2014-09-09 --- python-pkginfo-1.1.orig/pkginfo/tests/test_installed.py +++ python-pkginfo-1.1/pkginfo/tests/test_installed.py @@ -41,7 +41,7 @@ class InstalledTests(unittest.TestCase): installed = self._makeOne(wsgiref) self.assertEqual(installed.package, wsgiref) self.assertEqual(installed.package_name, 'wsgiref') - if sys.version_info[:2] == (3, 3): + if sys.version_info[:2] >= (3, 3): self.assertEqual(installed.metadata_version, None) else: self.assertEqual(installed.metadata_version, '1.0') debian/patches/fix-configparser-import0000664000000000000000000000146612403662577015343 0ustar Description: Fix configparser import to work on python3 This patch fixes the way the ConfigParser class is imported to work on both the python2.x stdlib and python3.x stdlib. Author: Zygmunt Krynicki Bug-Ubuntu: https://bugs.launchpad.net/pkginfo/+bug/1367434 Forwarded: yes Last-Update: 2014-09-09 --- python-pkginfo-1.1.orig/pkginfo/commandline.py +++ python-pkginfo-1.1/pkginfo/commandline.py @@ -16,7 +16,11 @@ o a "develop" checkout: in ths case, ' o an installed package: in this case, 'path' should be the importable name of the package. """ -from ConfigParser import ConfigParser +import sys +if sys.version_info[0] == 3: + from configparser import ConfigParser +else: + from ConfigParser import ConfigParser from csv import writer import optparse import os debian/patches/series0000664000000000000000000000005712403644377012050 0ustar fix-tests-on-python3.4 fix-configparser-import debian/copyright0000664000000000000000000000743712302136112011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pkginfo Upstream-Contact: Tres Seaver Source: http://pypi.python.org/pypi/pkginfo/ Files: * Copyright: 2009-2012 Tres Seaver, Agendaless Consulting License: Python PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- . 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. . 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. Files: debian/* Copyright: 2012 Jan Dittberner License: MIT Copyright (c) 2012 Jan Dittberner . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/python-pkginfo-doc.doc-base0000664000000000000000000000072312403644377014322 0ustar Document: python-pkginfo Title: pkginfo - Python 2/3 module to query metadata from packages Author: Tres Seaver Abstract: pkginfo provides an API for querying the distutils metadata written in the PKG-INFO file inside a source distribution (an sdist), or into the EGG-INFO directory of an installed distribution. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-pkginfo-doc/html/index.html Files: /usr/share/doc/python-pkginfo-doc/html/*.html