diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-02-10 14:47:42 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-12 20:00:45 +0100 |
commit | 65e9578ab8ff9bf3b752659296128833810697cb (patch) | |
tree | 032d40b1ff241f068973c1b8e11587e548084b9d /eclass/tests/pypi.sh | |
parent | pypi.eclass: Normalize sdist filenames by default (diff) | |
download | gentoo-65e9578ab8ff9bf3b752659296128833810697cb.tar.gz gentoo-65e9578ab8ff9bf3b752659296128833810697cb.tar.bz2 gentoo-65e9578ab8ff9bf3b752659296128833810697cb.zip |
pypi.eclass: Add a version translation function
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests/pypi.sh')
-rwxr-xr-x | eclass/tests/pypi.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/tests/pypi.sh b/eclass/tests/pypi.sh index 385b1c028bce..af5d714af748 100755 --- a/eclass/tests/pypi.sh +++ b/eclass/tests/pypi.sh @@ -32,6 +32,13 @@ test-eq "pypi_normalize_name foo___bar" foo_bar test-eq "pypi_normalize_name Flask-BabelEx" flask_babelex test-eq "pypi_normalize_name jaraco.context" jaraco_context +test-eq "pypi_translate_version 1.2.3" 1.2.3 +test-eq "pypi_translate_version 1.2.3_p101" 1.2.3.post101 +test-eq "pypi_translate_version 1.2.3_alpha4" 1.2.3a4 +test-eq "pypi_translate_version 1.2.3_beta1" 1.2.3b1 +test-eq "pypi_translate_version 1.2.3_rc2" 1.2.3rc2 +test-eq "pypi_translate_version 1.2.3_rc2_p1" 1.2.3rc2.post1 + test-eq "pypi_wheel_name" foo_bar-1.2.3-py3-none-any.whl test-eq "pypi_wheel_name Flask-BabelEx" flask_babelex-1.2.3-py3-none-any.whl test-eq "pypi_wheel_name Flask-BabelEx 4" flask_babelex-4-py3-none-any.whl |