public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mercurial] rawhide: Fix compatibility with python 3.15.0b1
Date: Wed, 03 Jun 2026 09:50:06 GMT	[thread overview]
Message-ID: <178048020685.1.15043392309431073552.rpms-mercurial-e4cd45bf19da@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mercurial
Branch : rawhide
Commit : e4cd45bf19dafa93f2a53e5a17ca8f71d659db03
Author : Karolina Surma <ksurma@redhat.com>
Date   : 2026-05-21T16:55:51+02:00
Stats  : +26/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mercurial/c/e4cd45bf19dafa93f2a53e5a17ca8f71d659db03?branch=rawhide

Log:
Fix compatibility with python 3.15.0b1

---
diff --git a/fix-compat-with-python315.patch b/fix-compat-with-python315.patch
new file mode 100644
index 0000000..8770c29
--- /dev/null
+++ b/fix-compat-with-python315.patch
@@ -0,0 +1,25 @@
+From a9faa827e7c686f92ddc53e87a057f554298ad10 Mon Sep 17 00:00:00 2001
+From: Karolina Surma <ksurma@redhat.com>
+Date: Thu, 21 May 2026 16:49:41 +0200
+Subject: [PATCH] Fix build with Python 3.15.0b1
+
+---
+ hgdemandimport/__init__.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/hgdemandimport/__init__.py b/hgdemandimport/__init__.py
+index 206512a..f10c90b 100644
+--- a/hgdemandimport/__init__.py
++++ b/hgdemandimport/__init__.py
+@@ -69,6 +69,8 @@ IGNORES = {
+     'copy',
+     'difflib',
+     'decimal',
++    'tomllib._re',
++    'inspect',
+ }
+ 
+ _pypy = '__pypy__' in sys.builtin_module_names
+-- 
+2.54.0
+

diff --git a/mercurial.spec b/mercurial.spec
index 29eab6b..a7a51f9 100644
--- a/mercurial.spec
+++ b/mercurial.spec
@@ -23,6 +23,7 @@ Source0: https://www.mercurial-scm.org/release/%{name}-%{upstreamversion}.tar.gz
 Source1: mercurial-site-start.el
 # Patch cargo metadata for dependency versions available in Fedora
 Patch0:  mercurial-rust-metadata.patch
+Patch1:  fix-compat-with-python315.patch
 
 BuildRequires: make
 BuildRequires: emacs-el

                 reply	other threads:[~2026-06-03  9:50 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=178048020685.1.15043392309431073552.rpms-mercurial-e4cd45bf19da@fedoraproject.org \
    --to=ksurma@redhat.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