6 Commits

Author SHA256 Message Date
7de571ea1a Accepting request 1301432 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1301432
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-avro?expand=0&rev=18
2025-08-26 14:13:57 +00:00
c874622976 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-avro?expand=0&rev=38
2025-08-26 12:05:06 +00:00
86b5257103 Accepting request 1286139 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286139
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-avro?expand=0&rev=17
2025-06-17 16:21:53 +00:00
31335224ed - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-avro?expand=0&rev=36
2025-06-16 14:42:37 +00:00
b6d790c2c4 Accepting request 1196150 from devel:languages:python
- Update to 1.12.0:
  * Bug fixes:
    + [AVRO-1318]: Python schema should store fingerprints
    + [AVRO-3622]: Python compatibility check fails if record with and
      without namespace are compared
    + [AVRO-3659]: Typo in python example
    + [AVRO-3667]: [Python] Python 3.10 CI test fails since a while
    + [AVRO-3669]: Missing py.typed file
    + [AVRO-3861]: [Build] Add RAT exclusions for python docs
    + [AVRO-3866]: [Build][Python] Files are leftover after a build
  * Improvements:
    + [AVRO-312]: Generate documentation for Python with Sphinx
    + [AVRO-1938]: Python support for generating canonical forms of schema
    + [AVRO-3879]: [Build][Python] Fix ./build.sh clean to remove the
      generated Python documents
    + [AVRO-3977]: Fix failing typecheck in Python 3.12
  * Tests:
    + [AVRO-3696]: [Python] Replace tox-wheel with upstream tox 4
  * Tasks:
    + [AVRO-3808]: Drop support for Python 3.6, add Pypy 3.8-3.10
- Switch to pyproject and pyunittest macros.

OBS-URL: https://build.opensuse.org/request/show/1196150
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-avro?expand=0&rev=16
2024-08-27 17:39:11 +00:00
5a4bd57efe - Update to 1.12.0:
* Bug fixes:
    + [AVRO-1318]: Python schema should store fingerprints
    + [AVRO-3622]: Python compatibility check fails if record with and
      without namespace are compared
    + [AVRO-3659]: Typo in python example
    + [AVRO-3667]: [Python] Python 3.10 CI test fails since a while
    + [AVRO-3669]: Missing py.typed file
    + [AVRO-3861]: [Build] Add RAT exclusions for python docs
    + [AVRO-3866]: [Build][Python] Files are leftover after a build
  * Improvements:
    + [AVRO-312]: Generate documentation for Python with Sphinx
    + [AVRO-1938]: Python support for generating canonical forms of schema
    + [AVRO-3879]: [Build][Python] Fix ./build.sh clean to remove the
      generated Python documents
    + [AVRO-3977]: Fix failing typecheck in Python 3.12
  * Tests:
    + [AVRO-3696]: [Python] Replace tox-wheel with upstream tox 4
  * Tasks:
    + [AVRO-3808]: Drop support for Python 3.6, add Pypy 3.8-3.10
- Switch to pyproject and pyunittest macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-avro?expand=0&rev=34
2024-08-27 05:24:46 +00:00
4 changed files with 63 additions and 17 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3393bb5139f9cf0791d205756ce1e39a5b58586af5b153d6a3b5a199610e9d17
size 90621

BIN
avro-1.12.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,38 @@
-------------------------------------------------------------------
Tue Aug 26 12:02:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Mon Jun 16 14:40:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Aug 27 05:24:30 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.12.0:
* Bug fixes:
+ [AVRO-1318]: Python schema should store fingerprints
+ [AVRO-3622]: Python compatibility check fails if record with and
without namespace are compared
+ [AVRO-3659]: Typo in python example
+ [AVRO-3667]: [Python] Python 3.10 CI test fails since a while
+ [AVRO-3669]: Missing py.typed file
+ [AVRO-3861]: [Build] Add RAT exclusions for python docs
+ [AVRO-3866]: [Build][Python] Files are leftover after a build
* Improvements:
+ [AVRO-312]: Generate documentation for Python with Sphinx
+ [AVRO-1938]: Python support for generating canonical forms of schema
+ [AVRO-3879]: [Build][Python] Fix ./build.sh clean to remove the
generated Python documents
+ [AVRO-3977]: Fix failing typecheck in Python 3.12
* Tests:
+ [AVRO-3696]: [Python] Replace tox-wheel with upstream tox 4
* Tasks:
+ [AVRO-3808]: Drop support for Python 3.6, add Pypy 3.8-3.10
- Switch to pyproject and pyunittest macros.
-------------------------------------------------------------------
Thu Mar 7 13:44:26 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-avro
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,33 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-avro
Version: 1.11.3
Version: 1.12.0
Release: 0
Summary: A serialization and RPC framework for Python
License: Apache-2.0
Group: Development/Languages/Python
URL: https://avro.apache.org/
Source: https://files.pythonhosted.org/packages/source/a/avro/avro-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: python-Twisted
Requires: python-zope.interface
Suggests: python-python-snappy
BuildArch: noarch
%endif
%python_subpackages
%description
@@ -46,17 +54,17 @@ This package contains the python implementation of Avro.
sed -i '1{\@^#!/usr/bin/env python@d}' avro/*.py avro/tether/*.py avro/test/*.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/avro
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_server_with_path: tries to connect to apache.org
# test_minimum_speed is not stable in OBS
%pytest -k "not test_server_with_path and not test_minimum_speed"
# Only contains test_server_with_path; tries to connect to apache.org
rm avro/test/test_ipc.py
%pyunittest discover -v
%post
%python_install_alternative avro
@@ -64,9 +72,12 @@ sed -i '1{\@^#!/usr/bin/env python@d}' avro/*.py avro/tether/*.py avro/test/*.py
%postun
%python_uninstall_alternative avro
%pre
%python_libalternatives_reset_alternative avro
%files %{python_files}
%python_alternative %{_bindir}/avro
%{python_sitelib}/avro
%{python_sitelib}/avro-%{version}-py*.egg-info
%{python_sitelib}/avro-%{version}.dist-info
%changelog