Skip to content

Commit

Permalink
Merge branch 'main' into fix/issue-1977_incompatible-constraint-with-…
Browse files Browse the repository at this point in the history
…extra
  • Loading branch information
chrysle authored Sep 30, 2023
2 parents 4dc5a57 + 1974580 commit 069382a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
merge_group:
pull_request:
push:
branches:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ on each targeted Python environment to avoid issues.

### Other useful tools

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

Expand Down
15 changes: 13 additions & 2 deletions tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
import pytest
from pip._internal.utils.hashes import FAVORITE_HASH
from pip._internal.utils.urls import path_to_url
from pip._vendor.packaging.version import Version

from piptools.scripts.compile import cli
from piptools.utils import COMPILE_EXCLUDE_OPTIONS
from piptools.utils import (
COMPILE_EXCLUDE_OPTIONS,
get_pip_version_for_python_executable,
)

from .constants import MINIMAL_WHEELS_PATH, PACKAGES_PATH

Expand Down Expand Up @@ -3058,7 +3062,14 @@ def test_pass_pip_cache_to_pip_args(tmpdir, runner, current_resolver):
cli, ["--cache-dir", str(cache_dir), "--resolver", current_resolver]
)
assert out.exit_code == 0
assert os.listdir(os.path.join(str(cache_dir), "http"))
# TODO: Remove hack once testing only on v23.3+
pip_current_version = get_pip_version_for_python_executable(sys.executable)
pip_breaking_version = Version("23.3.dev0")
if pip_current_version >= pip_breaking_version:
pip_http_cache_dir = "http-v2"
else:
pip_http_cache_dir = "http"
assert os.listdir(os.path.join(str(cache_dir), pip_http_cache_dir))


@backtracking_resolver_only
Expand Down

0 comments on commit 069382a

Please sign in to comment.