commit 764c2574c5ce594e67f419d7cd4c9268cf3a8d9523c8e51479a0c7c1c70fc5d6 Author: Matej Cepl Date: Wed Jul 13 18:42:54 2022 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/path-16.4.0-py3-none-any.whl b/path-16.4.0-py3-none-any.whl new file mode 100644 index 0000000..e4af929 --- /dev/null +++ b/path-16.4.0-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e539cfeebd8eaddbeed7e42d0beedba00f15a931675dd49d35ee9863bcc166a +size 26159 diff --git a/path.py-12.5.0-py3-none-any.whl b/path.py-12.5.0-py3-none-any.whl new file mode 100644 index 0000000..4473035 --- /dev/null +++ b/path.py-12.5.0-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a43e82eb2c344c3fd0b9d6352f6b856f40b8b7d3d65cc05978b42c3715668496 +size 2251 diff --git a/pip-run-8.8.1.tar.gz b/pip-run-8.8.1.tar.gz new file mode 100644 index 0000000..a92ba62 --- /dev/null +++ b/pip-run-8.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:690aa8497ef0ea64f484f815ea3e86647569fbe2ea1feffc8f4d407cb0e2b564 +size 28680 diff --git a/python-pip-run.changes b/python-pip-run.changes new file mode 100644 index 0000000..2137590 --- /dev/null +++ b/python-pip-run.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Jul 13 14:27:22 UTC 2022 - Ben Greiner + +- Initial specfile for v8.8.1 +- Required by setuptools 63 test suite +- Tests use wheels for path and path.py for testing -- not packaged diff --git a/python-pip-run.spec b/python-pip-run.spec new file mode 100644 index 0000000..d8893ae --- /dev/null +++ b/python-pip-run.spec @@ -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