[Python-modules-commits] [python-patch] 02/03: initial packaging

Paolo Greppi paolog-guest at moszumanska.debian.org
Wed May 24 08:01:15 UTC 2017


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

paolog-guest pushed a commit to branch master
in repository python-patch.

commit 25e1b5e44158698ffd4690d64a38b5e22a305f99
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Tue May 23 17:53:00 2017 +0200

    initial packaging
---
 debian/.git-dpm                                 | 11 +++++
 debian/changelog                                |  5 ++
 debian/compat                                   |  1 +
 debian/control                                  | 36 +++++++++++++++
 debian/copyright                                | 61 +++++++++++++++++++++++++
 debian/patches/0001-add-the-setup.py-file.patch | 35 ++++++++++++++
 debian/patches/series                           |  1 +
 debian/rules                                    | 15 ++++++
 debian/source/format                            |  1 +
 debian/source/options                           |  1 +
 debian/watch                                    |  4 ++
 11 files changed, 171 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
new file mode 100644
index 0000000..698000f
--- /dev/null
+++ b/debian/.git-dpm
@@ -0,0 +1,11 @@
+# see git-dpm(1) from git-dpm package
+5f8bb5fe0bc27821d20dc9821be21c6089df6a65
+5f8bb5fe0bc27821d20dc9821be21c6089df6a65
+c7ed1e26d7dd02d725bdea622948f8e4a601df29
+c7ed1e26d7dd02d725bdea622948f8e4a601df29
+python-patch_1.16.orig.tar.gz
+083d93169c712c94e6efc5faa09fe3285bd93bb3
+160286
+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..a0800c7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-patch (1.16-1) unstable; urgency=medium
+
+  * Initial release (Closes: #845482)
+
+ -- Paolo Greppi <paolo.greppi at libpf.com>  Tue, 23 May 2017 16:26:31 +0200
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..8833b30
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: python-patch
+Section: python
+Priority: optional
+Maintainer: Paolo Greppi <paolo.greppi at libpf.com>
+Build-Depends:
+ debhelper (>= 10)
+ , dh-python
+ , python3-all
+ , python3-setuptools
+ , python-all
+ , python-setuptools
+Standards-Version: 3.9.8
+Homepage: https://github.com/techtonik/python-patch
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.3
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-patch.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-patch.git
+Testsuite: autopkgtest-pkg-python
+
+Package: python-patch
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: patch utility to apply unified diffs (Python 2)
+ Provides a command line tool and a library to parse and apply
+ unified diffs in SVN, HG, GIT formats.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-patch
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: patch utility to apply unified diffs (Python 3)
+ Provides a command line tool and a library to parse and apply
+ unified diffs in SVN, HG, GIT formats.
+ .
+ This package installs the library for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8e38fb7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,61 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: python-patch
+Upstream-Contact: https://github.com/techtonik/python-patch/issues
+Source: https://github.com/techtonik/python-patch/
+
+Files: other/pack.py
+Copyright: n/a
+License: public-domain
+
+Files: *
+Copyright: 2008-2016 anatoly techtonik
+License: Expat
+
+Files: debian/*
+Copyright: 2016-2017 Paolo Greppi <paolo.greppi at libpf.com>
+License: GPL-3.0+
+
+License: Expat
+ 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.
+
+License: public-domain
+ The files tagged with this license contains the following paragraphs:
+ .
+ Public domain work by:
+   anatoly techtonik <techtonik at gmail.com>
+
+License: GPL-3.0+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
diff --git a/debian/patches/0001-add-the-setup.py-file.patch b/debian/patches/0001-add-the-setup.py-file.patch
new file mode 100644
index 0000000..efcf56e
--- /dev/null
+++ b/debian/patches/0001-add-the-setup.py-file.patch
@@ -0,0 +1,35 @@
+From 5f8bb5fe0bc27821d20dc9821be21c6089df6a65 Mon Sep 17 00:00:00 2001
+From: Paolo Greppi <paolo.greppi at libpf.com>
+Date: Tue, 29 Nov 2016 07:02:27 +0000
+Subject: add the setup.py file
+
+---
+ setup.py | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+ create mode 100644 setup.py
+
+diff --git a/setup.py b/setup.py
+new file mode 100644
+index 0000000..0307afd
+--- /dev/null
++++ b/setup.py
+@@ -0,0 +1,19 @@
++from setuptools import setup
++
++setup(
++    name='patch',
++    version='1.16',
++    author='anatoly techtonik <techtonik at gmail.com>',
++    url='https://github.com/techtonik/python-patch/',
++
++    description='Patch utility to apply unified diffs',
++    license='MIT',
++
++    py_modules=['patch'],
++    test_suite='tests',
++
++    classifiers=[
++        'Classifier: Programming Language :: Python :: 2',
++        'Classifier: Programming Language :: Python :: 3',
++    ],
++)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1e93866
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-add-the-setup.py-file.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6b0ff47
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#! /usr/bin/make -f
+
+export DH_VERBOSE = 1
+export PYBUILD_NAME = patch
+
+PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/{package}
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+	# make tests a module proper
+	mv tests/run_tests.py tests/__init__.py
+	dh_auto_test
+	mv tests/__init__.py tests/run_tests.py
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/source/options b/debian/source/options
new file mode 100644
index 0000000..cb61fa5
--- /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..6be3a15
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/python-patch-$1\.tar\.gz/ \
+  https://github.com/techtonik/python-patch/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the Python-modules-commits mailing list