diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-21 13:43:19 +0100 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-21 13:43:19 +0100 |
commit | 90c31496690312f271a1619a79e9dc98d0b4ae3c (patch) | |
tree | c11b53c8a7d7def38cddc0cd2c72c9d87c6372c7 /setuptools | |
parent | fd5fcbb1ec200ba2b0c657628a591ce2255998e3 (diff) | |
download | python-setuptools-git-90c31496690312f271a1619a79e9dc98d0b4ae3c.tar.gz |
Fix problems with backup directory
Diffstat (limited to 'setuptools')
-rw-r--r-- | setuptools/command/dist_info.py | 2 | ||||
-rw-r--r-- | setuptools/tests/test_dist_info.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py index 7f35a476..0685c945 100644 --- a/setuptools/command/dist_info.py +++ b/setuptools/command/dist_info.py @@ -80,7 +80,7 @@ class dist_info(Command): @contextmanager def _maybe_bkp_dir(self, dir_path: str, requires_bkp: bool): if requires_bkp: - bkp_name = f"__bkp__.{dir_path}.__bkp__" + bkp_name = f"{dir_path}.__bkp__" _rm(bkp_name, ignore_errors=True) _copy(dir_path, bkp_name, dirs_exist_ok=True, symlinks=True) try: diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py index 605cb196..350e6429 100644 --- a/setuptools/tests/test_dist_info.py +++ b/setuptools/tests/test_dist_info.py @@ -125,8 +125,8 @@ class TestDistInfo: expected_egg_info = 1 if keep_egg_info else 0 assert len(list(out.glob("*.egg-info"))) == expected_egg_info assert len(list(tmp_path.glob("*.egg-info"))) == 0 - assert len(list(out.glob("__bkp__.*.__bkp__"))) == 0 - assert len(list(tmp_path.glob("__bkp__.*.__bkp__"))) == 0 + assert len(list(out.glob("*.__bkp__"))) == 0 + assert len(list(tmp_path.glob("*.__bkp__"))) == 0 class TestWheelCompatibility: |