diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:38:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:38:02 +0000 |
commit | 28a3053e898b6d50d35a6d36ed47b4ccc7010001 (patch) | |
tree | 89057f482e5bafb4ff313106aad75c421454ff14 | |
parent | Adding upstream version 0.19.1. (diff) | |
download | gitlint-28a3053e898b6d50d35a6d36ed47b4ccc7010001.tar.xz gitlint-28a3053e898b6d50d35a6d36ed47b4ccc7010001.zip |
Adding debian version 0.19.1-2.debian/0.19.1-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | debian/changelog | 191 | ||||
-rw-r--r-- | debian/control | 38 | ||||
-rw-r--r-- | debian/copyright | 32 | ||||
-rw-r--r-- | debian/patches/debian/0001-python3-hook.patch | 15 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 32 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
8 files changed, 313 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..97273e5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,191 @@ +gitlint (0.19.1-2) sid; urgency=medium + + * Uploading to sid. + * Uploading without changes after bookworm release. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sun, 11 Jun 2023 14:13:53 +0200 + +gitlint (0.19.1-1) experimental; urgency=medium + + * Uploading to experimental. + * Merging upstream version 0.19.1. + * Adding build-depends to pybuild-plugin-pyproject for PEP517 support. + * Adding hatch build-depends for new usptream version. + * Workarounding hatch-vcs as debian upstream tarball doesn't contain + upstreams git vcs files. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sat, 11 Mar 2023 09:03:12 +0100 + +gitlint (0.19.0~dev-1) experimental; urgency=medium + + * Uploading to experimental. + * Merging upstream version 0.19.0~dev. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Mon, 30 Jan 2023 18:11:16 +0100 + +gitlint (0.18.0-2) sid; urgency=medium + + * Uploading to sid. + * Updating to standards version 4.6.2. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Mon, 30 Jan 2023 17:12:56 +0100 + +gitlint (0.18.0-1) sid; urgency=medium + + * Uploading to sid. + * Merging upstream version 0.18.0. + * Updating copyright for 2022. + * Updating to standards version 4.6.1. + * Adding further build-depends used for manpage generation to make build + reproducible, thanks to Vagrant Cascadian <vagrant@reproducible- + builds.org> (Closes: #1024404). + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sat, 19 Nov 2022 15:55:10 +0100 + +gitlint (0.17.0-1) sid; urgency=medium + + * Uploading to sid. + * Merging upstream version 0.17.0. + * Refreshing python3-hook.patch. + * Disabling now non-working test target temporarily. + * Updating rules for gitlint and gitlint-core changes. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sat, 04 Dec 2021 04:31:53 +0100 + +gitlint (0.16.0-1) sid; urgency=medium + + * Uploading to sid. + * Merging upstream version 0.16.0. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Wed, 13 Oct 2021 07:35:03 +0200 + +gitlint (0.15.1-3) sid; urgency=medium + + * Uploading to sid. + * Updating to standards version 4.6.0. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sat, 09 Oct 2021 10:15:53 +0200 + +gitlint (0.15.1-2) sid; urgency=medium + + * Uploading to sid. + * Updating watch file. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sun, 15 Aug 2021 17:36:42 +0200 + +gitlint (0.15.1-1) experimental; urgency=medium + + * Uploading to experimental. + * Merging upstream version 0.15.1. + * Updating python debhelper sequence. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Mon, 19 Apr 2021 15:27:48 +0200 + +gitlint (0.15.0-1) sid; urgency=medium + + * Uploading to sid. + * Merging upstream version 0.15.0. + * Updating years in copyright file for 2021. + * Updating to standards version 4.5.1. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Mon, 25 Jan 2021 14:27:59 +0100 + +gitlint (0.14.0-1) sid; urgency=medium + + * Uploading to sid. + * Merging upstream version 0.14.0. + * Refreshing python3-hook.patch. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Tue, 03 Nov 2020 07:07:57 +0100 + +gitlint (0.13.1-6) sid; urgency=medium + + * Uploading to sid. + * Adding Rules-Requires-Root field. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sun, 30 Aug 2020 15:56:29 +0200 + +gitlint (0.13.1-5) sid; urgency=medium + + * Uploading to sid. + * Updating to debhelper version 13. + * Using python3 in commit-msg hook (Closes: #891538). + * Removing fix-test-with-python3.patch, not needed anymore. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sun, 19 Apr 2020 13:31:34 +0200 + +gitlint (0.13.1-4) sid; urgency=medium + + * Uploading to sid. + * Correcting license name in copyright file. + * Adding myself to copyright file. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Fri, 27 Mar 2020 09:05:22 +0100 + +gitlint (0.13.1-3) sid; urgency=medium + + * Uploading to sid. + * Adding manpage generated with help2man. + * Shortening package short-description. + * Completing copyright file headers. + * Moving debian specific patches to corresponding subdirectory. + * Repeating section field for binary packages for consistency reasons. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Thu, 26 Mar 2020 20:53:26 +0100 + +gitlint (0.13.1-2) sid; urgency=medium + + * Uploading to sid. + * Intending watch file. + * Adding note about target distribution to changelog. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Sat, 21 Mar 2020 09:45:29 +0100 + +gitlint (0.13.1-1) sid; urgency=medium + + * Uploading to sid. + * New maintainer (Closes: #933193). + * Updating homepage field. + * Updating package description. + * Updating years in copyright file. + * Sorting dh arguments in rules. + * Using execute_after targets in rules to be explicit what we're doing. + * Adding vcs fields. + * Sorting debian files. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Thu, 19 Mar 2020 15:12:27 +0100 + +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..efbdda3 --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source: gitlint +Section: utils +Priority: optional +Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org> +Build-Depends: + debhelper-compat (= 13), + dh-sequence-python3, + git, + help2man, + pybuild-plugin-pyproject, + python3-all, + python3-arrow, + python3-click, + python3-hatch-vcs, + python3-hatchling, + python3-setuptools, + python3-sh, +Rules-Requires-Root: no +Standards-Version: 4.6.2 +Homepage: https://jorisroovers.com/gitlint/ +Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/gitlint +Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/gitlint + +Package: gitlint +Section: utils +Architecture: all +Depends: + git, + python3-arrow, + python3-sh, + ${misc:Depends}, + ${python3:Depends}, +Description: Git commit message linter + Gitlint is a git commit message linter written in Python, it 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..9632db4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: gitlint +Upstream-Contact: Joris Roovers <jroovers@cisco.com> +Source: https://github.com/jorisroovers/gitlint + +Files: * +Copyright: 2015-2022 Joris Roovers <jroovers@cisco.com> +License: MIT + +Files: debian/* +Copyright: 2017-2018 Patrik Hagedorn <patrik.hagedorn@gmx.net> + 2020-2022 Daniel Baumann <daniel.baumann@progress-linux.org> +License: 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/patches/debian/0001-python3-hook.patch b/debian/patches/debian/0001-python3-hook.patch new file mode 100644 index 0000000..bbd6b08 --- /dev/null +++ b/debian/patches/debian/0001-python3-hook.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Using python3 in commit-msg hook (Closes: #891538). + +diff -Naurp gitlint.orig/gitlint-core/gitlint/files/commit-msg gitlint/gitlint-core/gitlint/files/commit-msg +--- gitlint.orig/gitlint-core/gitlint/files/commit-msg ++++ gitlint/gitlint-core/gitlint/files/commit-msg +@@ -26,7 +26,7 @@ exit_code=$? + # This is the case for Atlassian SourceTree, where $PATH deviates from the user's shell $PATH. + if [ $exit_code -eq 127 ]; then + echo "Fallback to python module execution" +- python -m gitlint.cli --staged --msg-filename "$1" run-hook ++ python3 -m gitlint.cli --staged --msg-filename "$1" run-hook + exit_code=$? + fi + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..bc40938 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-python3-hook.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3df7be3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +VERSION := $(shell dpkg-parsechangelog -SVersion) + +%: + dh ${@} --buildsystem=pybuild --sourcedir=$(CURDIR)/gitlint-core + +execute_after_dh_auto_clean: + rm -f gitlint-core/_version.py + +execute_before_dh_auto_build: + echo "__version__ = version = '$(VERSION)'" > gitlint-core/_version.py + +override_dh_auto_test: + # disabled + +execute_after_dh_auto_install: + # manpage + mkdir -p debian/gitlint/usr/share/man/man1 + + PYTHONPATH=debian/gitlint/usr/lib/$$(py3versions -d)/dist-packages \ + help2man --no-discard-stderr --name 'Git commit message linter' \ + debian/gitlint/usr/bin/gitlint > debian/gitlint/usr/share/man/man1/gitlint.1 + + # removing unused files + rm -rf debian/gitlint/usr/lib/python*/dist-packages/qa + +execute_after_dh_fixperms: + find debian/gitlint/usr/lib -name commit-msg -exec chmod +x {} \; + +override_dh_missing: + # disabled 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..0ad4bc1 --- /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/tags .*/v?(\d\S+)\.tar\.gz |