public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-pylibmc] epel10.3: Fix compatibility with future Python 3.11: RHBZ#2021928
Date: Fri, 25 Sep 2026 17:22:38 GMT	[thread overview]
Message-ID: <179035695801.1.10553057227146801199.rpms-python-pylibmc-4a702f4f763e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-pylibmc
Branch : epel10.3
Commit : 4a702f4f763e92e8f70f05941cd2cab16ed8aee3
Author : František Zatloukal <fzatlouk@redhat.com>
Date   : 2021-11-27T02:14:04+01:00
Stats  : +37/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pylibmc/c/4a702f4f763e92e8f70f05941cd2cab16ed8aee3?branch=epel10.3

Log:
Fix compatibility with future Python 3.11: RHBZ#2021928

---
diff --git a/22854a4ba8f7e926099219c107104723089bcad8.patch b/22854a4ba8f7e926099219c107104723089bcad8.patch
new file mode 100644
index 0000000..c687f90
--- /dev/null
+++ b/22854a4ba8f7e926099219c107104723089bcad8.patch
@@ -0,0 +1,29 @@
+From 22854a4ba8f7e926099219c107104723089bcad8 Mon Sep 17 00:00:00 2001
+From: Ludvig Ericson <ludvig@lericson.se>
+Date: Mon, 29 Jun 2020 14:59:36 +0200
+Subject: [PATCH] =?UTF-8?q?2020:=20Do=20not=20pass=20=E2=80=98U=E2=80=99?=
+ =?UTF-8?q?=20flag=20to=20open?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+---
+ setup.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 9bea257..89871ea 100644
+--- a/setup.py
++++ b/setup.py
+@@ -95,9 +95,9 @@ def append_env(L, e):
+         s.write(line + "\n")
+     sys.exit(0)
+ 
+-with open("README.rst", "U", encoding="utf-8") as r:
++with open("README.rst", encoding="utf-8") as r:
+     readme_text = r.read()
+-with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
++with open("src/pylibmc-version.h", encoding="utf-8") as r:
+     version = r.read().strip().split("\"")[1]
+ 
+ setup(

diff --git a/python-pylibmc.spec b/python-pylibmc.spec
index e8242d8..fb34382 100644
--- a/python-pylibmc.spec
+++ b/python-pylibmc.spec
@@ -3,13 +3,16 @@
 
 Name:           python-%{srcname}
 Version:        1.6.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        %{sum}
 
 License:        BSD
 URL:            http://sendapatch.se/projects/pylibmc/
 Source0:        https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
 
+# Python 3.11 fix: https://github.com/lericson/pylibmc/commit/22854a4ba8f7e926099219c107104723089bcad8
+Patch01:         https://github.com/lericson/pylibmc/commit/22854a4ba8f7e926099219c107104723089bcad8.patch
+
 BuildRequires:  gcc
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
@@ -36,6 +39,7 @@ so that applications can drop-in replace it.
 
 %prep
 %setup -q -n %{srcname}-%{version}
+%patch01 -p1
 
 %build
 %py3_build
@@ -55,6 +59,9 @@ chmod 755 $RPM_BUILD_ROOT%{python3_sitearch}/_pylibmc.cpython-%{python3_version_
 
 
 %changelog
+* Sat Nov 27 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.6.1-2
+- Fix compatibility with future Python 3.11: RHBZ#2021928
+
 * Tue Nov 09 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.6.1-1
 - Update to 1.6.1
 

                 reply	other threads:[~2026-09-25 17:22 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=179035695801.1.10553057227146801199.rpms-python-pylibmc-4a702f4f763e@fedoraproject.org \
    --to=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