From 96129d4b82005a6216d3ee030cfb5358b71372eb6c0c7ffd2aaba0d6c3b320fd Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 4 Nov 2024 11:34:55 +0000 Subject: [PATCH] - Remove not needed dep python-setuptools-git OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-fixture-config?expand=0&rev=16 --- .gitattributes | 23 +++++++++ .gitignore | 1 + pytest-fixture-config-1.7.0.tar.gz | 3 ++ pytest-fixture-config-1.8.0.tar.gz | 3 ++ python-pytest-fixture-config-no-six.patch | 18 +++++++ python-pytest-fixture-config.changes | 47 +++++++++++++++++ python-pytest-fixture-config.spec | 61 +++++++++++++++++++++++ 7 files changed, 156 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-fixture-config-1.7.0.tar.gz create mode 100644 pytest-fixture-config-1.8.0.tar.gz create mode 100644 python-pytest-fixture-config-no-six.patch create mode 100644 python-pytest-fixture-config.changes create mode 100644 python-pytest-fixture-config.spec 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/pytest-fixture-config-1.7.0.tar.gz b/pytest-fixture-config-1.7.0.tar.gz new file mode 100644 index 0000000..fa4fb5d --- /dev/null +++ b/pytest-fixture-config-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41a17417721f6862ce6b40e3280fddd8e1659b2c306ec46b237d7021fec5218e +size 9884 diff --git a/pytest-fixture-config-1.8.0.tar.gz b/pytest-fixture-config-1.8.0.tar.gz new file mode 100644 index 0000000..76d69a5 --- /dev/null +++ b/pytest-fixture-config-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c739895fe20851bdba53f246d0599aa389bc1a1cba48db2ecac0130576dc1b0e +size 9975 diff --git a/python-pytest-fixture-config-no-six.patch b/python-pytest-fixture-config-no-six.patch new file mode 100644 index 0000000..b4b0d10 --- /dev/null +++ b/python-pytest-fixture-config-no-six.patch @@ -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 + diff --git a/python-pytest-fixture-config.changes b/python-pytest-fixture-config.changes new file mode 100644 index 0000000..71b008a --- /dev/null +++ b/python-pytest-fixture-config.changes @@ -0,0 +1,47 @@ +------------------------------------------------------------------- +Mon Nov 4 11:33:53 UTC 2024 - Daniel Garcia + +- Remove not needed dep python-setuptools-git + +------------------------------------------------------------------- +Tue Oct 22 06:08:51 UTC 2024 - Steve Kowalik + +- Update to 1.8.0: + * Drop support for Python 2 and <3.6, removing compatibility code. + * Use stdlib unittest.mock instead of mock package. + * Removed usage of path.py and path in favour of pathlib. + +------------------------------------------------------------------- +Thu Feb 22 04:08:07 UTC 2024 - Steve Kowalik + +- Switch to autosetup and pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Sat Jun 10 11:50:36 UTC 2023 - ecsos + +- 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 + +- Add required BuildRequires on six. + +------------------------------------------------------------------- +Mon Jun 3 09:18:55 UTC 2019 - Tomáš Chvátal + +- Update to 1.7.0: + * Support pytest 4 + +------------------------------------------------------------------- +Wed Feb 20 11:40:45 UTC 2019 - Tomáš Chvátal + +- Intial commit, needed by pytest-virtualenv diff --git a/python-pytest-fixture-config.spec b/python-pytest-fixture-config.spec new file mode 100644 index 0000000..30b2bfe --- /dev/null +++ b/python-pytest-fixture-config.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-pytest-fixture-config +# +# 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-fixture-config +Version: 1.8.0 +Release: 0 +Summary: Fixture configuration utils for pytest +License: MIT +URL: https://github.com/man-group/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 pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest +BuildArch: noarch +%python_subpackages + +%description +Fixture configuration utilities for pytest + +%prep +%autosetup -p1 -n pytest-fixture-config-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md CHANGES.md +%license LICENSE +%{python_sitelib}/pytest_fixture_config.py +%pycache_only %{python_sitelib}/__pycache__/pytest_fixture_config*.py* +%{python_sitelib}/pytest_fixture_config-%{version}.dist-info + +%changelog