From da54d93c78560e0d5fe69272c7baa914f9ad58bd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 16 Sep 2022 11:10:28 +0200 Subject: Adding debian version 2.2.0-3. Signed-off-by: Daniel Baumann --- debian/.git-dpm | 11 +++++++++ debian/changelog | 49 ++++++++++++++++++++++++++++++++++++++++ debian/clean | 2 ++ debian/control | 32 ++++++++++++++++++++++++++ debian/copyright | 30 ++++++++++++++++++++++++ debian/patches/python-3.10.patch | 19 ++++++++++++++++ debian/patches/series | 1 + debian/python3-colorclass.docs | 4 ++++ debian/rules | 14 ++++++++++++ debian/source/format | 1 + debian/source/options | 1 + debian/upstream/metadata | 4 ++++ debian/watch | 4 ++++ 13 files changed, 172 insertions(+) create mode 100644 debian/.git-dpm create mode 100644 debian/changelog create mode 100644 debian/clean create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/patches/python-3.10.patch create mode 100644 debian/patches/series create mode 100644 debian/python3-colorclass.docs create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/upstream/metadata create mode 100644 debian/watch (limited to 'debian') diff --git a/debian/.git-dpm b/debian/.git-dpm new file mode 100644 index 0000000..0b98a98 --- /dev/null +++ b/debian/.git-dpm @@ -0,0 +1,11 @@ +# see git-dpm(1) from git-dpm package +bf531346100de79a1a832ec54d3c5c8c8a9f16a5 +bf531346100de79a1a832ec54d3c5c8c8a9f16a5 +bf531346100de79a1a832ec54d3c5c8c8a9f16a5 +bf531346100de79a1a832ec54d3c5c8c8a9f16a5 +colorclass_2.2.0.orig.tar.gz +e1a713dd315095eb901e13c37ef02202a5ff0033 +486151 +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..e93936a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,49 @@ +colorclass (2.2.0-3) unstable; urgency=medium + + [ Ondřej Nový ] + * d/control: Set Vcs-* to salsa.debian.org + * d/control: Remove ancient X-Python3-Version field + * Convert git repository from git-dpm to gbp layout + * Use debhelper-compat instead of debian/compat. + * d/control: Update Maintainer field with new Debian Python Team + contact address. + * d/control: Update Vcs-* fields with new Debian Python Team Salsa + layout. + + [ Debian Janitor ] + * Bump debhelper from old 10 to 12. + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + * Bump debhelper from old 12 to 13. + + -- Sandro Tosi Tue, 07 Jun 2022 00:04:08 -0400 + +colorclass (2.2.0-2.2) unstable; urgency=medium + + * Non-maintainer upload. + * Applying patch from Steve Langasek + for Python 3.10 (Closes: #1001289). + + -- Daniel Baumann Thu, 16 Dec 2021 05:16:44 +0200 + +colorclass (2.2.0-2.1) unstable; urgency=medium + + * Non maintainer upload by the Reproducible Builds team. + * No source change upload to rebuild on buildd with .buildinfo files. + + -- Holger Levsen Wed, 06 Jan 2021 18:09:16 +0100 + +colorclass (2.2.0-2) unstable; urgency=medium + + * Upload to unstable. + * Tell dh_compress to leave example.py alone. + * Enable autopkgtest-pkg-python test suite. + * Bump standards to 4.1.1, no changes needed. + + -- Carl Suster Fri, 24 Nov 2017 13:21:26 +1100 + +colorclass (2.2.0-1) experimental; urgency=medium + + * Initial release (Closes: #850087) + + -- Carl Suster Thu, 05 Jan 2017 12:47:09 +1100 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..739fbc2 --- /dev/null +++ b/debian/clean @@ -0,0 +1,2 @@ +*.egg-info/* +.cache/ diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3ffecdd --- /dev/null +++ b/debian/control @@ -0,0 +1,32 @@ +Source: colorclass +Priority: optional +Maintainer: Debian Python Team +Uploaders: Carl Suster +Build-Depends: + debhelper-compat (= 13), + dh-python, + python3-all, + python3-docopt, + python3-pytest, + python3-setuptools, +Standards-Version: 4.1.1 +Section: python +Homepage: https://github.com/Robpol86/colorclass +Vcs-Git: https://salsa.debian.org/python-team/packages/colorclass.git +Vcs-Browser: https://salsa.debian.org/python-team/packages/colorclass +Testsuite: autopkgtest-pkg-python + +Package: python3-colorclass +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: ANSI color text library for Python + Yet another ANSI color text library for Python. Provides "auto colors" for + dark/light terminals. Works on Linux, OS X, and Windows. + . + In Python 2 this library subclasses unicode, while on Python 3 it subclasses + str. Different colors are chosen using curly-bracket tags, such as + {red}{/red}. For a list of available colors, call colorclass.list_tags(). + Auto colors are toggled by calling set_light_background() and + set_dark_background(). + . + This package provides the Python 3 module. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..60997f1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: colorclass +Source: https://github.com/Robpol86/colorclass + +Files: * +Copyright: 2016 Robpol86 +License: MIT + +Files: debian/* +Copyright: 2017 Carl Suster +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/python-3.10.patch b/debian/patches/python-3.10.patch new file mode 100644 index 0000000..99ccc33 --- /dev/null +++ b/debian/patches/python-3.10.patch @@ -0,0 +1,19 @@ +Description: compatibility with python 3.10 +Author: Steve Langasek +Bug-Debian: https://bugs.debian.org/1001289 +Last-Update: 2021-12-10 +Forwarded: no + +Index: colorclass-2.2.0/colorclass/codes.py +=================================================================== +--- colorclass-2.2.0.orig/colorclass/codes.py ++++ colorclass-2.2.0/colorclass/codes.py +@@ -1,7 +1,7 @@ + """Handles mapping between color names and ANSI codes and determining auto color codes.""" + + import sys +-from collections import Mapping ++from collections.abc import Mapping + + BASE_CODES = { + '/all': 0, 'b': 1, 'f': 2, 'i': 3, 'u': 4, 'flash': 5, 'outline': 6, 'negative': 7, 'invis': 8, 'strike': 9, diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..0aa1121 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +python-3.10.patch diff --git a/debian/python3-colorclass.docs b/debian/python3-colorclass.docs new file mode 100644 index 0000000..7fe2ae1 --- /dev/null +++ b/debian/python3-colorclass.docs @@ -0,0 +1,4 @@ +README.rst +example.png +example.py +example_windows.png diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..aae6151 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +export PYBUILD_NAME=colorclass + +export PYBUILD_BEFORE_TEST=cp example.py {build_dir} +export PYBUILD_AFTER_TEST=rm {build_dir}/example.py + + +%: + dh $@ --with python3 --buildsystem pybuild + +override_dh_compress: + dh_compress -X example.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..b2b7b88 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore="^[^/]+\.egg-info/" diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..9a931e2 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/Robpol86/colorclass/issues +Bug-Submit: https://github.com/Robpol86/colorclass/issues/new +Repository: https://github.com/Robpol86/colorclass.git +Repository-Browse: https://github.com/Robpol86/colorclass diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2a87385 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 + +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/colorclass-$1\.tar\.gz/ \ + https://github.com/Robpol86/colorclass/releases .*/v?(\d\S*)\.tar\.gz -- cgit v1.2.3