[Python-modules-commits] [python-patch] 02/07: WIP initial release

Paolo Greppi paolog-guest at moszumanska.debian.org
Tue Nov 29 07:11:04 UTC 2016


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 56c3d4f774e9b6db6848fcd0131cf0c5c88234e1
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed Nov 23 22:25:53 2016 +0100

    WIP initial release
    
    TODOs:
    - the clean target does not work
---
 debian/changelog                |  6 +++++
 debian/compat                   |  1 +
 debian/control                  | 31 +++++++++++++++++++++++++
 debian/copyright                | 51 +++++++++++++++++++++++++++++++++++++++++
 debian/patches/00-setup_py.diff | 23 +++++++++++++++++++
 debian/patches/series           |  1 +
 debian/rules                    | 13 +++++++++++
 debian/source/format            |  1 +
 debian/source/options           |  1 +
 debian/watch                    |  4 ++++
 10 files changed, 132 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..be5bd5b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+python-patch (1.16-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #845482)
+  * Add setup.py from https://pypi.python.org/pypi/patch.
+
+ -- Paolo Greppi <paolo.greppi at libpf.com>  Wed, 23 Nov 2016 22:10:45 +0000
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..e2018e7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: python-patch
+Section: python
+Priority: optional
+Maintainer: Paolo Greppi <paolo.greppi at libpf.com>
+Build-Depends: debhelper (>= 10), dh-python, python-all, python-setuptools, python3-all, python3-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://gitlab.com/simevo/debian-patch
+Vcs-Browser: https://gitlab.com/simevo/debian-patch
+#Testsuite: autopkgtest-pkg-python
+
+Package: python-patch
+Section: python
+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..f606dfc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,51 @@
+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: *
+Copyright: 2008-2016 anatoly techtonik
+License: Expat
+
+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.
+
+Files: debian/*
+Copyright: 2016 Paolo Greppi <paolo.greppi at libpf.com>
+License: GPL-3.0+
+
+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/00-setup_py.diff b/debian/patches/00-setup_py.diff
new file mode 100644
index 0000000..71e4e31
--- /dev/null
+++ b/debian/patches/00-setup_py.diff
@@ -0,0 +1,23 @@
+Index: python-patch/setup.py
+===================================================================
+--- /dev/null
++++ python-patch/setup.py
+@@ -0,0 +1,18 @@
++from distutils.core 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'],
++
++    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..ebb4b81
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-setup_py.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4b513ea
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#! /usr/bin/make -f
+
+export DH_VERBOSE = 1
+export PYBUILD_NAME = patch
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_install:
+	PYBUILD_SYSTEM=custom PYBUILD_INSTALL_ARGS="{interpreter} setup.py install --root={destdir} --install-scripts=/usr/share/{package}" dh_auto_install
+
+override_dh_auto_test:
+	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