Skip to content

Commit 6ac1f6e

Browse files
committed
Merge tag 'v69.4.1' into main
2 parents 762bdcb + d4affe0 commit 6ac1f6e

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 69.4.0
2+
current_version = 69.4.1
33
commit = True
44
tag = True
55

NEWS.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
v69.4.1
2+
=======
3+
4+
No significant changes.
5+
6+
7+
v69.3.1
8+
=======
9+
10+
Bugfixes
11+
--------
12+
13+
- Remove attempt to canonicalize the version. It's already canonical enough. (#4302)
14+
15+
116
v69.4.0
217
=======
318

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = setuptools
3-
version = 69.4.0
3+
version = 69.4.1
44
author = Python Packaging Authority
55
author_email = [email protected]
66
description = Easily download, build, install, upgrade, and uninstall Python packages

setuptools/_core_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from . import _normalization, _reqs
1818
from .extern.packaging.markers import Marker
1919
from .extern.packaging.requirements import Requirement
20-
from .extern.packaging.utils import canonicalize_name, canonicalize_version
20+
from .extern.packaging.utils import canonicalize_name
2121
from .extern.packaging.version import Version
2222
from .warnings import SetuptoolsDeprecationWarning
2323

@@ -264,5 +264,5 @@ def _write_provides_extra(file, processed_extras, safe, unsafe):
264264
def get_fullname(self):
265265
return "{}-{}".format(
266266
canonicalize_name(self.get_name()).replace('-', '_'),
267-
canonicalize_version(self.get_version()),
267+
self.get_version(),
268268
)

setuptools/tests/test_config_discovery.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def test_py_modules_when_wheel_dir_is_cwd(self, tmp_path):
255255

256256

257257
class TestNoConfig:
258-
CANONICAL_DEFAULT_VERSION = "0" # Canonical default version given by setuptools
258+
DEFAULT_VERSION = "0.0.0" # Default version given by setuptools
259259

260260
EXAMPLES = {
261261
"pkg1": ["src/pkg1.py"],
@@ -277,9 +277,7 @@ def test_build_with_discovered_name(self, tmp_path):
277277
_populate_project_dir(tmp_path, files, {})
278278
_run_build(tmp_path, "--sdist")
279279
# Expected distribution file
280-
dist_file = (
281-
tmp_path / f"dist/ns_nested_pkg-{self.CANONICAL_DEFAULT_VERSION}.tar.gz"
282-
)
280+
dist_file = tmp_path / f"dist/ns_nested_pkg-{self.DEFAULT_VERSION}.tar.gz"
283281
assert dist_file.is_file()
284282

285283

0 commit comments

Comments
 (0)