diff --git a/healthcheck.patch b/healthcheck.patch index 82cccdd..18cc6ca 100644 --- a/healthcheck.patch +++ b/healthcheck.patch @@ -1,6 +1,7 @@ ---- a/test/test_hpack.py -+++ b/test/test_hpack.py -@@ -2,7 +2,7 @@ +diff -Nru hpack-4.1.0.orig/tests/test_hpack.py hpack-4.1.0/tests/test_hpack.py +--- hpack-4.1.0.orig/tests/test_hpack.py 2024-11-23 09:35:36.000000000 +0100 ++++ hpack-4.1.0/tests/test_hpack.py 2025-02-04 12:22:54.679696648 +0100 +@@ -1,7 +1,7 @@ import itertools import pytest @@ -9,7 +10,7 @@ from hypothesis.strategies import text, binary, sets, one_of from hpack import ( -@@ -760,6 +760,7 @@ class TestDictToIterable: +@@ -767,6 +767,7 @@ binary().filter(lambda k: k and not k.startswith(b':')) ) @@ -17,7 +18,7 @@ @given( special_keys=sets(keys), boring_keys=sets(keys), -@@ -797,6 +798,7 @@ class TestDictToIterable: +@@ -804,6 +805,7 @@ assert special_keys == received_special assert boring_keys == received_boring diff --git a/hpack-4.0.0.tar.gz b/hpack-4.0.0.tar.gz deleted file mode 100644 index 1540d4f..0000000 --- a/hpack-4.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc41de0c63e687ebffde81187a948221294896f6bdc0ae2312708df339430095 -size 49117 diff --git a/hpack-4.1.0.tar.gz b/hpack-4.1.0.tar.gz new file mode 100644 index 0000000..a705585 --- /dev/null +++ b/hpack-4.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca +size 51276 diff --git a/python-hpack.changes b/python-hpack.changes index 8a1bb6e..4f9fb12 100644 --- a/python-hpack.changes +++ b/python-hpack.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Tue Feb 4 11:51:51 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 4.1.0 + * API Changes (Backward Incompatible)** + - Support for Python 3.6 has been removed. + - Support for Python 3.7 has been removed. + - Support for Python 3.8 has been removed. + - Renamed `InvalidTableIndex` exception to `InvalidTableIndexError`. + * API Changes (Backward Compatible)** + - Support for Python 3.9 has been added. + - Support for Python 3.10 has been added. + - Support for Python 3.11 has been added. + - Support for Python 3.12 has been added. + - Support for Python 3.13 has been added. + - Optimized bytes encoding of headers. + - Updated packaging and testing infrastructure. + - Code cleanup and linting. + - Added type hints. +- Refresh healthcheck.patch +- Refresh test_fixtures.tar.xz +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install + * Update name for dist directory in %files section + ------------------------------------------------------------------- Fri Apr 21 12:26:14 UTC 2023 - Dirk Müller diff --git a/python-hpack.spec b/python-hpack.spec index 91f3673..66f8a93 100644 --- a/python-hpack.spec +++ b/python-hpack.spec @@ -1,7 +1,7 @@ # # spec file for package python-hpack # -# 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-hpack -Version: 4.0.0 +Version: 4.1.0 Release: 0 Summary: Pure-Python HPACK header compression License: MIT @@ -29,8 +29,10 @@ Source0: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{v Source1: test_fixtures.tar.xz Patch0: healthcheck.patch BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -46,11 +48,11 @@ automatically enables the use of nghttp2 if it’s available. %build export LC_ALL="en_US.UTF-8" -%python_build +%pyproject_wheel %install export LC_ALL="en_US.UTF-8" -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,6 +62,6 @@ export LC_ALL="en_US.UTF-8" %license LICENSE %doc CHANGELOG.rst CONTRIBUTORS.rst README.rst %{python_sitelib}/hpack -%{python_sitelib}/hpack-%{version}-py%{python_version}.egg-info +%{python_sitelib}/hpack-%{version}.dist-info %changelog diff --git a/test_fixtures.tar.xz b/test_fixtures.tar.xz index ea6881b..9c67886 100644 --- a/test_fixtures.tar.xz +++ b/test_fixtures.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:588e1c61d6d42ade263e6282b6fbcd6ff26b9dc8ba1da28f55a56fc51b70e8c0 -size 1750372 +oid sha256:565212937473caa4df7793d3cb3d5145f3703b17380ec371f4c74f93d1a3ae06 +size 2137208