forked from pool/python-HTTPolice
Accepting request 702956 from home:eapodaca:branches:devel:languages:python
- Drop python2 support
- Remove py34-no-singledispatch.patch
- Replace brotlipy dependency with Brotli
- Remove dependancies that are not needed to build.
- Update to v0.8.0
* Changes
+ Dropped Python 2 support. If you need it, use the older versions.
+ HTTPolice no longer requires six nor singledispatch.
+ HTTPolice now pulls in Google's Brotli instead of brotlipy,
but this is merely a packaging change; it can work with either.
+ Notices 1299 and 1300 are no longer reported on Alt-Svc.
OBS-URL: https://build.opensuse.org/request/show/702956
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-HTTPolice?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
920a0435de
commit
4745bd6d48
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-HTTPolice
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -12,42 +12,36 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-HTTPolice
|
||||
Version: 0.7.0
|
||||
Version: 0.8.0
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Validator for HTTP
|
||||
Url: https://github.com/vfaronov/httpolice
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/vfaronov/httpolice
|
||||
Source: https://files.pythonhosted.org/packages/source/H/HTTPolice/HTTPolice-%{version}.tar.gz
|
||||
Patch0: https://github.com/vfaronov/httpolice/commit/4da2bde.patch#/py34-no-singledispatch.patch
|
||||
BuildRequires: %{python_module Brotli >= 1.0.1}
|
||||
BuildRequires: %{python_module bitstring >= 3.1.4}
|
||||
BuildRequires: %{python_module defusedxml >= 0.5.0}
|
||||
BuildRequires: %{python_module dominate >= 2.2.0}
|
||||
BuildRequires: %{python_module lxml >= 4.1.0}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module bitstring >= 3.1.4}
|
||||
BuildRequires: %{python_module brotlipy >= 0.5.1}
|
||||
BuildRequires: %{python_module defusedxml >= 0.5.0}
|
||||
BuildRequires: %{python_module dominate >= 2.2.0}
|
||||
BuildRequires: %{python_module lxml >= 3.6.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six >= 1.10.0}
|
||||
BuildRequires: python2-singledispatch >= 3.4.0.3
|
||||
BuildRequires: python-enum34 >= 1.1.6
|
||||
Requires: python-Brotli >= 1.0.1
|
||||
Requires: python-bitstring >= 3.1.4
|
||||
Requires: python-brotlipy >= 0.5.1
|
||||
Requires: python-defusedxml >= 0.5.0
|
||||
Requires: python-dominate >= 2.2.0
|
||||
Requires: python-lxml >= 3.6.0
|
||||
Requires: python-six >= 1.10.0
|
||||
%ifpython2
|
||||
Requires: python-enum34 >= 1.1.6
|
||||
Requires: python-singledispatch >= 3.4.0.3
|
||||
%endif
|
||||
Requires: python-lxml >= 4.1.0
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -57,7 +51,6 @@ problems in your HTTP server or client.
|
||||
|
||||
%prep
|
||||
%setup -q -n HTTPolice-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export LANG=en_US.UTF-8
|
||||
@@ -70,7 +63,7 @@ export LANG=en_US.UTF-8
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_exec -m pytest -o addopts=-v
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
||||
Reference in New Issue
Block a user