SHA256
1
0
forked from pool/python-wheel
python-wheel/python-wheel.spec
Tomáš Chvátal 57ad5ed08c Accepting request 611769 from home:apersaud:branches:devel:languages:python
- specfile:
  * update copyright year
  * removed python-devel python-jsonschema
- update to version 0.31.1:
  * Fixed arch as "None" when converting eggs to wheels
- changes from version 0.31.0:
  * Fixed displaying of errors on Python 3
  * Fixed single digit versions in wheel files not being properly
    recognized
  * Fixed wrong character encodings being used (instead of UTF-8) to
    read and write "RECORD" (this sometimes crashed bdist_wheel too)
  * Enabled Zip64 support in wheels by default
  * Metadata-Version is now 2.1
  * Dropped DESCRIPTION.rst and metadata.json from the list of
    generated files
  * Dropped support for the non-standard, undocumented
    "provides-extra" and "requires-dist" keywords in setup.cfg
    metadata
  * Deprecated all wheel signing and signature verification commands
  * Removed the (already defunct) "tool" extras from setup.py

OBS-URL: https://build.opensuse.org/request/show/611769
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wheel?expand=0&rev=26
2018-05-24 06:40:53 +00:00

109 lines
3.6 KiB
RPMSpec

#
# spec file for package python-wheel
#
# Copyright (c) 2018 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{!?license: %global license %doc}
Name: python-wheel
Version: 0.31.1
Release: 0
Summary: A built-package format for Python
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 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
BuildRequires: %{python_module cov-core >= 1.6}
BuildRequires: %{python_module coverage}
# 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-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pyxdg}
# /SECTION
%python_subpackages
%description
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. Many packages will be properly installed with only the "Unpack"
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}
sed -i '1s/^#!.*//' wheel/wininst2wheel.py wheel/egg2wheel.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/wheel
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LC_ALL=en_US.utf8
# Requires keyrings.alt
rm tests/test_tool.py
%{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}
%post
%python_install_alternative wheel
%postun
%python_uninstall_alternative wheel
%files %{python_files}
%doc CHANGES.txt README.rst
%license LICENSE.txt
%python_alternative %{_bindir}/wheel
%{python_sitelib}/wheel-%{version}-py%{python_version}.egg-info
%{python_sitelib}/wheel/
%changelog