summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-02-11 11:30:54 +0100
committerMichał Górny <mgorny@gentoo.org>2023-02-12 20:00:47 +0100
commit4141f5032c5e45dc912f27d39d81ef0a65c6c56b (patch)
tree2108bcabd97ed91aea6a1787a7f981f604c7af08 /eclass/tests
parentpypi.eclass: Translate ${PV} by default (diff)
downloadgentoo-4141f5032c5e45dc912f27d39d81ef0a65c6c56b.tar.gz
gentoo-4141f5032c5e45dc912f27d39d81ef0a65c6c56b.tar.bz2
gentoo-4141f5032c5e45dc912f27d39d81ef0a65c6c56b.zip
pypi.eclass: Normalize PN and translate PV for S as well
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/pypi.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/tests/pypi.sh b/eclass/tests/pypi.sh
index e114549633a0..ebfcdb630856 100755
--- a/eclass/tests/pypi.sh
+++ b/eclass/tests/pypi.sh
@@ -7,6 +7,7 @@ source tests-common.sh || exit
PN=Foo.Bar
PV=1.2.3_beta2
+WORKDIR='<WORKDIR>'
inherit pypi
@@ -89,5 +90,7 @@ test-eq "pypi_sdist_url --no-normalize Flask-BabelEx 4 .zip" \
test-eq 'declare -p SRC_URI' \
'declare -- SRC_URI="https://files.pythonhosted.org/packages/source/F/Foo.Bar/foo_bar-1.2.3b2.tar.gz"'
+test-eq 'declare -p S' \
+ 'declare -- S="<WORKDIR>/foo_bar-1.2.3b2"'
texit