[packages/python3-hatchling] Up to 1.28.0
arekm
arekm at pld-linux.org
Sat Feb 21 09:49:54 CET 2026
commit e52aad0e6b99b25281f0182fe791827d59d50c05
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 21 09:49:48 2026 +0100
Up to 1.28.0
no-names-normalization.patch | 20 ++++++++++----------
python3-hatchling.spec | 6 +++---
2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/python3-hatchling.spec b/python3-hatchling.spec
index 2e91444..6cb38b7 100644
--- a/python3-hatchling.spec
+++ b/python3-hatchling.spec
@@ -6,12 +6,12 @@
Summary: Modern, extensible Python build backend
Summary(pl.UTF-8): Nowoczesny, rozszerzalny backend budowania pakietów dla Pythona
Name: python3-%{module}
-Version: 1.27.0
-Release: 7
+Version: 1.28.0
+Release: 1
License: MIT
Group: Libraries/Python
Source0: https://pypi.debian.net/hatchling/%{module}-%{version}.tar.gz
-# Source0-md5: 6ffb3087c9b6a9ffbfc1bb394f7ed1a8
+# Source0-md5: 0d40370d4684147d6e3d1e3800298bd0
Patch0: no-names-normalization.patch
URL: https://pypi.org/project/hatchling/
BuildRequires: python3-build
diff --git a/no-names-normalization.patch b/no-names-normalization.patch
index a8e9e24..073424e 100644
--- a/no-names-normalization.patch
+++ b/no-names-normalization.patch
@@ -1,21 +1,21 @@
---- hatchling-1.27.0/src/hatchling/metadata/utils.py.orig 2020-02-02 01:00:00.000000000 +0100
-+++ hatchling-1.27.0/src/hatchling/metadata/utils.py 2025-06-19 14:40:26.303286164 +0200
-@@ -16,9 +16,13 @@
- return re.search('^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$', project_name, re.IGNORECASE) is not None
+--- hatchling-1.28.0/src/hatchling/metadata/utils.py~ 2020-02-02 01:00:00.000000000 +0100
++++ hatchling-1.28.0/src/hatchling/metadata/utils.py 2026-02-21 09:49:03.984926038 +0100
+@@ -16,10 +16,12 @@ def is_valid_project_name(project_name:
+ return re.search("^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$", project_name, re.IGNORECASE) is not None
-def normalize_project_name(project_name: str) -> str:
+- # https://peps.python.org/pep-0503/#normalized-names
+- return re.sub(r"[-_.]+", "-", project_name).lower()
+def name_normalization(name: str) -> str:
- # https://peps.python.org/pep-0503/#normalized-names
-- return re.sub(r'[-_.]+', '-', project_name).lower()
-+ return re.sub(r'[-_.]+', '-', name).lower()
-+
-+
++ # https://peps.python.org/pep-0503/#normalized-names
++ return re.sub(r'[-_.]+', '-', name).lower()
+
+def normalize_project_name(project_name: str) -> str:
+ return project_name
-
def normalize_requirement(requirement: Requirement) -> None:
+ # Changes to this function affect reproducibility between versions
--- hatchling-1.27.0/src/hatchling/metadata/core.py.orig 2020-02-02 01:00:00.000000000 +0100
+++ hatchling-1.27.0/src/hatchling/metadata/core.py 2025-06-19 15:07:27.916613000 +0200
@@ -11,6 +11,7 @@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-hatchling.git/commitdiff/e52aad0e6b99b25281f0182fe791827d59d50c05
More information about the pld-cvs-commit
mailing list