commit:     fb3e47f9966d09e5bc487e2e6629d46263cdb5ad
Author:     Arthur Zamarin <arthurzam <AT> gmail <DOT> com>
AuthorDate: Thu Jul 29 18:32:59 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug  2 05:51:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb3e47f9

dev-python/fleep: bump to python 3.10, EAPI=8, tests

use github direct download to use upstream small tests
upstream doesn't tag the releases, and uses version in commit title

Signed-off-by: Arthur Zamarin <arthurzam <AT> gmail.com>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/fleep/Manifest              |  1 +
 dev-python/fleep/fleep-1.0.1-r1.ebuild | 33 +++++++++++++++++++++++++++++++++
 dev-python/fleep/fleep-9999.ebuild     | 27 ++++++++++++++++++---------
 3 files changed, 52 insertions(+), 9 deletions(-)

diff --git a/dev-python/fleep/Manifest b/dev-python/fleep/Manifest
index 3e8410b5047..a93cb40682f 100644
--- a/dev-python/fleep/Manifest
+++ b/dev-python/fleep/Manifest
@@ -1 +1,2 @@
+DIST fleep-1.0.1.gh.tar.gz 197438 BLAKE2B 
cf099a941d63443a9ee314727966ae95e143acc2f33f7760fe34772d4a2d371af534c029ad207b7727d34e7472c9396b3fc1e9c82066d98ae248dd4f7bd430d7
 SHA512 
ea287b9cec0f88f378b6c2f248938417e7e51b004a03bb4421611f9cbdae7b97cf1c02b5096c491df934922d906812daadab02d46ae49e64dc2a2a880ab4d87e
 DIST fleep-1.0.1.tar.gz 6547 BLAKE2B 
75ede77464e32404b3e1229adc9484d1d44b33323ed18f4be5275ffd1c8f63863459f46ff9cbf4f90d0e1387c0e5c967cce13ac8f6ce65710709dd227c04df89
 SHA512 
ba56f3a6c99f4c793e9f5c4ec04f7a96effabeadd92b18aeb7689a75d8504ccfca086db635d33e358ea9f67887e904c141e259ce2e9b9f3ea77f9e24c1b0eb27

diff --git a/dev-python/fleep/fleep-1.0.1-r1.ebuild 
b/dev-python/fleep/fleep-1.0.1-r1.ebuild
new file mode 100644
index 00000000000..cce82c31af2
--- /dev/null
+++ b/dev-python/fleep/fleep-1.0.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/floyernick/fleep-py.git";
+       inherit git-r3
+else
+       # upstream aren't tagging the releases, just as commit title
+       COMMIT="994bc2c274482d80ab13d89d8f7343eb316d3e44"
+       # Note: On next bump, remove gh suffix from SRC_URI - was added just 
for tests
+       SRC_URI="https://github.com/floyernick/fleep-py/archive/${COMMIT}.tar.gz
+               -> ${P}.gh.tar.gz"
+       S="${WORKDIR}/fleep-py-${COMMIT}"
+
+       KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="File format determination library for Python"
+HOMEPAGE="https://github.com/floyernick/fleep-py";
+
+LICENSE="MIT"
+SLOT="0"
+
+python_test() {
+       cd tests || die
+       "${EPYTHON}" maintest.py || die "Tests fail with ${EPYTHON}"
+}

diff --git a/dev-python/fleep/fleep-9999.ebuild 
b/dev-python/fleep/fleep-9999.ebuild
index 0171f1ef752..68f31790d68 100644
--- a/dev-python/fleep/fleep-9999.ebuild
+++ b/dev-python/fleep/fleep-9999.ebuild
@@ -1,23 +1,32 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 
-DESCRIPTION="File format determination library for Python"
-HOMEPAGE="https://github.com/floyernick/fleep-py";
-
-if [ "${PV}" = "9999" ]; then
+if [[ ${PV} == 9999 ]]; then
        EGIT_REPO_URI="https://github.com/floyernick/fleep-py.git";
        inherit git-r3
 else
-       SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+       # upstream aren't tagging the releases, just as commit title
+       COMMIT="994bc2c274482d80ab13d89d8f7343eb316d3e44"
+       SRC_URI="https://github.com/floyernick/fleep-py/archive/${COMMIT}.tar.gz
+               -> ${P}.tar.gz"
+       S="${WORKDIR}/fleep-py-${COMMIT}"
+
        KEYWORDS="~amd64 ~x86"
 fi
 
+DESCRIPTION="File format determination library for Python"
+HOMEPAGE="https://github.com/floyernick/fleep-py";
+
 LICENSE="MIT"
 SLOT="0"
-IUSE=""
+
+python_test() {
+       cd tests || die
+       "${EPYTHON}" maintest.py || die "Tests fail with ${EPYTHON}"
+}

Reply via email to