Accepting request 1218881 from devel:languages:python

- update to 5.0:
  * Add final support for Python 3.13.
  * Drop support for Python 3.7.
  * Drop support for Python 2.7, 3.5, 3.6.
  * Drop support for deprecated python setup.py test..
  * Add support for Python 3.12.
  * Add preliminary support for Python 3.13a2.
  * Add support for Python 3.9, 3.10, 3.11.

OBS-URL: https://build.opensuse.org/request/show/1218881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-transaction?expand=0&rev=28
This commit is contained in:
Ana Guerrero 2024-10-29 13:35:31 +00:00 committed by Git OBS Bridge
commit 39c24d7770
4 changed files with 24 additions and 11 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Oct 28 22:11:22 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.0:
* Add final support for Python 3.13.
* Drop support for Python 3.7.
* Drop support for Python 2.7, 3.5, 3.6.
* Drop support for deprecated python setup.py test..
* Add support for Python 3.12.
* Add preliminary support for Python 3.13a2.
* Add support for Python 3.9, 3.10, 3.11.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 9 13:18:19 UTC 2023 - ecsos <ecsos@opensuse.org> Fri Jun 9 13:18:19 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-transaction # spec file for package python-transaction
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,13 +18,15 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-transaction Name: python-transaction
Version: 3.0.1 Version: 5.0
Release: 0 Release: 0
Summary: Transaction management for Python Summary: Transaction management for Python
License: ZPL-2.1 License: ZPL-2.1
URL: https://github.com/zopefoundation/transaction URL: https://github.com/zopefoundation/transaction
Source: https://files.pythonhosted.org/packages/source/t/transaction/transaction-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/t/transaction/transaction-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-zope.interface Requires: python-zope.interface
@ -46,24 +48,23 @@ presented in detail through examples of a sample data manager in
transaction.tests.test_SampleDataManager. transaction.tests.test_SampleDataManager.
%prep %prep
%setup -q -n transaction-%{version} %autosetup -p1 -n transaction-%{version}
rm -rf transaction.egg-info rm -rf transaction.egg-info
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# https://github.com/zopefoundation/zdaemon/issues/28#issuecomment-1102754818
sed -i 's:import mock:from unittest import mock:' src/transaction/tests/test__manager.py
%pytest %pytest
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc CHANGES.rst COPYRIGHT.txt README.rst %doc CHANGES.rst COPYRIGHT.txt README.rst
%{python_sitelib}/* %{python_sitelib}/transaction
%{python_sitelib}/transaction-%{version}.dist-info
%changelog %changelog

BIN
transaction-3.0.1.tar.gz (Stored with Git LFS)

Binary file not shown.

3
transaction-5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:106e7bd782bcc0cb5119fc9225b0c9a71dfc53adb938be905223adaef22b1174
size 87121