Support compatible version specifiers (#12771)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2024-10-17 08:15:30 +02:00
1 parent 56078f574f
commit 36fb63ebc8
3 files changed
+41 -33

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ def run_stubtest(
pip_exe = str(venv_dir / "bin" / "pip")
python_exe = str(venv_dir / "bin" / "python")
dist_extras = ", ".join(stubtest_settings.extras)
dist_req = f"{dist_name}[{dist_extras}]=={metadata.version}"
dist_req = f"{dist_name}[{dist_extras}]{metadata.version_spec}"
# If tool.stubtest.stubtest_requirements exists, run "pip install" on it.
if stubtest_settings.stubtest_requirements: