forked from pool/python-hpack
- 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
OBS-URL: https://build.opensuse.org/request/show/1243088
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hpack?expand=0&rev=24
68 lines
2.3 KiB
RPMSpec
68 lines
2.3 KiB
RPMSpec
#
|
||
# spec file for package python-hpack
|
||
#
|
||
# 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
|
||
# upon. The license for this file, and modifications and additions to the
|
||
# file, is the same license as for the pristine package itself (unless the
|
||
# license for the pristine package is not an Open Source License, in which
|
||
# case the license is the MIT License). An "Open Source License" is a
|
||
# license that conforms to the Open Source Definition (Version 1.9)
|
||
# published by the Open Source Initiative.
|
||
|
||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||
#
|
||
|
||
|
||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||
%{?sle15_python_module_pythons}
|
||
Name: python-hpack
|
||
Version: 4.1.0
|
||
Release: 0
|
||
Summary: Pure-Python HPACK header compression
|
||
License: MIT
|
||
URL: https://github.com/python-hyper/hpack
|
||
Source0: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz
|
||
# Content of https://github.com/python-hyper/hpack/tree/master/test/test_fixtures
|
||
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
|
||
%python_subpackages
|
||
|
||
%description
|
||
This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use in
|
||
Python programs that implement HTTP/2. It also contains a compatibility layer that
|
||
automatically enables the use of nghttp2 if it’s available.
|
||
|
||
%prep
|
||
%autosetup -p1 -a1 -n hpack-%{version}
|
||
|
||
%build
|
||
export LC_ALL="en_US.UTF-8"
|
||
%pyproject_wheel
|
||
|
||
%install
|
||
export LC_ALL="en_US.UTF-8"
|
||
%pyproject_install
|
||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
||
%check
|
||
%pytest -k "not (test_can_decode_a_story or test_can_decode_a_story_no_huffman or test_can_encode_a_story_with_huffman or test_can_encode_a_story_no_huffman or test_decode_either_succeeds_or_raises_error)"
|
||
|
||
%files %{python_files}
|
||
%license LICENSE
|
||
%doc CHANGELOG.rst CONTRIBUTORS.rst README.rst
|
||
%{python_sitelib}/hpack
|
||
%{python_sitelib}/hpack-%{version}.dist-info
|
||
|
||
%changelog
|