forked from pool/python-wheel
- Reduce build requires and recommends to what is really needed
(hint: almost nothing) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wheel?expand=0&rev=41
This commit is contained in:
parent
89d57aa68f
commit
576c33df63
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 14 08:59:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Reduce build requires and recommends to what is really needed
|
||||
(hint: almost nothing)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 15 20:46:24 UTC 2019 - Jonathan Harker <jharker@suse.com>
|
||||
|
||||
|
@ -25,25 +25,14 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pypa/wheel
|
||||
Source: https://github.com/pypa/wheel/archive/%{version}.tar.gz#/wheel-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest >= 3.0.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-dirspec
|
||||
Recommends: python-ed25519ll
|
||||
Recommends: python-keyring
|
||||
Recommends: python-keyrings.alt
|
||||
Recommends: python-pyxdg
|
||||
BuildArch: noarch
|
||||
# SECTION test
|
||||
# Not compatible currently, see https://github.com/jaraco/keyrings.alt/issues/20
|
||||
#BuildRequires: %%{python_module keyrings.alt}
|
||||
BuildRequires: %{python_module keyring}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pyxdg}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -57,23 +46,9 @@ step (simply extracting the file onto sys.path), and the unpacked archive
|
||||
preserves enough information to "Spread" (copy data and scripts to their
|
||||
final locations) at any later time.
|
||||
|
||||
The wheel project provides a bdist_wheel command for setuptools
|
||||
(requires distribute >= 0.6.34). Wheel files can be
|
||||
installed with a newer pip from https://github.com/pypa/pip
|
||||
or with wheel's own command line utility.
|
||||
|
||||
The wheel documentation is at http://wheel.rtfd.org/. The
|
||||
file format is documented in PEP 427
|
||||
(http://www.python.org/dev/peps/pep-0427/).
|
||||
|
||||
The reference implementation is at http://bitbucket.org/dholth/wheel/
|
||||
|
||||
%prep
|
||||
%setup -q -n wheel-%{version}
|
||||
# Remove addopts as it requires pytest-cov. The reported coverage is not
|
||||
# nearly near 100%, and setup.cfg doesnt provide a minimum acceptable
|
||||
# coverage percentage, so coverage is not a metric which can be used
|
||||
# by automated QA to determine acceptance of the package.
|
||||
# Remove addopts as it requires pytest-cov
|
||||
sed -i '/addopts = /d' setup.cfg
|
||||
|
||||
%build
|
||||
@ -86,9 +61,8 @@ sed -i '/addopts = /d' setup.cfg
|
||||
|
||||
%check
|
||||
export LC_ALL=en_US.utf8
|
||||
%{python_expand rm -rf _build.python2 _build.python3
|
||||
PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
|
||||
rm -rf %{buildroot}%{$python_sitelib}/wheel/test/headers.dist}
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative wheel
|
||||
|
Loading…
Reference in New Issue
Block a user