public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-python-chardet] rawhide: Use flit for building, hatch is not packaged for mingw
@ 2026-09-22 12:58 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-09-22 12:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mingw-python-chardet
Branch : rawhide
Commit : e5ec21701bd9419bcd401d9a96cda72c4a0a0a75
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-09-22T14:57:56+02:00
Stats : +27/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-python-chardet/c/e5ec21701bd9419bcd401d9a96cda72c4a0a0a75?branch=rawhide
Log:
Use flit for building, hatch is not packaged for mingw
---
diff --git a/mingw-python-chardet.spec b/mingw-python-chardet.spec
index 89d70c9..e82020d 100644
--- a/mingw-python-chardet.spec
+++ b/mingw-python-chardet.spec
@@ -12,14 +12,19 @@ BuildArch: noarch
License: LGPL-2.1-or-later
URL: https://github.com/chardet/chardet
Source0: %{pypi_source}
+# Use flit for building, hatch is not packaged for mingw
+Patch0: mingw-python-chardet_nohatch.patch
-BuildRequires: mingw32-filesystem >= 95
+
+BuildRequires: mingw32-filesystem
BuildRequires: mingw32-python3
BuildRequires: mingw32-python3-build
+BuildRequires: mingw32-python3-flit-core
-BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw64-filesystem
BuildRequires: mingw64-python3
BuildRequires: mingw64-python3-build
+BuildRequires: mingw64-python3-flit-core
%description
diff --git a/mingw-python-chardet_nohatch.patch b/mingw-python-chardet_nohatch.patch
new file mode 100644
index 0000000..ef54748
--- /dev/null
+++ b/mingw-python-chardet_nohatch.patch
@@ -0,0 +1,20 @@
+diff -rupN chardet-6.0.0.post1/pyproject.toml chardet-6.0.0.post1-new/pyproject.toml
+--- chardet-6.0.0.post1/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
++++ chardet-6.0.0.post1-new/pyproject.toml 2026-09-22 11:06:30.869492915 +0200
+@@ -66,14 +66,8 @@ train = [
+ ]
+
+ [build-system]
+-requires = ["hatch-vcs", "hatchling"]
+-build-backend = "hatchling.build"
+-
+-[tool.hatch.version]
+-source = "vcs"
+-
+-[tool.hatch.version.raw-options]
+-local_scheme = "no-local-version"
++requires = ["flit_core >=3.2,<4"]
++build-backend = "flit_core.buildapi"
+
+ [tool.pyright]
+ reportTypedDictNotRequiredAccess = "none"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-22 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 12:58 [rpms/mingw-python-chardet] rawhide: Use flit for building, hatch is not packaged for mingw Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox