Accepting request 1243134 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1243134
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hpack?expand=0&rev=9
This commit is contained in:
Ana Guerrero 2025-02-05 11:39:54 +00:00 committed by Git OBS Bridge
commit f37ae1ab37
6 changed files with 45 additions and 15 deletions

View File

@ -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

BIN
hpack-4.0.0.tar.gz (Stored with Git LFS)

Binary file not shown.

3
hpack-4.1.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Tue Feb 4 11:51:51 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <dmueller@suse.com>

View File

@ -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 its 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

BIN
test_fixtures.tar.xz (Stored with Git LFS)

Binary file not shown.