"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
fix: skip pip --editable option value in registry date updater (#368)
陈家名f5ae8362c0c4
diff --git a/.github/scripts/tests/test_update_registry_dates.py b/.github/scripts/tests/test_update_registry_dates.pyindex 53b83fd45..5c9abd23b 100644--- a/.github/scripts/tests/test_update_registry_dates.py+++ b/.github/scripts/tests/test_update_registry_dates.py@@ -69,3 +69,15 @@ def test_extract_pypi_package_skips_index_option_values():)assert MODULE._extract_pypi_package(install_cmd) == "py4csr"+++def test_extract_pypi_package_skips_editable_option_value():+ install_cmd = "pip install -e ./local/pkg py4csr"++ assert MODULE._extract_pypi_package(install_cmd) == "py4csr"+++def test_extract_pypi_package_returns_none_for_editable_only_install():+ install_cmd = "pip install -e ."++ assert MODULE._extract_pypi_package(install_cmd) is Nonediff --git a/.github/scripts/update_registry_dates.py b/.github/scripts/update_registry_dates.pyindex a2c72de60..61e36435b 100644--- a/.github/scripts/update_registry_dates.py+++ b/.github/scripts/update_registry_dates.py@@ -27,6 +27,8 @@ PIP_OPTIONS_WITH_VALUES = {"-i","--index-url","--extra-index-url",+ "-e",+ "--editable","-f","--find-links","--trusted-host",