roll back the version
This commit is contained in:
parent
794a1e296a
commit
d91131eb67
@ -1,13 +1,7 @@
|
|||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
%if %{with bootstrap}
|
|
||||||
%bcond_with tests
|
|
||||||
%else
|
|
||||||
%bcond_without tests
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-wheel
|
Name: python-wheel
|
||||||
Version: 0.34.2
|
Version: 0.31.1
|
||||||
Release: 1
|
Release: 4
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Built-package format for Python
|
Summary: Built-package format for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -15,13 +9,7 @@ URL: https://github.com/pypa/wheel
|
|||||||
Source0: %{url}/archive/%{version}/wheel-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/wheel-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%if %{with tests}
|
Patch0000: remove-keyrings.alt-dependency.patch
|
||||||
# several tests compile extensions
|
|
||||||
# those tests are skipped if gcc is not found
|
|
||||||
BuildRequires: gcc python3-wheel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%{?python_enable_dependency_generator}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A built-package format for Python.
|
A built-package format for Python.
|
||||||
@ -29,10 +17,26 @@ A wheel is a ZIP-format archive with a specially formatted filename and the
|
|||||||
.whl extension. It is designed to contain all the files for a PEP 376
|
.whl extension. It is designed to contain all the files for a PEP 376
|
||||||
compatible install in a way that is very close to the on-disk format.
|
compatible install in a way that is very close to the on-disk format.
|
||||||
|
|
||||||
|
%package -n python2-wheel
|
||||||
|
Summary: Built-package format for Python
|
||||||
|
BuildRequires: python2-devel python2-setuptools
|
||||||
|
%if ! %{with bootstrap}
|
||||||
|
BuildRequires: python2-pytest python2-pyxdg python2-keyring
|
||||||
|
%endif
|
||||||
|
%{?python_provide:%python_provide python2-wheel}
|
||||||
|
|
||||||
|
%description -n python2-wheel
|
||||||
|
A built-package format for Python.
|
||||||
|
A wheel is a ZIP-format archive with a specially formatted filename and the
|
||||||
|
.whl extension. It is designed to contain all the files for a PEP 376
|
||||||
|
compatible install in a way that is very close to the on-disk format.
|
||||||
|
Python 2 version.
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-wheel
|
%package -n python3-wheel
|
||||||
Summary: Built-package format for Python
|
Summary: Built-package format for Python
|
||||||
BuildRequires: python3-devel python3-setuptools python3-rpm-generators
|
BuildRequires: python3-devel python3-setuptools
|
||||||
%if %{with tests}
|
%if %{without bootstrap}
|
||||||
BuildRequires: python3-pytest python3-pyxdg python3-keyring
|
BuildRequires: python3-pytest python3-pyxdg python3-keyring
|
||||||
%endif
|
%endif
|
||||||
%{?python_provide:%python_provide python3-wheel}
|
%{?python_provide:%python_provide python3-wheel}
|
||||||
@ -56,8 +60,11 @@ A Python wheel of wheel to use with virtualenv.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n wheel-%{version} -p1
|
%autosetup -n wheel-%{version} -p1
|
||||||
|
sed -ie '1d' wheel/{egg2wheel,wininst2wheel}.py
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
@ -69,22 +76,35 @@ A Python wheel of wheel to use with virtualenv.
|
|||||||
%py3_install
|
%py3_install
|
||||||
mv %{buildroot}%{_bindir}/wheel{,-%{python3_version}}
|
mv %{buildroot}%{_bindir}/wheel{,-%{python3_version}}
|
||||||
ln -s wheel-%{python3_version} %{buildroot}%{_bindir}/wheel-3
|
ln -s wheel-%{python3_version} %{buildroot}%{_bindir}/wheel-3
|
||||||
ln -s wheel-3 %{buildroot}%{_bindir}/wheel
|
|
||||||
|
%py2_install
|
||||||
|
mv %{buildroot}%{_bindir}/wheel{,-%{python2_version}}
|
||||||
|
ln -s wheel-%{python2_version} %{buildroot}%{_bindir}/wheel-2
|
||||||
|
ln -s wheel-2 %{buildroot}%{_bindir}/wheel
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
install -d %{buildroot}%{_datadir}/python-wheels
|
install -d %{buildroot}%{_datadir}/python-wheels
|
||||||
install -p dist/wheel-%{version}-py2.py3-none-any.whl -t %{buildroot}%{_datadir}/python-wheels
|
install -p dist/wheel-%{version}-py2.py3-none-any.whl -t %{buildroot}%{_datadir}/python-wheels
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
rm setup.cfg
|
rm setup.cfg
|
||||||
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python2-wheel
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc CHANGES.txt README.rst
|
||||||
|
%{_bindir}/wheel
|
||||||
|
%{_bindir}/wheel-2*
|
||||||
|
%{python2_sitelib}/wheel*
|
||||||
|
|
||||||
%files -n python3-wheel
|
%files -n python3-wheel
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc CHANGES.txt README.rst
|
||||||
%{_bindir}/wheel
|
|
||||||
%{_bindir}/wheel-3*
|
%{_bindir}/wheel-3*
|
||||||
%{python3_sitelib}/wheel*
|
%{python3_sitelib}/wheel*
|
||||||
|
|
||||||
@ -96,8 +116,5 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jul 28 2020 shixuantong<shixuantong@huawei.com> - 0.34.2
|
|
||||||
- update to 0.34-2
|
|
||||||
|
|
||||||
* Mon Dec 2 2019 yangjian<yangjian79@huawei.com> - 1:0.31.1-4
|
* Mon Dec 2 2019 yangjian<yangjian79@huawei.com> - 1:0.31.1-4
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
27
remove-keyrings.alt-dependency.patch
Normal file
27
remove-keyrings.alt-dependency.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
diff -uNr wheel-0.31.1.orig/setup.py wheel-0.31.1/setup.py
|
||||||
|
--- wheel-0.31.1.orig/setup.py 2018-05-13 19:22:12.000000000 +0200
|
||||||
|
+++ wheel-0.31.1/setup.py 2018-07-08 00:32:02.918116087 +0200
|
||||||
|
@@ -39,7 +39,7 @@
|
||||||
|
packages=find_packages(),
|
||||||
|
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
||||||
|
extras_require={
|
||||||
|
- 'signatures': ['keyring', 'keyrings.alt'],
|
||||||
|
+ 'signatures': ['keyring'],
|
||||||
|
'signatures:sys_platform!="win32"': ['pyxdg'],
|
||||||
|
'faster-signatures': ['ed25519ll'],
|
||||||
|
'test': ['pytest >= 3.0.0', 'pytest-cov']
|
||||||
|
diff -uNr wheel-0.31.1.orig/wheel/tool/__init__.py wheel-0.31.1/wheel/tool/__init__.py
|
||||||
|
--- wheel-0.31.1.orig/wheel/tool/__init__.py 2018-05-13 19:22:12.000000000 +0200
|
||||||
|
+++ wheel-0.31.1/wheel/tool/__init__.py 2018-07-08 00:32:21.442263844 +0200
|
||||||
|
@@ -33,10 +33,9 @@
|
||||||
|
try:
|
||||||
|
from ..signatures import keys
|
||||||
|
import keyring
|
||||||
|
- assert keyring.get_keyring().priority
|
||||||
|
except (ImportError, AssertionError):
|
||||||
|
raise WheelError(
|
||||||
|
- "Install wheel[signatures] (requires keyring, keyrings.alt, pyxdg) for signatures.")
|
||||||
|
+ "Install wheel[signatures] (requires keyring, pyxdg) for signatures.")
|
||||||
|
|
||||||
|
return keys.WheelKeys, keyring
|
||||||
|
|
||||||
BIN
wheel-0.31.1.tar.gz
Normal file
BIN
wheel-0.31.1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user