summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 17:45:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 17:45:10 +0000
commit8ffdcdb6f6cd595c9efedd0d02e351e88c19147b (patch)
treee12756d71ec73654e58151fd2872cfc50456d5e0 /debian
parentAdding upstream version 0.10.1. (diff)
downloadpython-netaddr-8ffdcdb6f6cd595c9efedd0d02e351e88c19147b.tar.xz
python-netaddr-8ffdcdb6f6cd595c9efedd0d02e351e88c19147b.zip
Adding debian version 0.10.1-1.debian/0.10.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog310
-rw-r--r--debian/control46
-rw-r--r--debian/copyright36
-rw-r--r--debian/gbp.conf2
-rw-r--r--debian/netaddr.136
-rw-r--r--debian/patches/fix-pytest.ini.patch10
-rw-r--r--debian/patches/series1
-rw-r--r--debian/python-netaddr-docs.doc-base10
-rw-r--r--debian/python-netaddr-docs.lintian-overrides1
-rw-r--r--debian/python3-netaddr.lintian-overrides2
-rw-r--r--debian/python3-netaddr.manpages1
-rwxr-xr-xdebian/rules29
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control5
-rw-r--r--debian/tests/unittests8
-rw-r--r--debian/upstream/metadata5
-rw-r--r--debian/watch3
17 files changed, 506 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..ba24823
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,310 @@
+python-netaddr (0.10.1-1) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Update lintian override info format in
+ d/python-netaddr-docs.lintian-overrides on line 1.
+ * Bump debhelper from deprecated 9 to 13.
+ * Update renamed lintian tag names in lintian overrides.
+ * Set upstream metadata fields: Bug-Database, Bug-Submit, Name,
+ Repository-Browse.
+ * Remove constraints unnecessary since buster (oldstable):
+ + Build-Depends: Drop versioned constraint on python3-all.
+
+ [ Thomas Goirand ]
+ * Switch debian/watch to mode=git, using github URL.
+ * Add myself as uploader.
+ * New upstream release.
+ * Drop Conflicts+Replaces python-netaddr, as Py2 was removed 2 releases ago.
+ * d/rules: fixed the way to run tests (Closes: #1042169).
+ * Add fix-pytest.ini.patch to fix coverage.
+ * Add autopkgtest.
+
+ -- Thomas Goirand <zigo@debian.org> Mon, 26 Feb 2024 09:30:20 +0100
+
+python-netaddr (0.8.0-2) unstable; urgency=medium
+
+ * Team upload.
+ * Upload to unstable.
+ * Ran wrap-and-sort -bastk.
+
+ -- Thomas Goirand <zigo@debian.org> Mon, 16 Aug 2021 13:20:18 +0200
+
+python-netaddr (0.8.0-1) experimental; urgency=medium
+
+ * Team upload.
+ * New upstream release. (Closes: #986021)
+ * Removed patches applied upstream:
+ - 2ab73f10be7069c9412e853d2d0caf29bd624012.patch
+ - PR200.patch
+
+ -- Thomas Goirand <zigo@debian.org> Sun, 28 Mar 2021 00:27:25 +0100
+
+python-netaddr (0.7.19-5) unstable; urgency=medium
+
+ [ Ondřej Nový ]
+ * d/control: Update Vcs-* fields with new Debian Python Team Salsa
+ layout.
+
+ [ Sandro Tosi ]
+ * Use the new Debian Python Team contact name and address
+
+ [ Vincent Bernat ]
+ * d/rules: do not build documentation (Closes: #984939)
+
+ -- Vincent Bernat <bernat@debian.org> Wed, 10 Mar 2021 19:35:08 +0100
+
+python-netaddr (0.7.19-4) unstable; urgency=medium
+
+ * Drop python2 support; Closes: #937942
+ * debian/patches/PR200.patch
+ - address SyntaxWarning revealed by python3.8; Closes: #950787
+
+ -- Sandro Tosi <morph@debian.org> Fri, 13 Mar 2020 13:40:36 -0400
+
+python-netaddr (0.7.19-3) unstable; urgency=medium
+
+ * d/control: build-depends on python-all. Closes: #950362.
+
+ -- Vincent Bernat <bernat@debian.org> Fri, 31 Jan 2020 23:42:29 +0100
+
+python-netaddr (0.7.19-2) unstable; urgency=medium
+
+ [ Ondřej Nový ]
+ * d/control: Set Vcs-* to salsa.debian.org
+ * Use 'python3 -m sphinx' instead of sphinx-build for building docs
+ * Use debhelper-compat instead of debian/compat.
+
+ [ Vincent Bernat ]
+ * d/control: BD on dh-python. Closes: #950071.
+ * d/patches: add patch to fix tests with Python 3.8.
+
+ -- Vincent Bernat <bernat@debian.org> Wed, 29 Jan 2020 15:37:58 +0100
+
+python-netaddr (0.7.19-1) unstable; urgency=medium
+
+ * New upstream version.
+ * d/control: bump Standards-Version.
+ * d/control: build-depends on python3-sphinx.
+ * d/rules: use /var/lib/ieee-data as target for OUI/IAB symlinks.
+ Closes: #879615.
+
+ -- Vincent Bernat <bernat@debian.org> Mon, 23 Oct 2017 16:05:15 +0200
+
+python-netaddr (0.7.18-2) unstable; urgency=medium
+
+ [ Ondřej Nový ]
+ * Fixed VCS URL (https)
+
+ [ Vincent Bernat ]
+ * Bump Standards-Version to 3.9.8.
+ * Replace manual use of localedef by localehelper package. Should also
+ closes: #814696.
+
+ -- Vincent Bernat <bernat@debian.org> Sat, 10 Sep 2016 14:07:34 +0200
+
+python-netaddr (0.7.18-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Vincent Bernat <bernat@debian.org> Mon, 14 Sep 2015 22:55:00 +0200
+
+python-netaddr (0.7.17-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release.
+ * d/control:
+ - Build-Depend on python3-all to pick up Python 3.5.
+ - Build-Depend on locales so that utf-8 locale can be created for the
+ test suite.
+ * d/rules:
+ - Invoke py.test directly instead of through the runtests.py script,
+ since the latter embeds an old and Python 3.5 incompatible version
+ of py.test.
+ - Ensure UTF-8 locale.
+ * d/watch: Use pypi.debian.net redirector.
+ * wrap-and-sort.
+
+ -- Barry Warsaw <barry@debian.org> Thu, 03 Sep 2015 17:17:06 -0400
+
+python-netaddr (0.7.15-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Silent Lintian about *.idx files. Not available in ieee-data package.
+
+ -- Vincent Bernat <bernat@debian.org> Mon, 10 Aug 2015 11:30:13 +0200
+
+python-netaddr (0.7.14-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Bump Standards-Version to 3.9.6.
+ * Convert to dh/pybuild.
+ * Update debian/watch.
+
+ -- Vincent Bernat <bernat@debian.org> Fri, 29 May 2015 09:08:34 +0200
+
+python-netaddr (0.7.12-2) unstable; urgency=medium
+
+ * Fix location of IEEE data files (again!). Closes: #765123.
+
+ -- Vincent Bernat <bernat@debian.org> Mon, 13 Oct 2014 21:01:31 +0200
+
+python-netaddr (0.7.12-1) unstable; urgency=medium
+
+ * New upstream release
+ * Fix debian/watch.
+ * Fix location of IEEE data files. Closes: #756520.
+
+ -- Vincent Bernat <bernat@debian.org> Thu, 31 Jul 2014 08:57:57 +0200
+
+python-netaddr (0.7.10-5) unstable; urgency=medium
+
+ * Fix FTBFS due to deprecation of /usr/share/pyshared directory.
+ Closes: #750311.
+
+ -- Vincent Bernat <bernat@debian.org> Fri, 06 Jun 2014 22:42:15 +0200
+
+python-netaddr (0.7.10-4) unstable; urgency=low
+
+ * Ensure that we get the right she-bang for /usr/bin/netaddr.
+ Closes: #739840.
+
+ -- Vincent Bernat <bernat@debian.org> Wed, 26 Feb 2014 20:44:56 +0100
+
+python-netaddr (0.7.10-3) unstable; urgency=low
+
+ * Fix typo in dependency to ieee-data. Closes: #739765.
+
+ -- Vincent Bernat <bernat@debian.org> Sat, 22 Feb 2014 13:05:42 +0100
+
+python-netaddr (0.7.10-2) unstable; urgency=low
+
+ * Depends on ieee-data instead of shipping oui.txt and iab.txt.
+ Closes: #739197. Closes: #739198.
+ * Bump Standards-Version to 3.9.5.
+
+ -- Vincent Bernat <bernat@debian.org> Fri, 21 Feb 2014 00:01:42 +0100
+
+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 <bernat@debian.org> 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 <bernat@debian.org> 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 <bernat@debian.org> Sat, 12 May 2012 11:09:42 +0200
+
+python-netaddr (0.7.6-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Vincent Bernat <bernat@debian.org> 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 <bernat@debian.org> 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 <bernat@debian.org> 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 <piotr@debian.org> 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 <bernat@debian.org> 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 <bernat@debian.org> 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 <bernat@debian.org> Sat, 17 Oct 2009 13:16:12 +0200
+
+python-netaddr (0.6.2-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Vincent Bernat <bernat@debian.org> 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 <bernat@debian.org> 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 <bernat@debian.org> Thu, 22 Jan 2009 21:58:05 +0100
+
+python-netaddr (0.5.2-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Vincent Bernat <bernat@debian.org> Mon, 27 Oct 2008 18:21:55 +0100
+
+python-netaddr (0.4-1) unstable; urgency=low
+
+ * Initial release (Closes: #496819)
+
+ -- Vincent Bernat <bernat@debian.org> Thu, 28 Aug 2008 09:29:38 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8a21f7a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: python-netaddr
+Section: python
+Priority: optional
+Maintainer: Debian Python Team <team+python@tracker.debian.org>,
+Uploaders:
+ Thomas Goirand <zigo@debian.org>,
+ Vincent Bernat <bernat@debian.org>,
+Standards-Version: 4.1.1
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-python,
+ ieee-data,
+ localehelper,
+ python3-all,
+ python3-pytest,
+ python3-setuptools,
+Homepage: https://github.com/drkjam/netaddr/
+Vcs-Git: https://salsa.debian.org/python-team/packages/python-netaddr.git
+Vcs-Browser: https://salsa.debian.org/python-team/packages/python-netaddr
+
+Package: python3-netaddr
+Architecture: all
+Depends:
+ ieee-data,
+ ${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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..41d2c38
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,36 @@
+It was originally downloaded from https://github.com/drkjam/netaddr
+
+Files: *
+Copyright: © 2008 David P. D. Moss <drkjam@gmail.com>
+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 <ORGANIZATION> 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 <bernat@debian.org>
+License: BSD
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..3879982
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+debian-branch=debian/master
diff --git a/debian/netaddr.1 b/debian/netaddr.1
new file mode 100644
index 0000000..6feda2b
--- /dev/null
+++ b/debian/netaddr.1
@@ -0,0 +1,36 @@
+.\" 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 <n> 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 <bernat@debian.org>,
+for the Debian project (but may be used by others).
diff --git a/debian/patches/fix-pytest.ini.patch b/debian/patches/fix-pytest.ini.patch
new file mode 100644
index 0000000..ce679d5
--- /dev/null
+++ b/debian/patches/fix-pytest.ini.patch
@@ -0,0 +1,10 @@
+Description: Fix pytest.ini
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: not-needed
+Last-Update: 2024-02-26
+
+--- a/pytest.ini 2024-02-26 09:30:02.988708182 +0100
++++ b/pytest.ini 2024-02-26 09:38:43.060635287 +0100
+@@ -1,2 +1 @@
+ [pytest]
+-addopts = --cov-report term --cov-report html --cov-report xml --cov-report term-missing --cov=netaddr --cov-branch --doctest-modules --doctest-glob="*.rst"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4e5575a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-pytest.ini.patch
diff --git a/debian/python-netaddr-docs.doc-base b/debian/python-netaddr-docs.doc-base
new file mode 100644
index 0000000..6df5821
--- /dev/null
+++ b/debian/python-netaddr-docs.doc-base
@@ -0,0 +1,10 @@
+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
diff --git a/debian/python-netaddr-docs.lintian-overrides b/debian/python-netaddr-docs.lintian-overrides
new file mode 100644
index 0000000..62417af
--- /dev/null
+++ b/debian/python-netaddr-docs.lintian-overrides
@@ -0,0 +1 @@
+python-netaddr-docs binary: extra-license-file [usr/share/doc/python-netaddr-docs/api/_sources/license.rst.txt]
diff --git a/debian/python3-netaddr.lintian-overrides b/debian/python3-netaddr.lintian-overrides
new file mode 100644
index 0000000..50e2068
--- /dev/null
+++ b/debian/python3-netaddr.lintian-overrides
@@ -0,0 +1,2 @@
+python3-netaddr: package-installs-ieee-data usr/lib/python3/dist-packages/netaddr/eui/iab.idx
+python3-netaddr: package-installs-ieee-data usr/lib/python3/dist-packages/netaddr/eui/oui.idx
diff --git a/debian/python3-netaddr.manpages b/debian/python3-netaddr.manpages
new file mode 100644
index 0000000..6faa327
--- /dev/null
+++ b/debian/python3-netaddr.manpages
@@ -0,0 +1 @@
+debian/netaddr.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..cbf6dc7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+
+export PYBUILD_NAME=netaddr
+export LC_ALL=C.UTF-8
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+# Replace EUI files with the appropriate symlinks
+override_dh_link: dh_link/python3-netaddr
+ dh_link
+python_module_path=usr/lib/python*/dist-packages
+dh_link/python3-netaddr:
+ rm debian/$(@:dh_link/%=%)/$(python_module_path)/netaddr/eui/iab.*
+ rm debian/$(@:dh_link/%=%)/$(python_module_path)/netaddr/eui/oui.*
+ ln -s /var/lib/ieee-data/oui.txt debian/$(@:dh_link/%=%)/$(python_module_path)/netaddr/eui/
+ ln -s /var/lib/ieee-data/iab.txt debian/$(@:dh_link/%=%)/$(python_module_path)/netaddr/eui/
+ PYTHONPATH=$(CURDIR) python3 \
+ debian/$(@:dh_link/%=%)/$(python_module_path)/netaddr/eui/ieee.py
+
+override_dh_python3:
+ dh_python3 --shebang=/usr/bin/python3
+
+# Tests
+override_dh_auto_test:
+ localehelper LANG=en_US.UTF-8 dh_auto_test -- \
+ --system=custom \
+ --test-args='{interpreter} -m pytest netaddr/tests -v'
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a215d63
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: unittests
+Depends:
+ @,
+ @builddeps@,
+Restrictions: allow-stderr needs-root
diff --git a/debian/tests/unittests b/debian/tests/unittests
new file mode 100644
index 0000000..3578e0a
--- /dev/null
+++ b/debian/tests/unittests
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+PYTHON3S=$(py3versions -vr 2>/dev/null)
+for i in ${PYTHON3S} ; do
+ python$i -m pytest -v netaddr/tests
+done
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..5101f2e
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Name: netaddr
+Bug-Database: https://github.com/netaddr/netaddr/issues
+Bug-Submit: https://github.com/netaddr/netaddr/issues/new
+Repository-Browse: https://github.com/netaddr/netaddr
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..bf38d57
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts="mode=git,uversionmangle=s/(rc|a|b|c)/~$1/" \
+https://github.com/netaddr/netaddr.git refs/tags/(\d[brc\d\.]+)