forked from pool/python-pip-api
* Support editable project location (#148) * Do not treat `--trusted-host` as a requirement (#136) * Expose whether a requirement is editable (#131) * Use correct long flag for requirements (#118) * Support for hashed requirements (#126) * Drop support for Python 3.6, test against pip==22.0.x (#127) * Pass PIP_DISABLE_PIP_VERSION_CHECK to all invocations (#114) * Support the --path parameter when calling pip list (#112) * Add support for parsing URL requirements (#109) * Allow installed_distributions to be filtered for global distributions (#103) * Support Python 3.10 * Allow requirement markers to be parsed (#99) * Use pip list's JSON output for installed_distributions (#93) * Drop support for Python 3.5 (#94) * Add type hints (#97) * Ensure environment vars are passed to subprocess call (#68) * Drop support for Python 2.7 * Add experimental PEP 650 support * Fix issue with handling LegacyVersions (#66) * Support Python 3.9 - Add patch support-packaging-changes.patch: * Drop a test parameter that doesn't work with our version of packaging. - Include non-shipped test data as test-data.tar.gz. - Switch to GitHub tarball for tests. - Refresh unvendor.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-api?expand=0&rev=14
69 lines
2.0 KiB
RPMSpec
69 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-pip-api
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
Name: python-pip-api
|
|
Version: 0.0.30
|
|
Release: 0
|
|
Summary: The official unofficial pip API
|
|
License: Apache-2.0
|
|
URL: https://github.com/di/pip-api
|
|
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.
|
|
Patch0: unvendor.patch
|
|
# PATCH-FIX-OPENSUSE Remove a test parameter that is broken with our shipped
|
|
# packaging.
|
|
Patch1: support-packaging-changes.patch
|
|
BuildRequires: %{python_module packaging >= 20.3}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pretend}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module virtualenv}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pip
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
The official unofficial pip API.
|
|
|
|
%prep
|
|
%autosetup -p1 -a 1 -n pip-api-%{version}
|
|
rm -Rf ./pip_api/_vendor
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# Broken with current packaging
|
|
%pytest -k 'not test_installed_distributions_legacy_version'
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/pip_api
|
|
%{python_sitelib}/pip_api*info
|
|
|
|
%changelog
|