14
0

Accepting request 989021 from home:bnavigator:branches:devel:languages:python

used by setuptools 63 test suite

OBS-URL: https://build.opensuse.org/request/show/989021
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-run?expand=0&rev=1
This commit is contained in:
2022-07-13 18:42:54 +00:00
committed by Git OBS Bridge
commit 764c2574c5
8 changed files with 158 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
path-16.4.0-py3-none-any.whl (Stored with Git LFS) Normal file

Binary file not shown.

BIN
path.py-12.5.0-py3-none-any.whl (Stored with Git LFS) Normal file

Binary file not shown.

3
pip-run-8.8.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:690aa8497ef0ea64f484f815ea3e86647569fbe2ea1feffc8f4d407cb0e2b564
size 28680

6
python-pip-run.changes Normal file
View File

@@ -0,0 +1,6 @@
-------------------------------------------------------------------
Wed Jul 13 14:27:22 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v8.8.1
- Required by setuptools 63 test suite
- Tests use wheels for path and path.py for testing -- not packaged

116
python-pip-run.spec Normal file
View File

@@ -0,0 +1,116 @@
#
# spec file for package python-pip-run
#
# 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-pip-run%{psuffix}
Version: 8.8.1
Release: 0
Summary: Install packages and run Python with them
License: MIT
URL: https://github.com/jaraco/pip-run
Source: https://files.pythonhosted.org/packages/source/p/pip-run/pip-run-%{version}.tar.gz
# Needs the wheels for path and path.py for testing
Source10: https://files.pythonhosted.org/packages/py3/p/path.py/path.py-12.5.0-py3-none-any.whl
Source11: https://files.pythonhosted.org/packages/py3/p/path/path-16.4.0-py3-none-any.whl
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools >= 56}
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
Requires: python-pip >= 19.3
Requires: python-autocommand
Requires: python-path >= 15.1
Requires: python-packaging
Requires(post): update-alternatives
Requires(postun):update-alternatives
%if 0%{?python_version_nodots} < 38
Requires: python-importlib-metadata
%endif
%if %{with test}
BuildRequires: %{python_module pip-run = %{version}}
BuildRequires: %{python_module pytest >= 6}
BuildRequires: %{python_module nbformat}
BuildRequires: %{python_module Pygments}
BuildRequires: ca-certificates
%endif
BuildArch: noarch
%python_subpackages
%description
On-demand temporary package installation for a single interpreter run.
pip-run is not intended to solve production dependency management,
but does aim to address the other, one-off scenarios around dependency management
- trials and experiments
- build setup
- test runners
- just in time script running
- interactive development
- bug triage
pip-run is a compliment to Pip and Virtualenv and Setuptools, intended to more
readily address the on-demand needs.
%prep
%setup -q -n pip-run-%{version}
%if !%{with test}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pip-run
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
mkdir -p wheels
cp %{SOURCE10} %{SOURCE11} wheels/
export PIP_FIND_LINKS=$PWD/wheels/
%pytest -x
%endif
%post
%python_install_alternative pip-run
%postun
%python_uninstall_alternative pip-run
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.rst CHANGES.rst
%python_alternative %{_bindir}/pip-run
%{python_sitelib}/pip-run.py*
%pycache_only %{python_sitelib}/__pycache__/pip-run*.pyc
%{python_sitelib}/pip_run
%{python_sitelib}/pip_run-%{version}*-info
%endif
%changelog