Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-avro for openSUSE:Factory checked in at 2023-01-25 17:44:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-avro (Old) and /work/SRC/openSUSE:Factory/.python-avro.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-avro" Wed Jan 25 17:44:35 2023 rev:13 rq:1060888 version:1.11.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-avro/python-avro.changes 2022-08-06 22:08:02.526636320 +0200 +++ /work/SRC/openSUSE:Factory/.python-avro.new.32243/python-avro.changes 2023-01-25 17:54:12.771598375 +0100 @@ -1,0 +2,5 @@ +Wed Jan 25 12:58:14 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add py311.patch to make tests compatible with python 3.11 gh#apache/avro#1961 + +------------------------------------------------------------------- New: ---- py311.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-avro.spec ++++++ --- /var/tmp/diff_new_pack.h7Km7Z/_old 2023-01-25 17:54:13.183600574 +0100 +++ /var/tmp/diff_new_pack.h7Km7Z/_new 2023-01-25 17:54:13.187600595 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-avro # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-avro Version: 1.11.1 @@ -26,6 +25,8 @@ Group: Development/Languages/Python URL: https://avro.apache.org/ Source: https://files.pythonhosted.org/packages/source/a/avro/avro-%{version}.tar.gz +# PATCH-FIX-UPSTREAM: py311.patch gh#apache/avro#1961 +Patch: py311.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -43,7 +44,7 @@ This package contains the python implementation of Avro. %prep -%setup -q -n avro-%{version} +%autosetup -p1 -n avro-%{version} sed -i '1{\@^#!/usr/bin/env python@d}' avro/*.py avro/tether/*.py avro/test/*.py %build ++++++ py311.patch ++++++ Index: avro-1.11.1/avro/compatibility.py =================================================================== --- avro-1.11.1.orig/avro/compatibility.py +++ avro-1.11.1/avro/compatibility.py @@ -49,6 +49,9 @@ class SchemaType(str, Enum): STRING = "string" UNION = "union" + def __str__(self): + return self.value + class SchemaCompatibilityType(Enum): compatible = "compatible"