[Python-modules-commits] [pysmi] 03/05: add initial Debian packaging

Vincent Bernat bernat at moszumanska.debian.org
Sat Dec 30 15:51:39 UTC 2017


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

bernat pushed a commit to annotated tag debian/0.2.2-1
in repository pysmi.

commit 212faf288e1d717ad83d7c6e3b95cfe4cd158efe
Author: Vincent Bernat <vincent at bernat.im>
Date:   Sat Dec 30 16:25:11 2017 +0100

    add initial Debian packaging
---
 debian/.git-dpm               |  8 -------
 debian/changelog              |  6 +++++
 debian/compat                 |  1 +
 debian/control                | 51 +++++++++++++++++++++++++++++++++++++++++++
 debian/copyright              | 35 +++++++++++++++++++++++++++++
 debian/gbp.conf               |  2 ++
 debian/python3-pysmi.docs     |  1 +
 debian/python3-pysmi.examples |  1 +
 debian/rules                  | 15 +++++++++++++
 debian/source/options         |  1 +
 debian/watch                  |  4 ++++
 11 files changed, 117 insertions(+), 8 deletions(-)

diff --git a/debian/.git-dpm b/debian/.git-dpm
deleted file mode 100644
index d1c34d4..0000000
--- a/debian/.git-dpm
+++ /dev/null
@@ -1,8 +0,0 @@
-# see git-dpm(1) from git-dpm package
-8896a54aa6e9af6b0b78efd6de1cd46da8cb6e32
-8896a54aa6e9af6b0b78efd6de1cd46da8cb6e32
-8896a54aa6e9af6b0b78efd6de1cd46da8cb6e32
-8896a54aa6e9af6b0b78efd6de1cd46da8cb6e32
-pysmi_0.2.2.orig.tar.gz
-2ef4710956e5f2ab6ba23555501055639c544193
-90568
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d2431ca
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+pysmi (0.2.2-1) unstable; urgency=low
+
+  * Initial release (closes: #885863)
+
+ -- Vincent Bernat <bernat at debian.org>  Sat, 30 Dec 2017 15:25:10 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..69adcac
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,51 @@
+Source: pysmi
+Section: python
+Priority: optional
+Maintainer: Vincent Bernat <bernat at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 10), dh-python,
+               python-all, python3-all,
+               python-ply, python3-ply,
+               python-setuptools, python3-setuptools,
+               python-pysnmp4, python3-pysnmp4,
+               python3-sphinx,
+Standards-Version: 4.1.2
+Homepage: https://github.com/etingof/pysmi
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pysmi.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/pysmi.git
+Testsuite: autopkgtest-pkg-python
+
+Package: python-pysmi
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: SNMP SMI/MIB Parser (Python 2.X)
+ PySMI is a pure-Python implementation of SNMP SMI MIB parser. This
+ tool is designed to turn ASN.1 MIBs into various formats. As of this
+ moment, JSON and pysnmp modules can be generated from ASN.1 MIBs.
+ .
+ This package contains the Python 2.x module.
+
+Package: python3-pysmi
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: SNMP SMI/MIB Parser
+ PySMI is a pure-Python implementation of SNMP SMI MIB parser. This
+ tool is designed to turn ASN.1 MIBs into various formats. As of this
+ moment, JSON and pysnmp modules can be generated from ASN.1 MIBs.
+ .
+ This package contains the Python 3.x module.
+
+Package: python-pysmi-doc
+Section: doc
+Architecture: all
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Description: SNMP SMI/MIB Parser (documentation)
+ PySMI is a pure-Python implementation of SNMP SMI MIB parser. This
+ tool is designed to turn ASN.1 MIBs into various formats. As of this
+ moment, JSON and pysnmp modules can be generated from ASN.1 MIBs.
+ .
+ This package contains the documentation
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f533f68
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pysmi
+Upstream-Contact: Ilya Etingof <etingof at gmail.com> <etingof at gmail.com>
+Source: https://github.com/etingof/pysmi
+
+Files: *
+Copyright: (c) 2015-2017 Ilya Etingof <etingof at gmail.com>
+License: BSD-2-clause
+
+Files: debian/*
+Copyright: 2017 © Vincent Bernat <bernat at debian.org>
+License: BSD-2-clause
+
+License: BSD-2-clause
+ 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.
+ .
+ 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 HOLDER 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.
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/python3-pysmi.docs b/debian/python3-pysmi.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/python3-pysmi.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/python3-pysmi.examples b/debian/python3-pysmi.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/python3-pysmi.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..730d699
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=pysmi
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_installdocs:
+	dh_installdocs
+	PYTHONPATH=. sphinx-build -N -q -E -b html docs/source/ \
+		debian/python-pysmi-doc/usr/share/doc/python-pysmi-doc/html/
+
+override_dh_install:
+	dh_install
+	rm -rf debian/python-pysmi/usr/bin
+	mv debian/python3-pysmi/usr/bin/mibdump.py debian/python3-pysmi/usr/bin/mibdump
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..4dda525
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/pysmi/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/pysmi/pysmi-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

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



More information about the Python-modules-commits mailing list