commit:     8eb0438772910ad98091f12ae80987791163a826
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Fri Apr 12 20:08:50 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sat Apr 13 12:31:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8eb04387

dev-python/colored: add 2.2.4, drop 1.4.2 1.4.3

Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>

 dev-python/colored/Manifest                        |  3 +--
 dev-python/colored/colored-1.4.3.ebuild            | 24 ----------------------
 .../{colored-1.4.2.ebuild => colored-2.2.4.ebuild} | 19 ++++++++---------
 3 files changed, 10 insertions(+), 36 deletions(-)

diff --git a/dev-python/colored/Manifest b/dev-python/colored/Manifest
index 461230d2ae..dc61de8928 100644
--- a/dev-python/colored/Manifest
+++ b/dev-python/colored/Manifest
@@ -1,2 +1 @@
-DIST colored-1.4.2.tar.gz 23973 BLAKE2B 
3f6d91c08634d6e6616f968b7e06d0d7822a15d02e7129fab6fb4d3a4cb9ca166fd0de5cf3240fdf76918d09aab28224459d332821994730b4070dd7d4336b7e
 SHA512 
31b604baf41d054a3b269e843393c63ede3be279331108ce1127ee30e63f19365c45f63744a5c3bdb5c355716138b7d1768e761ead456c480d5ae1183952a406
-DIST colored-1.4.3.tar.gz 24324 BLAKE2B 
8924029b06571053a450d1beebe12fb7318d813bcd273b816c88d2f9186e66f12ebdaee631680dbe17348141faf8d80e551c6446a5bd3cb9c09eb09131058571
 SHA512 
e6f8047a210f38e5fc84e4e24870810ab34eed2bc9003e5f777c3f6de007c3cf61a89bf75e275f3ebfa8fb63420925b41502498534516c464c92ba3949d2f4eb
+DIST colored-2.2.4.tar.bz2 18246 BLAKE2B 
0895ad4c0851af77526309d991f0271d1837087ecf1562031fdd391fa820e6973155ce5b9be66c527855331f25195ef327508bcfbba5bc5bb31d9a5b0c13d30f
 SHA512 
4ae77b2b72d06c9da3dfe232cc4eac2414c350d8b19905005f1f0d31b208238b1462f59468d89860fb2c4617e47c81b48f0780a22969dc2ee83c90ffd2dd5431

diff --git a/dev-python/colored/colored-1.4.3.ebuild 
b/dev-python/colored/colored-1.4.3.ebuild
deleted file mode 100644
index e767c29823..0000000000
--- a/dev-python/colored/colored-1.4.3.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_10 pypy3 )
-inherit distutils-r1
-
-EGIT_REPO_URI="https://gitlab.com/dslackw/${PN}";
-
-DESCRIPTION="Very simple Python library for color and formatting in terminal"
-HOMEPAGE="https://gitlab.com/dslackw/colored";
-SRC_URI="https://gitlab.com/dslackw/${PN}/-/archive/${PV}/${P}.tar.gz";
-
-LICENSE="MIT"
-KEYWORDS="~amd64 ~x86"
-SLOT="0"
-
-DOCS=( CHANGES.md README.rst docs )
-
-python_test() {
-       "${EPYTHON}" tests/test_hex_1.py || die
-       "${EPYTHON}" tests/test_hex_2.py || die
-}

diff --git a/dev-python/colored/colored-1.4.2.ebuild 
b/dev-python/colored/colored-2.2.4.ebuild
similarity index 55%
rename from dev-python/colored/colored-1.4.2.ebuild
rename to dev-python/colored/colored-2.2.4.ebuild
index 9985bba407..681699a688 100644
--- a/dev-python/colored/colored-1.4.2.ebuild
+++ b/dev-python/colored/colored-2.2.4.ebuild
@@ -1,24 +1,23 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_10 pypy3 )
-inherit distutils-r1
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
 
-EGIT_REPO_URI="https://gitlab.com/dslackw/${PN}";
+inherit distutils-r1
 
 DESCRIPTION="Very simple Python library for color and formatting in terminal"
 HOMEPAGE="https://gitlab.com/dslackw/colored";
-SRC_URI="https://gitlab.com/dslackw/${PN}/-/archive/${PV}/${P}.tar.gz";
+SRC_URI="https://gitlab.com/dslackw/${PN}/-/archive/${PV}/${P}.tar.bz2";
 
 LICENSE="MIT"
-KEYWORDS="~amd64 ~x86"
 SLOT="0"
+KEYWORDS="~amd64 ~x86"
 
 DOCS=( CHANGES.md README.rst docs )
 
-python_test() {
-       "${EPYTHON}" tests/test_hex_1.py || die
-       "${EPYTHON}" tests/test_hex_2.py || die
-}
+# Until we find a way to set colored as unaware of TTY, we should not test as
+# half of them fail, see https://gitlab.com/dslackw/colored/-/issues/32
+# distutils_enable_tests pytest

Reply via email to