2019-02-20 12:37:46 +00:00
#
# spec file for package python-pip-api
#
2023-02-07 05:19:15 +00:00
# Copyright (c) 2023 SUSE LLC
2019-02-20 12:37:46 +00:00
#
# 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/
#
2023-06-14 06:30:26 +00:00
%{?sle15_python_module_pythons}
2019-02-20 12:37:46 +00:00
Name : python-pip-api
2023-02-07 05:19:15 +00:00
Version : 0.0.30
2019-02-20 12:37:46 +00:00
Release : 0
Summary : The official unofficial pip API
2019-02-22 09:50:06 +00:00
License : Apache-2.0
2019-07-23 11:27:59 +00:00
URL : https://github.com/di/pip-api
2023-02-07 05:19:15 +00:00
Source0 : https://github.com/di/pip-api/releases/download/%{version} /pip-api-%{version} .tar.gz
Source1 : test-data.tar.gz
# PATCH-FIX-OPENSUSE We do not want a vendored packaging.
2019-06-07 15:30:24 +00:00
Patch0 : unvendor.patch
2023-02-07 05:19:15 +00:00
# PATCH-FIX-OPENSUSE Remove a test parameter that is broken with our shipped
# packaging.
Patch1 : support-packaging-changes.patch
2023-06-14 06:30:26 +00:00
BuildRequires : %{python_module packaging >= 21.0}
BuildRequires : %{python_module pip >= 22.1}
2019-02-22 09:50:06 +00:00
BuildRequires : %{python_module pretend}
2023-06-14 06:30:26 +00:00
BuildRequires : %{python_module pyparsing >= 2.4.7}
2019-02-22 09:50:06 +00:00
BuildRequires : %{python_module pytest}
2019-02-20 12:37:46 +00:00
BuildRequires : %{python_module setuptools}
2019-02-22 09:50:06 +00:00
BuildRequires : %{python_module virtualenv}
2019-02-20 12:37:46 +00:00
BuildRequires : fdupes
BuildRequires : python-rpm-macros
Requires : python-pip
BuildArch : noarch
%python_subpackages
%description
The official unofficial pip API.
%prep
2023-02-07 05:19:15 +00:00
%autosetup -p1 -a 1 -n pip-api-%{version}
2019-06-07 15:30:24 +00:00
rm -Rf ./pip_api/_vendor
2019-02-20 12:37:46 +00:00
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot} %{$python_sitelib}
2019-02-22 09:50:06 +00:00
%check
2023-06-02 04:40:14 +00:00
# Broken with current packaging ; requires network
2023-11-24 14:10:40 +00:00
%pytest -k 'not (test_installed_distributions_legacy_version or test_installed_distributions or test_invoke_install or test_invoke_uninstall or test_isolation or test_all_the_right_pips or test_version)'
2019-02-22 09:50:06 +00:00
2019-02-20 12:37:46 +00:00
%files %{python_files}
%doc README.md
2019-02-22 09:50:06 +00:00
%license LICENSE
2023-02-07 05:19:15 +00:00
%{python_sitelib} /pip_api
%{python_sitelib} /pip_api*info
2019-02-20 12:37:46 +00:00
%changelog