diff --git a/.github/workflows/test-lang-py.yml b/.github/workflows/test-lang-py.yml index 4b67a751c1a..452251b88d9 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 9aefc007584..6343003bd4d 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 adbeb0ff85e..ad50a763da2 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]