debian/0000775000000000000000000000000012467204225007174 5ustar debian/control0000664000000000000000000000552412467203363010607 0ustar Source: python-netaddr Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Vincent Bernat Uploaders: Debian Python Modules Team Standards-Version: 3.9.4 Build-Depends: debhelper (>= 8), cdbs (>= 0.4.90~), python (>= 2.6.5), python3 (>= 3.2), python-setuptools (>= 0.6b3), python-sphinx (>= 1.0.7+dfsg) | python3-sphinx Homepage: https://github.com/drkjam/netaddr/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-netaddr/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-netaddr/trunk/ X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 Package: python-netaddr Architecture: all Depends: ${misc:Depends}, ${python:Depends} Suggests: ipython, python-netaddr-docs Description: manipulation of various common network address notations (Python 2) netaddr is a Python library for the manipulation of various common network address notations and representations. . It takes the hassle out of fiddling with enumerable variations of network addresses presenting a consistent, extensible, easy-to-use and (above all) Pythonic API. . With it you can validate, convert, categorise, iterate, generate, slice (and dice): - MAC (Media Access Control) - IEEE EUI-48 and EUI-64 - IP version 4 - IP version 6 - CIDR (Classless Inter-Domain Routing) . This is the Python 2 version of the package. Package: python3-netaddr Architecture: all Depends: ${misc:Depends}, ${python3:Depends} Suggests: ipython3, python-netaddr-docs Description: manipulation of various common network address notations (Python 3) netaddr is a Python library for the manipulation of various common network address notations and representations. . It takes the hassle out of fiddling with enumerable variations of network addresses presenting a consistent, extensible, easy-to-use and (above all) Pythonic API. . With it you can validate, convert, categorise, iterate, generate, slice (and dice): - MAC (Media Access Control) - IEEE EUI-48 and EUI-64 - IP version 4 - IP version 6 - CIDR (Classless Inter-Domain Routing) . This is the Python 3 version of the package. Package: python-netaddr-docs Architecture: all Section: doc Depends: ${sphinxdoc:Depends}, ${misc:Depends} Replaces: python-netaddr (<< 0.7.7-1) Breaks: python-netaddr (<< 0.7.7-1) Description: manipulation of various common network address notations (documentation) netaddr is a Python library for the manipulation of various common network address notations and representations. . It takes the hassle out of fiddling with enumerable variations of network addresses presenting a consistent, extensible, easy-to-use and (above all) Pythonic API. . This package contains the documentation. debian/source/0000775000000000000000000000000012177456575010513 5ustar debian/source/format0000664000000000000000000000001411606063763011706 0ustar 3.0 (quilt) debian/pycompat0000664000000000000000000000000211606113172010735 0ustar 2 debian/python-netaddr-docs.docs0000664000000000000000000000001111771352362013727 0ustar docs/api debian/rules0000775000000000000000000000105711771356672010272 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk # Documentation build/python-netaddr-docs:: PYTHONPATH=$(CURDIR) sphinx-build -q docs/source docs/api binary-fixup/python-netaddr-docs:: dh_sphinxdoc -p$(cdbs_curpkg) # Tests ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) install/python-netaddr install/python3-netaddr:: $(call cdbs_python_binary,python$(cdbs_python_compile_version)) \ debian/runtests.py . endif clean:: -rm -rf docs/api debian/python-netaddr.install0000664000000000000000000000003111771356251013522 0ustar usr/lib/python2* usr/bin debian/runtests.py0000664000000000000000000000013211607355736011442 0ustar import sys sys.path.insert(0, sys.argv.pop(1)) import netaddr.tests netaddr.tests.run() debian/watch0000664000000000000000000000014411530553170010220 0ustar version=3 https://github.com/drkjam/netaddr/downloads /downloads/drkjam/netaddr/netaddr-(.*).tar.gz debian/python-netaddr-docs.doc-base0000664000000000000000000000054611771352327014472 0ustar Document: python-netaddr Title: Python netaddr API documentation Author: David P. D. Moss Abstract: Autogenerated API for netaddr Python package, a network address manipulation library, done Pythonically. Section: Programming/Python Format: html Index: /usr/share/doc/python-netaddr-docs/api/index.html Files: /usr/share/doc/python-netaddr-docs/api/*.html debian/patches/0000775000000000000000000000000012467203363010625 5ustar debian/patches/01_fix_maxint_typo.diff0000664000000000000000000000155712467203363015210 0ustar # Description: Fixes a typo in netaddr/ip/sets.py when accessing _sys_maxint # Author: Adam Stokes # Origin: upstream # Bug-Ubuntu: https://bugs.launchpad.net/bugs/1421375 # Last-Update: 2015-02-12 Index: python-netaddr-0.7.10/netaddr/ip/sets.py =================================================================== --- python-netaddr-0.7.10.orig/netaddr/ip/sets.py 2012-05-30 18:11:49.000000000 -0400 +++ python-netaddr-0.7.10/netaddr/ip/sets.py 2015-02-12 14:35:09.495878877 -0500 @@ -515,7 +515,7 @@ limitation). Use the .size property for subnets of any size. """ size = self.size - if size > _sys.maxint: + if size > _sys_maxint: raise IndexError("range contains greater than %d (maxint) " \ "IP addresses! Use the .size property instead." % _sys_maxint) return size debian/patches/series0000664000000000000000000000003012467203363012033 0ustar 01_fix_maxint_typo.diff debian/python-netaddr-docs.lintian-overrides0000664000000000000000000000015211771355446016451 0ustar python-netaddr-docs binary: extra-license-file usr/share/doc/python-netaddr-docs/api/_sources/license.txt debian/netaddr.10000664000000000000000000000255311317110125010670 0ustar .\" Hey, EMACS: -*- nroff -*- .TH NETADDR 1 "December 31, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME netaddr \- interactive shell for netaddr Python library .SH DESCRIPTION This manual page documents briefly the .B netaddr command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP \fBnetaddr\fP is a Python library for the manipulation of various common network address notations and representations. .PP The \fBnetaddr\fP command provides an interactive shell based on \fBipython\fP allowing to work in a special environment where all netaddr related commands are available without additional imports. .SH OPTIONS Any option accepted by \fBipython\fP is accepted by \fBnetaddr\fP. .SH SEE ALSO .BR ipython (1) .IR /usr/share/doc/python-netaddr/api/ .SH AUTHOR This manual page was written by Vincent Bernat , for the Debian project (but may be used by others). debian/copyright0000664000000000000000000000331011056036031011113 0ustar It was originally downloaded from http://code.google.com/p/netaddr/ Files: * Copyright: © 2008 David P. D. Moss License: BSD Released under the BSD license, copied verbatim below: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: © 2008 Vincent Bernat License: BSD debian/python-netaddr.manpages0000664000000000000000000000002111317107063013635 0ustar debian/netaddr.1 debian/changelog0000664000000000000000000000752512467204225011057 0ustar python-netaddr (0.7.10-1ubuntu1.1) trusty-proposed; urgency=medium * netaddr/ip/sets.py: Fixes typo when accessing _sys_maxint (LP: #1421375) -- Adam Stokes Thu, 12 Feb 2015 14:03:02 -0600 python-netaddr (0.7.10-1build1) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:52:25 +0000 python-netaddr (0.7.10-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Vincent Bernat ] * New upstream release. * Bump Standards-Version to 3.9.4. -- Vincent Bernat Sun, 04 Aug 2013 15:45:54 +0200 python-netaddr (0.7.7-1) unstable; urgency=low * New upstream release. * Generate documentation with Sphinx instead of epydoc. Also, ship the documentation in a separate package. * Add Python 3 package. Update compatibility level to 8. -- Vincent Bernat Sat, 23 Jun 2012 16:21:19 +0200 python-netaddr (0.7.6-2) unstable; urgency=low * Clean generated documentation. Closes: #671344. * Bump Standards-Version. -- Vincent Bernat Sat, 12 May 2012 11:09:42 +0200 python-netaddr (0.7.6-1) unstable; urgency=low * New upstream release -- Vincent Bernat Sun, 15 Jan 2012 13:46:06 +0100 python-netaddr (0.7.5-4) unstable; urgency=low * Tests have moved. Update debian/runtests.py accordingly. Patch from Ubuntu. Closes: #633653. * Support for ipython 0.11. Thanks to Julian Taylor. Closes: #636476. -- Vincent Bernat Sun, 07 Aug 2011 09:05:16 +0200 python-netaddr (0.7.5-3) unstable; urgency=low * Fix debian/watch. Closes: #614358. * Add a patch to allow unpickling. Closes: #631360. + Switch to 3.0 quilt format. * Bump Standards-Version. -- Vincent Bernat Sat, 09 Jul 2011 16:34:08 +0200 python-netaddr (0.7.5-2) unstable; urgency=low * Team upload. * Rebuild to add Python 2.7 support -- Piotr Ożarowski Sun, 08 May 2011 16:45:44 +0200 python-netaddr (0.7.5-1) unstable; urgency=low * New upstream release. + Fix an inability to load from PowerDNS coprocess. Closes: #614335. * Update Homepage link in debian/control. * Bump Standards-Version. * Switch to dh_python2. -- Vincent Bernat Mon, 21 Feb 2011 08:55:55 +0100 python-netaddr (0.7.4-1) unstable; urgency=low [ Vincent Bernat ] * New upstream release * Provide a doc-base file * Add a manual page for netaddr and add a Suggests for ipython to debian/control [ Piotr Ożarowski ] * CDBS uses site-packages even for python2.6, adjust runtests.py accordingly -- Vincent Bernat Thu, 31 Dec 2009 12:29:06 +0100 python-netaddr (0.7.3-1) unstable; urgency=low * New upstream release * Bump Standards-Version. -- Vincent Bernat Sat, 17 Oct 2009 13:16:12 +0200 python-netaddr (0.6.2-1) unstable; urgency=low * New upstream release -- Vincent Bernat Thu, 11 Jun 2009 21:29:34 +0200 python-netaddr (0.6-2) unstable; urgency=low * Run unittests before calling python-support. Closes: #517064. * Bump Standards-Version. No changes required. -- Vincent Bernat Sat, 21 Mar 2009 09:27:48 +0100 python-netaddr (0.6-1) unstable; urgency=low [ Vincent Bernat ] * New upstream release [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn -- Vincent Bernat Thu, 22 Jan 2009 21:58:05 +0100 python-netaddr (0.5.2-1) unstable; urgency=low * New upstream release -- Vincent Bernat Mon, 27 Oct 2008 18:21:55 +0100 python-netaddr (0.4-1) unstable; urgency=low * Initial release (Closes: #496819) -- Vincent Bernat Thu, 28 Aug 2008 09:29:38 +0200 debian/python3-netaddr.install0000664000000000000000000000002111771357323013605 0ustar usr/lib/python3* debian/compat0000664000000000000000000000000211771356205010375 0ustar 8