diff --git a/.ci/scripts/check_click_for_mypy.py b/.ci/scripts/check_click_for_mypy.py index a905be7ef..2941277ea 100755 --- a/.ci/scripts/check_click_for_mypy.py +++ b/.ci/scripts/check_click_for_mypy.py @@ -1,9 +1,12 @@ #!/bin/env python3 -import click +from importlib.metadata import version + from packaging.version import parse -if parse(click.__version__) < parse("8.1.1") or parse(click.__version__) >= parse("8.2"): +click_version = version("click") + +if parse(click_version) < parse("8.1.1") or parse(click_version) >= parse("8.2"): print("🚧 Linting with mypy is currently only supported with click~=8.1.1. 🚧") print("🔧 Please run `pip install click~=8.1.1` first. 🔨") exit(1) diff --git a/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh b/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh index 935ce8ba7..b9c72ec9f 100755 --- a/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh +++ b/tests/scripts/pulp_rpm/test_rpm_sync_publish.sh @@ -106,12 +106,6 @@ then expect_succ pulp rpm repository update --name "cli_test_rpm_repository" --checksum-type sha512 expect_fail pulp rpm repository update --name "cli_test_rpm_repository" --checksum-type sha1 - - if pulp debug has-plugin --name "rpm" --specifier ">=3.30.0" - then - expect_fail pulp rpm repository update --name "cli_test_rpm_repository" --package-checksum-type sha256 - expect_fail pulp rpm repository update --name "cli_test_rpm_repository" --metadata-checksum-type sha256 - fi else expect_succ pulp rpm repository update --name "cli_test_rpm_repository" --metadata-checksum-type sha1 expect_succ pulp rpm repository update --name "cli_test_rpm_repository" --package-checksum-type sha1