From 29b63a3a3a6056812d3f3bb3e3d9273bb2ae41660836d45bd253a49bdd0be6ae Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 14 Jan 2022 08:50:39 +0000 Subject: [PATCH] Accepting request 946242 from home:bnavigator:branches:devel:languages:python - Update to 2.2.2 * no release notes * new maintainer, new Github repository * PEP517 style build with poetry backend * Python 3.10 support by collections.abc import fix OBS-URL: https://build.opensuse.org/request/show/946242 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorclass?expand=0&rev=6 --- colorclass-2.2.2-gh.tar.gz | 3 +++ python-colorclass.changes | 9 +++++++++ python-colorclass.spec | 28 ++++++++++++++++------------ v2.2.0.tar.gz | 3 --- 4 files changed, 28 insertions(+), 15 deletions(-) create mode 100644 colorclass-2.2.2-gh.tar.gz delete mode 100644 v2.2.0.tar.gz diff --git a/colorclass-2.2.2-gh.tar.gz b/colorclass-2.2.2-gh.tar.gz new file mode 100644 index 0000000..c5ba129 --- /dev/null +++ b/colorclass-2.2.2-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62dd256e513e39e819b51f2dd970a7254f4d9c4bb8ea32b2fb03ef58b9c67acf +size 490884 diff --git a/python-colorclass.changes b/python-colorclass.changes index 8994c65..09c304e 100644 --- a/python-colorclass.changes +++ b/python-colorclass.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Jan 13 22:29:37 UTC 2022 - Ben Greiner + +- Update to 2.2.2 + * no release notes + * new maintainer, new Github repository + * PEP517 style build with poetry backend + * Python 3.10 support by collections.abc import fix + ------------------------------------------------------------------- Thu Jun 6 11:53:02 UTC 2019 - pgajdos@suse.com diff --git a/python-colorclass.spec b/python-colorclass.spec index 2493c5d..decf218 100644 --- a/python-colorclass.spec +++ b/python-colorclass.spec @@ -1,7 +1,7 @@ # # spec file for package python-colorclass # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,16 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-colorclass -Version: 2.2.0 +Version: 2.2.2 Release: 0 Summary: ANSI text color library for Python License: MIT Group: Development/Languages/Python -Url: https://github.com/Robpol86/colorclass -# https://github.com/Robpol86/colorclass/issues/25 -Source: https://github.com/Robpol86/colorclass/archive/v%{version}.tar.gz +URL: https://github.com/matthewdeanmartin/colorclass/ +Source: https://github.com/matthewdeanmartin/colorclass/archive/refs/tags/v%{version}.tar.gz#/colorclass-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,22 +41,26 @@ colors" for dark/light terminals. In Python 2.x, this library subclasses `unicode`, while on Python 3.x, it subclasses `str`. -* Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5 are supported - %prep %setup -q -n colorclass-%{version} %build -%python_build +%pyproject_wheel %install -%python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%pyproject_install +%{python_expand # +# show rpmlint a non-empty metadata file (poetry creates those) +echo " " >> %{buildroot}%{$python_sitelib}/colorclass-%{version}.dist-info/entry_points.txt +# standard dedup +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest -k 'not test_piped' %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/colorclass +%{python_sitelib}/colorclass-%{version}.dist-info %changelog diff --git a/v2.2.0.tar.gz b/v2.2.0.tar.gz deleted file mode 100644 index a7fad19..0000000 --- a/v2.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a0e9ac5df5c669e678e99e36731fcdc8eccd755c78dc66f46ab78fe858c159f -size 486151