- Update to Pip_Shims 0.7.3 (2022-07-07) Trivial Make the packaging imports easier to patch out to vendor'd packaging lib. #82 - Update to Pip_Shims 0.7.2 (2022-06-29) Features Resolve issue of build_tracker being None at runtime with pip>=22.1 when using pip_shims. #81 - Update to Pip_Shims 0.7.1 (2022-06-29) Bug Fixes Added support for new pip==22.1.x required make_preparer arg check_build_deps which defaults to False. #80 OBS-URL: https://build.opensuse.org/request/show/1008040 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-shims?expand=0&rev=18
72 lines
2.3 KiB
RPMSpec
72 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-pip-shims
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%global skip_python2 1
|
|
Name: python-pip-shims
|
|
Version: 0.7.3
|
|
Release: 0
|
|
Summary: Compatibility shims for pip versions 8 thru current
|
|
License: ISC
|
|
URL: https://github.com/sarugaku/pip-shims
|
|
Source: https://github.com/sarugaku/pip-shims/archive/%{version}.tar.gz#/pip-shims-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pip >= 21.0
|
|
Requires: python-setuptools
|
|
Requires: python-wheel
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pip >= 21}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module wheel}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Compatibility shims for pip versions 8 thru current.
|
|
|
|
%prep
|
|
%setup -q -n pip-shims-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# Skip three online tests
|
|
# Some skipped tests fail because of missing git, however
|
|
# adding git only causes failure to fetch repositories.
|
|
# The tests are highly tied to API changes in pip
|
|
# but they do not factualy test if the tool behave
|
|
# so just skip them instead of having to patch them with
|
|
# each pip release
|
|
%pytest -k 'not (test_resolution or test_wheelbuilder or test_resolve or test_get_packagefinder or test_build_wheel)'
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst CHANGELOG.rst docs/*.rst
|
|
%{python_sitelib}/pip_shims
|
|
%{python_sitelib}/pip_shims-%{version}*info
|
|
|
|
%changelog
|