diff --git a/.gitignore b/.gitignore index ac9532c..f98ac63 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /fastbencode-0.0.9.tar.gz +/fastbencode-0.2.tar.gz diff --git a/Skip-failing-test-with-Python-3.12.patch b/Skip-failing-test-with-Python-3.12.patch deleted file mode 100644 index 2f72d46..0000000 --- a/Skip-failing-test-with-Python-3.12.patch +++ /dev/null @@ -1,25 +0,0 @@ -From d0be000759a77a4a628dca66660362ee8c65c256 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= -Date: Mon, 10 Jul 2023 16:52:44 +0200 -Subject: [PATCH] Skip failing test with Python 3.12 - ---- - fastbencode/tests/test_bencode.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/fastbencode/tests/test_bencode.py b/fastbencode/tests/test_bencode.py -index 267d02b..c4d3c92 100644 ---- a/fastbencode/tests/test_bencode.py -+++ b/fastbencode/tests/test_bencode.py -@@ -293,6 +293,8 @@ class TestBencodeDecode(TestCase): - import platform - if platform.python_implementation() == 'PyPy': - self.skipTest('recursion not an issue on pypy') -+ if sys.version_info >= (3,12): -+ self.skipTest('The test fails with Python 3.12') - with RecursionLimit(): - self._run_check_error(RuntimeError, (b"l" * 100) + (b"e" * 100)) - --- -2.40.1 - diff --git a/python-fastbencode.spec b/python-fastbencode.spec index 51b45aa..644475d 100644 --- a/python-fastbencode.spec +++ b/python-fastbencode.spec @@ -1,18 +1,15 @@ %global pypi_name fastbencode Name: python-%{pypi_name} -Version: 0.0.9 -Release: 6%{?dist} +Version: 0.2 +Release: 1%{?dist} Summary: Implementation of bencode with optional fast C extensions -License: GPLv2+ and MIT +License: GPL-2.0-or-later AND MIT #fastbencode is licensed under GPLv2+ #_bencode_py.py is licensed under MIT URL: https://github.com/breezy-team/fastbencode Source: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz -# Skip test failing with Python 3.12 -# Upstream issue: https://github.com/breezy-team/fastbencode/issues/23 -Patch: Skip-failing-test-with-Python-3.12.patch BuildRequires: python3-devel BuildRequires: python3dist(cython) >= 0.29 @@ -47,7 +44,7 @@ Summary: %{summary} %py3_install %check -%{python3} setup.py test +%{py3_test_envvars} %{python3} -m unittest %files -n python3-%{pypi_name} %license COPYING @@ -56,6 +53,10 @@ Summary: %{summary} %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog +* Tue Nov 21 2023 Ondřej Pohořelský - 0.2-1 +- Update to 0.2 +- Convert license to SPDX format + * Fri Jul 21 2023 Fedora Release Engineering - 0.0.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index bbe2dbe..4499421 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fastbencode-0.0.9.tar.gz) = b81d4094b8235ffdd8225e714ad0a5fd3008b7518933b5c02391f47bcad91f32adccfaaa9aa9eee666125c060c7e57969c082443a764d00b31e70a39eef04f49 +SHA512 (fastbencode-0.2.tar.gz) = 8d2ef04676ef4c7cba858d5c101b709ab056e7e3c4b2355c658b56c9169beda119361c1d723eca27386935be9ce0cc148dcd4798df8eaabc4c220f6a4bd2e7bc