Sync from SUSE:SLFO:Main python-pytest-fixture-config revision 732e3c28b284a063bb3a0a779bb242a3

This commit is contained in:
Adrian Schröter 2024-05-03 22:23:07 +02:00
commit 178152bf68
5 changed files with 133 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

BIN
pytest-fixture-config-1.7.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,18 @@
Index: pytest-fixture-config-1.7.0/tests/unit/test_fixture_config.py
===================================================================
--- pytest-fixture-config-1.7.0.orig/tests/unit/test_fixture_config.py
+++ pytest-fixture-config-1.7.0/tests/unit/test_fixture_config.py
@@ -1,11 +1,11 @@
import pytest
-from six.moves import reload_module
+from importlib import reload
# HACK: if the plugin is imported before the coverage plugin then all
# the top-level code will be omitted from coverage, so force it to be
# reloaded within this unit test under coverage
import pytest_fixture_config
-reload_module(pytest_fixture_config)
+reload(pytest_fixture_config)
from pytest_fixture_config import Config, requires_config, yield_requires_config

View File

@ -0,0 +1,28 @@
-------------------------------------------------------------------
Sat Jun 10 11:50:36 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Thu Dec 8 11:00:15 UTC 2022 - pgajdos@suse.com
- do not require six
- added patches
fix https://github.com/man-group/pytest-plugins/issues/209
+ python-pytest-fixture-config-no-six.patch
-------------------------------------------------------------------
Wed Nov 17 03:39:57 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Add required BuildRequires on six.
-------------------------------------------------------------------
Mon Jun 3 09:18:55 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.7.0:
* Support pytest 4
-------------------------------------------------------------------
Wed Feb 20 11:40:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Intial commit, needed by pytest-virtualenv

View File

@ -0,0 +1,61 @@
#
# spec file for package python-pytest-fixture-config
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-pytest-fixture-config
Version: 1.7.0
Release: 0
Summary: Fixture configuration utils for pytest
License: MIT
Group: Development/Languages/Python
URL: https://github.com/manahl/pytest-plugins
Source: https://files.pythonhosted.org/packages/source/p/pytest-fixture-config/pytest-fixture-config-%{version}.tar.gz
# https://github.com/man-group/pytest-plugins/issues/209
Patch0: python-pytest-fixture-config-no-six.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest
BuildArch: noarch
%python_subpackages
%description
Fixture configuration utilities for pytest
%prep
%setup -q -n pytest-fixture-config-%{version}
%patch0 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md CHANGES.md
%license LICENSE
%{python_sitelib}/*
%changelog