public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-python-chardet] rawhide: Use flit for building, hatch is not packaged for mingw
Date: Tue, 22 Sep 2026 12:58:06 GMT	[thread overview]
Message-ID: <179008188637.1.16206559322113102365.rpms-mingw-python-chardet-e5ec21701bd9@fedoraproject.org> (raw)

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"

                 reply	other threads:[~2026-09-22 12:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179008188637.1.16206559322113102365.rpms-mingw-python-chardet-e5ec21701bd9@fedoraproject.org \
    --to=manisandro@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox