[packages/python3-hatchling] - updated to 1.33.0

qboosh qboosh at pld-linux.org
Sun Nov 1 16:13:36 CET 2026


commit 8254ba2f591a8beb81b53109c1e9dbb5c0681659
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 1 16:14:27 2026 +0100

    - updated to 1.33.0

 no-names-normalization.patch | 20 ++++++++++----------
 python3-hatchling.spec       | 16 ++++++++--------
 2 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/python3-hatchling.spec b/python3-hatchling.spec
index 6cb38b7..1f099ce 100644
--- a/python3-hatchling.spec
+++ b/python3-hatchling.spec
@@ -6,33 +6,34 @@
 Summary:	Modern, extensible Python build backend
 Summary(pl.UTF-8):	Nowoczesny, rozszerzalny backend budowania pakietów dla Pythona
 Name:		python3-%{module}
-Version:	1.28.0
+Version:	1.33.0
 Release:	1
 License:	MIT
 Group:		Libraries/Python
 Source0:	https://pypi.debian.net/hatchling/%{module}-%{version}.tar.gz
-# Source0-md5:	0d40370d4684147d6e3d1e3800298bd0
+# Source0-md5:	ceb27e40e3f0adc9247db08816d8c853
 Patch0:		no-names-normalization.patch
 URL:		https://pypi.org/project/hatchling/
 BuildRequires:	python3-build
 BuildRequires:	python3-installer
-BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-modules >= 1:3.10
 BuildRequires:	python3-packaging >= 24.2
 BuildRequires:	python3-pathspec >= 0.10.1
 BuildRequires:	python3-pluggy >= 1.0.0
-%if "%{_ver_lt %{py3_ver} 3.11}" == "1"
+%if "%{py3_ver}" == "3.10"
 BuildRequires:	python3-tomli >= 1.2.2
 %endif
+BuildRequires:	python3-tomlkit >= 0.11.1
 BuildRequires:	python3-trove_classifiers
 %if %{with tests}
 BuildRequires:	python3-pytest
 BuildRequires:	python3-requests
 BuildRequires:	python3-tomli
-BuildRequires:	python3-virtualenv >= 20.13.1
+BuildRequires:	python3-virtualenv >= 21
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
-Requires:	python3-modules >= 1:3.8
+Requires:	python3-modules >= 1:3.10
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -53,8 +54,7 @@ pakietów Pythona, wykorzystywany przez Hatch
 %py3_build_pyproject
 
 %if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
+%{__python3} tests/downstream/integrate.py
 %endif
 
 %install
diff --git a/no-names-normalization.patch b/no-names-normalization.patch
index 073424e..27aa136 100644
--- a/no-names-normalization.patch
+++ b/no-names-normalization.patch
@@ -1,21 +1,21 @@
---- 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:
+--- hatchling-1.33.0/src/hatchling/metadata/utils.py.orig	2020-02-02 01:00:00.000000000 +0100
++++ hatchling-1.33.0/src/hatchling/metadata/utils.py	2026-11-01 12:50:28.117460410 +0100
+@@ -16,9 +16,13 @@ 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'[-_.]+', '-', name).lower()
- 
-+def normalize_project_name(project_name: str) -> str:
++
++
+ def normalize_project_name(project_name: str) -> str:
+-    # https://peps.python.org/pep-0503/#normalized-names
+-    return re.sub(r"[-_.]+", "-", project_name).lower()
 +    return project_name
  
- def normalize_requirement(requirement: Requirement) -> None:
-     # Changes to this function affect reproducibility between versions
+ 
+ def split_import_name_annotation(import_name: str) -> tuple[str, bool]:
 --- 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/8254ba2f591a8beb81b53109c1e9dbb5c0681659



More information about the pld-cvs-commit mailing list