Skip to content

Commit 069382a

Browse files
authored
Merge branch 'main' into fix/issue-1977_incompatible-constraint-with-extra
2 parents 4dc5a57 + 1974580 commit 069382a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
merge_group:
45
pull_request:
56
push:
67
branches:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ on each targeted Python environment to avoid issues.
550550

551551
### Other useful tools
552552

553+
- [pip-compile-multi](https://pip-compile-multi.readthedocs.io/en/latest/) - pip-compile command wrapper for multiple cross-referencing requirements files.
553554
- [pipdeptree](https://github.com/tox-dev/pipdeptree) to print the dependency tree of the installed packages.
554555
- `requirements.in`/`requirements.txt` syntax highlighting:
555556

tests/test_cli_compile.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111
import pytest
1212
from pip._internal.utils.hashes import FAVORITE_HASH
1313
from pip._internal.utils.urls import path_to_url
14+
from pip._vendor.packaging.version import Version
1415

1516
from piptools.scripts.compile import cli
16-
from piptools.utils import COMPILE_EXCLUDE_OPTIONS
17+
from piptools.utils import (
18+
COMPILE_EXCLUDE_OPTIONS,
19+
get_pip_version_for_python_executable,
20+
)
1721

1822
from .constants import MINIMAL_WHEELS_PATH, PACKAGES_PATH
1923

@@ -3058,7 +3062,14 @@ def test_pass_pip_cache_to_pip_args(tmpdir, runner, current_resolver):
30583062
cli, ["--cache-dir", str(cache_dir), "--resolver", current_resolver]
30593063
)
30603064
assert out.exit_code == 0
3061-
assert os.listdir(os.path.join(str(cache_dir), "http"))
3065+
# TODO: Remove hack once testing only on v23.3+
3066+
pip_current_version = get_pip_version_for_python_executable(sys.executable)
3067+
pip_breaking_version = Version("23.3.dev0")
3068+
if pip_current_version >= pip_breaking_version:
3069+
pip_http_cache_dir = "http-v2"
3070+
else:
3071+
pip_http_cache_dir = "http"
3072+
assert os.listdir(os.path.join(str(cache_dir), pip_http_cache_dir))
30623073

30633074

30643075
@backtracking_resolver_only

0 commit comments

Comments
 (0)