Sync from SUSE:SLFO:Main python-roman revision d1a82fba9597880e7b306457ba142491

This commit is contained in:
2025-06-27 15:54:55 +02:00
parent c9410112cb
commit 65c044f660
4 changed files with 30 additions and 13 deletions

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri May 9 05:17:15 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 5.0:
* Drop support for Python 3.7, 3.8.
* Add support for lower case roman numerals.
* Remove overlooked mentions of the Python 2.1.1 license
* Add support for Python 3.12 and 3.13.
* Change license to the Zope Public License (ZPL) version 2.1
* Add support for Python 3.10, 3.11.
* Drop support for Python 2.7, 3.5, 3.6.
- Switch to pyproject macros.
-------------------------------------------------------------------
Fri Apr 21 12:33:24 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-roman
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,19 +17,22 @@
%define packagename roman
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-roman
Version: 3.3
Version: 5.0
Release: 0
Summary: Integer to Roman numerals converter
License: Python-2.0
Group: Development/Languages/Python
License: ZPL-2.1
URL: https://github.com/zopefoundation/roman
Source: https://files.pythonhosted.org/packages/source/r/roman/%{packagename}-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -41,10 +44,10 @@ This module converts from and to Roman numerals. It can convert numbers from
%setup -q -n %{packagename}-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/%{packagename}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%prepare_alternative %{packagename}
@@ -59,9 +62,10 @@ This module converts from and to Roman numerals. It can convert numbers from
%pyunittest discover -v src
%files %{python_files}
%doc CHANGES.txt
%pycache_only %{python_sitelib}/__pycache__/%{packagename}*
%{python_sitelib}/*egg-info/
%doc README.rst CHANGES.rst
%license LICENSE.txt
%pycache_only %{python_sitelib}/__pycache__/%{packagename}*pyc
%{python_sitelib}/%{packagename}-%{version}.dist-info
%{python_sitelib}/%{packagename}.py
%python_alternative %{_bindir}/roman

BIN
roman-3.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
roman-5.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.