15
0
forked from pool/python-hpack
Files
python-hpack/python-hpack.spec
Dirk Mueller f85a8842cf Accepting request 393287 from home:ocfreitag:branches:devel:languages:python
- Fixed messy changelog. 

- Update to version 2.2.0:
  API Changes (Backward Compatible)
  * Added HeaderTuple and NeverIndexedHeaderTuple classes that signal
    whether a given header field may ever be indexed in HTTP/2 header
    compression.
  * Changed Decoder.decode() to return the newly added HeaderTuple 
    class and subclass. These objects behave like two-tuples, so this 
    change does not break working code.
  Bugfixes
  * Improve Huffman decoding speed by 4x using an approach borrowed 
    from nghttp2.
  * Improve HPACK decoding speed by 10% by caching header table sizes.
- Bugfixes since 2.1.1:
  * When passing a dictionary or dictionary subclass to Encoder.encode, 
    HPACK now ensures that HTTP/2 special headers (headers whose names 
    begin with `:` characters) appear first in the header block.
- Changes in 2.1.0 (2016-02-02)
  API Changes (Backward Compatible)
  * Added new InvalidTableIndex exception, a subclass of 
    HPACKDecodingError.
  * Instead of throwing IndexError when encountering invalid encoded 
    integers HPACK now throws HPACKDecodingError.
  * Instead of throwing UnicodeDecodeError when encountering headers 
    that are not UTF-8 encoded, HPACK now throws HPACKDecodingError.
  * Instead of throwing IndexError when encountering invalid table 
    offsets, HPACK now throws InvalidTableIndex.
  * Added raw flag to decode, allowing decode to return bytes instead
    of attempting to decode the headers as UTF-8.

OBS-URL: https://build.opensuse.org/request/show/393287
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hpack?expand=0&rev=3
2016-05-06 07:13:44 +00:00

65 lines
2.0 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#
# spec file for package python-hpack
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: python-hpack
Version: 2.2.0
Release: 0
Summary: Pure-Python HPACK header compression
License: MIT
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/hpack
Source: https://pypi.python.org/packages/source/h/hpack/hpack-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%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 its available.
%prep
%setup -q -n hpack-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root %{buildroot}
# cleanup
rm -rf %{buildroot}%{python_sitelib}/test
rm -rf %{buildroot}%{python_sitelib}/hpack/__pycache__
%fdupes %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/hpack
%{python_sitelib}/hpack-%{version}*egg*
%doc LICENSE HISTORY.rst CONTRIBUTORS.rst README.rst
%changelog