- Switch to pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-testconfig?expand=0&rev=8
This commit is contained in:
2025-05-07 07:06:37 +00:00
committed by Git OBS Bridge
commit cfdda295e1
5 changed files with 117 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

View File

@@ -0,0 +1,29 @@
-------------------------------------------------------------------
Wed May 7 06:59:21 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Mon Jan 13 14:16:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.2.0:
* Move config loading form pytest_configure to pytest_cmdline_main
-------------------------------------------------------------------
Mon Nov 18 07:52:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.1.3:
* Fix warning about unclosed files
-------------------------------------------------------------------
Wed Jul 24 07:05:24 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.1.2:
* Fix tests execution
-------------------------------------------------------------------
Tue May 14 18:27:27 UTC 2019 - <wboring@suse.com>
- Initial spec creation
- added upstream PR to fix missing tests directory

View File

@@ -0,0 +1,61 @@
#
# spec file for package python-pytest-testconfig
#
# Copyright (c) 2025 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/
#
Name: python-pytest-testconfig
Version: 0.2.0
Release: 0
Summary: Test configuration plugin for pytest
License: Apache-2.0
URL: https://github.com/wojole/pytest-testconfig
Source: https://github.com/wojole/pytest-testconfig/archive/v%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 3.5}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 3.5
Recommends: python-PyYAML
BuildArch: noarch
%python_subpackages
%description
pytest-testconfig is a plugin to the pytest test framework used for passing test-specific (or test-run specific) configuration data
to the tests being executed.
%prep
%setup -q -n pytest-testconfig-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%{python_sitelib}/pytest_testconfig.py
%pycache_only %{python_sitelib}/__pycache__/pytest_testconfig*.pyc
%{python_sitelib}/pytest_testconfig-%{version}.dist-info
%changelog

3
v0.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:41a3c8e8288fa06dc5045964ba9dc06ad1946098e2c74394f8ff05c75d1cce20
size 11860