-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pre-commit-ci-update-config
- Loading branch information
Showing
13 changed files
with
159 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
no longer forcibly echo off during windows batch activation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
write CACHEDIR.TAG file on creation - by "user:`neilramsay` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Upgrade embedded wheels: | ||
|
||
* setuptools to ``75.6.0`` from ``75.5.0`` | ||
* wheel to ``0.45.1`` from ``0.45.0`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from __future__ import annotations | ||
|
||
import shutil | ||
import subprocess | ||
import sys | ||
|
||
import pytest | ||
|
||
from virtualenv import cli_run | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def tar_test_env(tmp_path_factory): | ||
base_path = tmp_path_factory.mktemp("tar-cachedir-test") | ||
cli_run(["--activators", "", "--without-pip", str(base_path / ".venv")]) | ||
yield base_path | ||
shutil.rmtree(str(base_path)) | ||
|
||
|
||
def compatible_is_tar_present() -> bool: | ||
try: | ||
tar_result = subprocess.run(args=["tar", "--help"], capture_output=True, encoding="utf-8") | ||
return tar_result.stdout.find("--exclude-caches") > -1 | ||
except FileNotFoundError: | ||
return False | ||
|
||
|
||
@pytest.mark.skipif(sys.platform == "win32", reason="Windows does not have tar") | ||
@pytest.mark.skipif(not compatible_is_tar_present(), reason="Compatible tar is not installed") | ||
def test_cachedir_tag_ignored_by_tag(tar_test_env): # noqa: ARG001 | ||
tar_result = subprocess.run( | ||
args=["tar", "--create", "--file", "/dev/null", "--exclude-caches", "--verbose", ".venv"], | ||
capture_output=True, | ||
encoding="utf-8", | ||
) | ||
assert tar_result.stdout == ".venv/\n.venv/CACHEDIR.TAG\n" | ||
assert tar_result.stderr == "tar: .venv/: contains a cache directory tag CACHEDIR.TAG; contents not dumped\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters