diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-03-19 14:00:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-03-19 14:00:32 +0000 |
commit | e5cbe6d7fe39e950fb61272365ce88f9a3ca7953 (patch) | |
tree | bbe28d40cfc9dd88707539a4aad25ecaf9470b4b | |
parent | Adding upstream version 0.13.1. (diff) | |
download | gitlint-e5cbe6d7fe39e950fb61272365ce88f9a3ca7953.tar.xz gitlint-e5cbe6d7fe39e950fb61272365ce88f9a3ca7953.zip |
Adding debian version 0.13.1-0.1.debian/0.13.1-0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | debian/changelog | 34 | ||||
-rw-r--r-- | debian/control | 30 | ||||
-rw-r--r-- | debian/copyright | 29 | ||||
-rw-r--r-- | debian/patches/0001-replace-readfp-with-Python2-read_file-function-to-fi.patch | 40 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 16 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
8 files changed, 154 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..cddea91 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,34 @@ +gitlint (0.13.1-0.1) unstable; urgency=medium + + * QA upload. + * New upstream release (Closes: #951996) + * Update std-version to 4.5.0, no changes required + + -- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 18 Mar 2020 10:38:21 +0100 + +gitlint (0.12.0-0.1) unstable; urgency=medium + + * QA upload. + * New upstream release (Closes: #896070) + * Compat level is now 12 + * Update std-version to 4.4.0, no changes required + * Switch to pylint + * Do not install qa directory, not in gitlint namespace + * Patch to replace readfp with read_file, since this package is Python3 + * Force arrow runtime dependency, to avoid a pybuild failure in picking + up the requirements.txt file + * Drop all patches, upstream + + -- Gianfranco Costamagna <locutusofborg@debian.org> Thu, 26 Sep 2019 10:30:12 +0200 + +gitlint (0.9.0-2) unstable; urgency=medium + + * Add missing dependency python3-sh (Closes: #887789) + + -- Patrik Hagedorn <patrik.hagedorn@gmx.net> Sun, 18 Feb 2018 22:48:41 +0100 + +gitlint (0.9.0-1) unstable; urgency=medium + + * Initial packaging (Closes: #886864) + + -- Patrik Hagedorn <patrik.hagedorn@gmx.net> Mon, 15 Jan 2018 12:37:13 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6b3a219 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: gitlint +Section: utils +Priority: optional +Maintainer: Patrik Hagedorn <patrik.hagedorn@gmx.net> +Build-Depends: debhelper-compat (= 12), + dh-python, + git, + pylint, + python3-all, + python3-arrow, + python3-click, + python3-coverage, + python3-setuptools, + python3-sh +Standards-Version: 4.5.0 +Homepage: https://jorisroovers.github.io/gitlint/ + +Package: gitlint +Architecture: all +Depends: git, + ${misc:Depends}, + ${python3:Depends}, + python3-sh, + python3-arrow, +Description: Git commit message linter written in Python + Git commit message linter written in Python, checks your + commit messages for style. + . + Great for use as a commit-msg Git hook or as part of your + gating script in a CI pipeline (e.g. Jenkins). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1e83989 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/jorisroovers/gitlint + +Files: * +Copyright: 2015 Joris Roovers <jroovers@cisco.com> +License: Expat + +Files: debian/* +Copyright: 2017 Patrik Hagedorn <patrik.hagedorn@gmx.net> +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. diff --git a/debian/patches/0001-replace-readfp-with-Python2-read_file-function-to-fi.patch b/debian/patches/0001-replace-readfp-with-Python2-read_file-function-to-fi.patch new file mode 100644 index 0000000..dde4da9 --- /dev/null +++ b/debian/patches/0001-replace-readfp-with-Python2-read_file-function-to-fi.patch @@ -0,0 +1,40 @@ +Forwarded: https://github.com/jorisroovers/gitlint/pull/104 +From 84145c703a25acad5f2378535c642c5abc299fbe Mon Sep 17 00:00:00 2001 +From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> +Date: Thu, 26 Sep 2019 10:48:14 +0200 +Subject: [PATCH] replace readfp with Python2 read_file function, to fix a test + failure: + +====================================================================== +FAIL: test_config_file (test_cli.CLITests) +Test for --config option +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/usr/lib/python3.7/unittest/mock.py", line 1248, in patched + return func(*args, **keywargs) + File "/<<PKGBUILDDIR>>/gitlint/tests/test_cli.py", line 372, in test_config_file + self.assertEqual(result.output, "") +AssertionError: "/<<PKGBUILDDIR>>/git[197 chars]od\n" != '' +- /<<PKGBUILDDIR>>/gitlint/config.py:366: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead. +- parser.readfp(config_file, filename) # pylint: disable=deprecated-method +--- + gitlint/config.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/gitlint/config.py b/gitlint/config.py +index fdc5e85..654523d 100644 +--- a/gitlint/config.py ++++ b/gitlint/config.py +@@ -428,8 +428,7 @@ class LintConfigBuilder(object): + parser = ConfigParser() + + with io.open(filename, encoding=DEFAULT_ENCODING) as config_file: +- # readfp() is deprecated in python 3.2+, but compatible with 2.7 +- parser.readfp(config_file, filename) # pylint: disable=deprecated-method ++ parser.read_file(config_file) + + for section_name in parser.sections(): + for option_name, option_value in parser.items(section_name): +-- +2.17.1 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..3fede26 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-replace-readfp-with-Python2-read_file-function-to-fi.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a26ed64 --- /dev/null +++ b/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +export LC_ALL=C.UTF-8 +export PYBUILD_TEST_ARGS=python{version} -m coverage run --omit='/usr/*,$(CURDIR)/gitlint/tests/*,$(CURDIR)/gitlint/qa/*' -m unittest discover -v -s $(CURDIR)/gitlint/tests + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_test: + PYBUILD_SYSTEM=custom dh_auto_test + +override_dh_install: + dh_install + # we don't want them in the package? + rm -rf debian/gitlint/usr/lib/python*/dist-packages/qa + find debian/gitlint/usr/lib -name commit-msg -exec chmod +x {} \; 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/watch b/debian/watch new file mode 100644 index 0000000..1039372 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/gitlint-$1\.tar\.gz/ \ + https://github.com/jorisroovers/gitlint/releases .*/v?(\d\S+)\.tar\.gz |