!3 Drop python2 support
From: @si-gui Reviewed-by: @ultra_planet Signed-off-by: @ultra_planet
This commit is contained in:
commit
3a79e741ac
@ -1,14 +1,12 @@
|
||||
Name: python-h2
|
||||
Version: 3.1.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: A HTTP/2 protocol stack for Python
|
||||
License: MIT
|
||||
URL: http://hyper.rtfd.org
|
||||
Source0: https://files.pythonhosted.org/packages/c9/08/109f814130177273afc06b1f9851084397c337b09cdc6f17172c00f3d02b/h2-3.1.0.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: (python2dist(hpack) >= 2.3 with python2dist(hpack) < 4) (python2dist(hyperframe) with python2dist(hyperframe) < 6)
|
||||
BuildRequires: python2-devel python2dist(setuptools) python2dist(pytest) python2dist(hypothesis)
|
||||
BuildRequires: (python3dist(hpack) >= 2.3 with python3dist(hpack) < 4) (python3dist(hyperframe) with python3dist(hyperframe) < 6)
|
||||
BuildRequires: python3-devel python3dist(setuptools) python3dist(sphinx) python3dist(pytest) python3dist(hypothesis)
|
||||
BuildRequires: js-jquery js-underscore
|
||||
@ -21,16 +19,6 @@ protocol stack. It is written from the ground up to be embeddable in
|
||||
whatever program you choose to use, ensuring that you can speak HTTP/2
|
||||
regardless of your programming paradigm.
|
||||
|
||||
%package -n python2-h2
|
||||
Summary: A HTTP/2 protocol stack for Python 2
|
||||
%{?python_provide:%python_provide python2-h2}
|
||||
|
||||
%description -n python2-h2
|
||||
This repository contains a pure-Python implementation of a HTTP/2
|
||||
protocol stack. It is written from the ground up to be embeddable in
|
||||
whatever program you choose to use, ensuring that you can speak HTTP/2
|
||||
regardless of your programming paradigm.
|
||||
|
||||
%package -n python3-h2
|
||||
Summary: A HTTP/2 protocol stack for Python 3
|
||||
%{?python_provide:%python_provide python3-h2}
|
||||
@ -57,7 +45,6 @@ The python-h2-help package contains related documents.
|
||||
rm -rf h2.egg-info
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
|
||||
@ -69,18 +56,11 @@ ln -s /usr/share/javascript/jquery/3.2.1/jquery.min.js html/_static/jquery.js
|
||||
ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%{__python2} -m pytest
|
||||
%{__python3} -m pytest
|
||||
|
||||
%files -n python2-h2
|
||||
%doc README.rst LICENSE
|
||||
%{python2_sitelib}/h2
|
||||
%{python2_sitelib}/h2-%{version}-py?.?.egg-info
|
||||
|
||||
%files -n python3-h2
|
||||
%doc README.rst LICENSE
|
||||
%{python3_sitelib}/h2
|
||||
@ -90,6 +70,9 @@ ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
|
||||
%doc html LICENSE
|
||||
|
||||
%changelog
|
||||
* Mon Oct 26 2020 maminjie <maminjie1@huawei.com> - 3.1.0-5
|
||||
- Drop python2 support
|
||||
|
||||
* Tue Mar 17 2020 yanglijin <yanglijin@huawei.com> - 3.1.0-4
|
||||
- modify buildrequires
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user