dev-python/exceptiongroup: Use PyPI sdist

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-05-14 18:03:50 +02:00
parent c592b04897
commit ec855d6458
2 changed files with 2 additions and 12 deletions

View File

@@ -1 +1 @@
DIST exceptiongroup-1.2.1.gh.tar.gz 28203 BLAKE2B 65068805670105246c84115a4030641eeff0384df01fc6b7ebd3215c7933908d8db8c8e272efd056b3f044110bf285d3fd477002e0db4c8f99f83bea71f28ce4 SHA512 6f1f29e017192f5881f28855692ad41fe781846b5daa082699350c8dd5990bc3aa54751e1776c620a3a48bf5a8d5bd9b4b50f09d848051b00ba19d825116e7a7
DIST exceptiongroup-1.2.1.tar.gz 28717 BLAKE2B 70e8093ad6af81343bf90e349671265e612f12fe25e5caeaef5917353159415215e4bb1921d9a0fcde6c3bd1a31a84f032827a2d5d8884daea777d7b110d8995 SHA512 7e0216ac2d76f0b3d29a0690790aa98d8e0f019eaee74e37e4ddcb97553a6a4d5037982478e663e8dfba49731444decda06122a3cb68f1c538589f5b43bdebfc

View File

@@ -6,21 +6,13 @@ EAPI=8
DISTUTILS_USE_PEP517=flit_scm
PYTHON_COMPAT=( pypy3 python3_{10..12} )
inherit distutils-r1
inherit distutils-r1 pypi
MY_P=${P/_}
DESCRIPTION="Backport of PEP 654 (exception groups)"
HOMEPAGE="
https://github.com/agronholm/exceptiongroup/
https://pypi.org/project/exceptiongroup/
"
# pypi sdist does not include tests as of 1.1.1
# https://github.com/agronholm/exceptiongroup/pull/59
SRC_URI="
https://github.com/agronholm/exceptiongroup/archive/${PV/_}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="MIT PSF-2.4"
SLOT="0"
@@ -28,8 +20,6 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV/_}
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest