mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
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@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
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"
|
||||
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"
|
||||
|
||||
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"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
python_test() {
|
||||
cd tests || die
|
||||
"${EPYTHON}" maintest.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user