[Python-modules-commits] [python-graphviz] 04/06: Initial packaging (Closes: #849050)

Diane Trout diane at moszumanska.debian.org
Fri Jan 6 01:15:51 UTC 2017


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

diane pushed a commit to branch master
in repository python-graphviz.

commit 276a6df56d55dcb8aba5e4b2c9b66360174c2d65
Author: Diane Trout <diane at ghic.org>
Date:   Thu Jan 5 16:43:41 2017 -0800

    Initial packaging (Closes: #849050)
---
 debian/.git-dpm       |  3 +++
 debian/changelog      |  7 +++++++
 debian/compat         |  1 +
 debian/control        | 36 ++++++++++++++++++++++++++++++++++++
 debian/copyright      | 32 ++++++++++++++++++++++++++++++++
 debian/files          |  1 +
 debian/rules          | 11 +++++++++++
 debian/source/options |  1 +
 debian/tests/control  |  3 +++
 debian/watch          |  3 +++
 10 files changed, 98 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index 9ea6175..6670181 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@ dc33b7c91a62592c0560a0181aaddebadc3b043e
 python-graphviz_0.5.2.orig.tar.gz
 224e749ba77cef7efca86c1dc1866400b443f934
 56789
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fc48db5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+python-graphviz (0.5.2-1) unstable; urgency=low
+
+  * Initial packaging (Closes: #849050) 
+  * Note: Upstream name on pypi is graphviz, but that would conflict with the
+    C graphviz source package name
+
+ -- Diane Trout <diane at ghic.org>  Wed, 21 Dec 2016 13:55:52 -0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..044e5cc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: python-graphviz
+Maintainer: Diane Trout <diane at ghic.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               graphviz,
+               python3-all,
+               python3-coverage,
+               python3-flake8,
+               python3-pep8-naming,
+               python3-pytest,
+               python3-setuptools,
+               python3-unittest2
+Standards-Version: 3.9.8
+Homepage: http://github.com/xflr6/graphviz
+Testsuite: autopkgtest-pkg-python
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.3
+
+Package: python3-graphviz
+Architecture: all
+Depends: graphviz, ${misc:Depends}, ${python3:Depends}
+Description: Simple Python 3 interface for Graphviz
+ This package facilitates the creation and rendering of graph descriptions in
+ the DOT language of the Graphviz graph drawing software from Python.
+ .
+ Create a graph object, assemble the graph by adding nodes and edges, and
+ retrieve its DOT source code string. Save the source code to a file and render
+ it with the Graphviz installation of your system.
+ .
+ Use the ``view`` option/method to directly inspect the resulting (PDF, PNG,
+ SVG, etc.) file with its default application. Graphs can also be rendered
+ and displayed within Jupyter notebooks.
+ .
+ This contains the Python 3 version.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d096e74
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: graphviz
+Source: https://github.com/xflr6/graphviz
+
+Files: *
+Copyright:  Copyright (c) 2013-2016 Sebastian Bank
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Diane Trout <diane at ghic.org>
+License: Expat
+
+License: Expat
+ The MIT License (MIT)
+ .
+ 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.
diff --git a/debian/files b/debian/files
new file mode 100644
index 0000000..3ca287b
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
+python-graphviz_0.5.2-1_source.buildinfo python optional
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0e9f8bd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=graphviz
+export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/test-output'
+
+%:
+	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_clean:
+	rm -rf .cache
+	dh_auto_clean
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..4a49035
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore=(^[^/]+\.egg-info/)|(^test-output/)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a50975b
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import graphviz; print(graphviz)" ; done
+Depends: @
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e3a52b9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=repack,compression=gzip,uversionmangle=s/graphviz/python-graphviz/ \
+http://pypi.debian.net/graphviz/graphviz-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
\ No newline at end of file

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



More information about the Python-modules-commits mailing list