public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pylibmc] epel10.2: Fix compatibility with future Python 3.11: RHBZ#2021928
@ 2026-09-25 17:45 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-25 17:45 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pylibmc
Branch : epel10.2
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.2

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-25 17:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 17:45 [rpms/python-pylibmc] epel10.2: Fix compatibility with future Python 3.11: RHBZ#2021928 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox