[med-svn] [Git][python-team/packages/python-avro][master] 2 commits: Cherry-pick upstream fix for Python 3.11 tests (Closes: #1026605)
Scott Talbert (@swt2c)
gitlab at salsa.debian.org
Thu Dec 29 22:03:25 GMT 2022
Scott Talbert pushed to branch master at Debian Python Team / packages / python-avro
Commits:
febc8ece by Scott Talbert at 2022-12-29T16:57:44-05:00
Cherry-pick upstream fix for Python 3.11 tests (Closes: #1026605)
- - - - -
e53baced by Scott Talbert at 2022-12-29T17:00:37-05:00
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/432f073c3cfb8ac7edb2793b797ab855c5a978dd.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-avro (1.11.1+dfsg-2) unstable; urgency=medium
+
+ * Team upload.
+ * Cherry-pick upstream fix for Python 3.11 tests (Closes: #1026605)
+
+ -- Scott Talbert <swt at techie.net> Thu, 29 Dec 2022 17:00:27 -0500
+
python-avro (1.11.1+dfsg-1) unstable; urgency=medium
* Team upload.
=====================================
debian/patches/432f073c3cfb8ac7edb2793b797ab855c5a978dd.patch
=====================================
@@ -0,0 +1,88 @@
+From 432f073c3cfb8ac7edb2793b797ab855c5a978dd Mon Sep 17 00:00:00 2001
+From: Martin Grigorov <martin-g at users.noreply.github.com>
+Date: Mon, 14 Nov 2022 13:41:05 +0200
+Subject: [PATCH] AVRO-3672: Add CI testing for Python 3.11 (#1961)
+
+* AVRO-3672: Add CI testing for Python 3.11
+
+Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov at apache.org>
+
+* AVRO-3672: Fix setuptools warning
+
+/home/runner/work/avro/avro/lang/py/.tox/build/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
+
+Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov at apache.org>
+
+* AVRO-3672: Override __str__ to return the Enum's value
+
+It seems Python 3.11 changed its toString() for classes inheriting (str,
+Enum).
+
+Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov at apache.org>
+
+* AVRO-3672: Fix formatting
+
+Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov at apache.org>
+
+Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov at apache.org>
+---
+ .github/workflows/test-lang-py.yml | 2 ++
+ lang/py/avro/compatibility.py | 3 +++
+ lang/py/setup.cfg | 3 ++-
+ 3 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/.github/workflows/test-lang-py.yml b/.github/workflows/test-lang-py.yml
+index 4b67a751c1..452251b88d 100644
+--- a/.github/workflows/test-lang-py.yml
++++ b/.github/workflows/test-lang-py.yml
+@@ -40,6 +40,7 @@ jobs:
+ fail-fast: false
+ matrix:
+ python:
++ - '3.11'
+ - '3.10'
+ - '3.9'
+ - '3.8'
+@@ -86,6 +87,7 @@ jobs:
+ fail-fast: false
+ matrix:
+ python:
++ - '3.11'
+ - '3.10'
+ - '3.9'
+ - '3.8'
+diff --git a/lang/py/avro/compatibility.py b/lang/py/avro/compatibility.py
+index 9aefc00758..6343003bd4 100644
+--- a/lang/py/avro/compatibility.py
++++ b/lang/py/avro/compatibility.py
+@@ -50,6 +50,9 @@ class SchemaType(str, Enum):
+ STRING = "string"
+ UNION = "union"
+
++ def __str__(self):
++ return self.value
++
+
+ class SchemaCompatibilityType(Enum):
+ compatible = "compatible"
+diff --git a/lang/py/setup.cfg b/lang/py/setup.cfg
+index adbeb0ff85..ad50a763da 100644
+--- a/lang/py/setup.cfg
++++ b/lang/py/setup.cfg
+@@ -29,7 +29,7 @@ keywords =
+ author = Apache Avro
+ author_email = dev at avro.apache.org
+ url = https://avro.apache.org/
+-license_file = avro/LICENSE
++license_files = avro/LICENSE
+ license = Apache License 2.0
+ classifiers =
+ License :: OSI Approved :: Apache Software License
+@@ -38,6 +38,7 @@ classifiers =
+ Programming Language :: Python :: 3.8
+ Programming Language :: Python :: 3.9
+ Programming Language :: Python :: 3.10
++ Programming Language :: Python :: 3.11
+ Development Status :: 5 - Production/Stable
+
+ [bdist_wheel]
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
skip_online_tests.patch
+432f073c3cfb8ac7edb2793b797ab855c5a978dd.patch
View it on GitLab: https://salsa.debian.org/python-team/packages/python-avro/-/compare/a75cdaf1a5f8fdabf961a0d0344053b54bd15b80...e53baced777468534c9b1df1059b6cae3b19fada
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-avro/-/compare/a75cdaf1a5f8fdabf961a0d0344053b54bd15b80...e53baced777468534c9b1df1059b6cae3b19fada
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20221229/786ead98/attachment-0001.htm>
More information about the debian-med-commit
mailing list