You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/11/14 11:41:35 UTC
[avro] branch branch-1.11 updated: AVRO-3672: Add CI testing for Python 3.11 (#1961)
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.11 by this push:
new b2185451b AVRO-3672: Add CI testing for Python 3.11 (#1961)
b2185451b is described below
commit b2185451bb942048ff443fa6dcd3d83ab2403dce
Author: Martin Grigorov <ma...@users.noreply.github.com>
AuthorDate: Mon Nov 14 13:41:05 2022 +0200
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 <mg...@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 <mg...@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 <mg...@apache.org>
* AVRO-3672: Fix formatting
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
(cherry picked from commit 432f073c3cfb8ac7edb2793b797ab855c5a978dd)
---
.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 01fe90a79..7709a815e 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 9aefc0075..6343003bd 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 adbeb0ff8..ad50a763d 100644
--- a/lang/py/setup.cfg
+++ b/lang/py/setup.cfg
@@ -29,7 +29,7 @@ keywords =
author = Apache Avro
author_email = dev@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]