From b1454c3dfb48b1dc6c2c382ee242273baa430b61d3f229607de4a8d1efb16037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Sep 2024 16:24:28 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pytest-subprocess revision 4b5849cea805642b672d01d8e95715a2 --- .gitattributes | 23 ++++++++++ _service | 16 +++++++ pytest-subprocess-1.5.0.tar.gz | 3 ++ python-pytest-subprocess.changes | 29 +++++++++++++ python-pytest-subprocess.spec | 73 ++++++++++++++++++++++++++++++++ tests.tar.xz | 3 ++ 6 files changed, 147 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 pytest-subprocess-1.5.0.tar.gz create mode 100644 python-pytest-subprocess.changes create mode 100644 python-pytest-subprocess.spec create mode 100644 tests.tar.xz 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/_service b/_service new file mode 100644 index 0000000..0f63bef --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git + https://github.com/aklajnert/pytest-subprocess + 1.4.2 + tests + tests + _none_ + + + xz + tests.tar + + + + diff --git a/pytest-subprocess-1.5.0.tar.gz b/pytest-subprocess-1.5.0.tar.gz new file mode 100644 index 0000000..6d3849b --- /dev/null +++ b/pytest-subprocess-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7693b96f588f39b84c7b2b5c04287459246dfae6be1dd4098937a728ad4fbe3 +size 24141 diff --git a/python-pytest-subprocess.changes b/python-pytest-subprocess.changes new file mode 100644 index 0000000..c8f9f5e --- /dev/null +++ b/python-pytest-subprocess.changes @@ -0,0 +1,29 @@ +------------------------------------------------------------------- +Mon Apr 8 10:40:20 UTC 2024 - Dirk Müller + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Thu Apr 6 07:14:12 UTC 2023 - Steve Kowalik + +- Update to 1.5.0: + * #109: Match also os.PathLike. + * #105: Add program matcher. + +------------------------------------------------------------------- +Fri Jan 27 18:22:44 UTC 2023 - Ben Greiner + +- Clean out recommendations and test requirements +- Move to PEP517 build + +------------------------------------------------------------------- +Thu Jan 26 14:08:30 UTC 2023 - Matej Cepl + +- Simplify %%prep. + +------------------------------------------------------------------- +Wed Jan 25 09:15:32 UTC 2023 - Atri Bhattacharya + +- Initial package. +- Include tests.tar.xz via _service: pulls in tests from github as + these are not bundled in original source tarball. diff --git a/python-pytest-subprocess.spec b/python-pytest-subprocess.spec new file mode 100644 index 0000000..afece12 --- /dev/null +++ b/python-pytest-subprocess.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-pytest-subprocess +# +# Copyright (c) 2024 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-subprocess +Version: 1.5.0 +Release: 0 +Summary: A plugin to fake subprocess for pytest +License: MIT +URL: https://github.com/aklajnert/pytest-subprocess +Source0: https://files.pythonhosted.org/packages/source/p/pytest-subprocess/pytest-subprocess-%{version}.tar.gz +Source1: tests.tar.xz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest >= 4.0.0 +BuildArch: noarch +# SECTION Test requirements +BuildRequires: %{python_module anyio} +BuildRequires: %{python_module Pygments >= 2} +BuildRequires: %{python_module docutils >= 0.12} +BuildRequires: %{python_module pytest >= 4} +BuildRequires: %{python_module pytest-asyncio >= 0.15.1} +BuildRequires: %{python_module pytest-rerunfailures} +# /SECTION +%python_subpackages + +%description +A pytest plugin to fake subprocess for pytest. The plugin adds the +``fake_process`` fixture (and ``fp`` as an alias). It can be used it to +register subprocess results so you won't need to rely on the real processes. + +%prep +%autosetup -p1 -a1 -n pytest-subprocess-%{version} + +chmod -x LICENSE README.rst pytest_subprocess/py.typed pytest_subprocess.egg-info/* +sed -Ei "s/\r$//" README.rst + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Docs dir is missing from tarball +%pytest -k "not test_documentation" + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/pytest_subprocess/ +%{python_sitelib}/pytest_subprocess-%{version}.dist-info + +%changelog diff --git a/tests.tar.xz b/tests.tar.xz new file mode 100644 index 0000000..933204c --- /dev/null +++ b/tests.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abebb721e41d8994980e72f7c6a51cf3459e4ed3a3d2d6149d75c79ad74a03fc +size 9660