public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fleep/
Date: Mon,  2 Aug 2021 05:52:50 +0000 (UTC)	[thread overview]
Message-ID: <1627883491.fb3e47f9966d09e5bc487e2e6629d46263cdb5ad.mgorny@gentoo> (raw)

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	other threads:[~2021-08-02  5:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-02  5:52 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-17 17:48 [gentoo-commits] repo/gentoo:master commit in: dev-python/fleep/ Michał Górny
2024-05-17 17:48 Michał Górny
2023-11-23 19:00 Michał Górny
2023-08-19 22:40 Rick Farina
2022-05-12 19:09 Arthur Zamarin
2021-08-02  5:52 Michał Górny
2021-08-02  5:52 Michał Górny
2021-08-02  5:52 Michał Górny
2020-12-03  1:35 Aaron Bauman
2019-12-10 20:16 Aaron Bauman
2019-12-09 17:55 Rick Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1627883491.fb3e47f9966d09e5bc487e2e6629d46263cdb5ad.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox