commit cfdda295e1bb9e1df7eec2d7414a58121c28fa05962c348336a7dc4973c74223 Author: Steve Kowalik Date: Wed May 7 07:06:37 2025 +0000 - 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 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/python-pytest-testconfig.changes b/python-pytest-testconfig.changes new file mode 100644 index 0000000..2925ae4 --- /dev/null +++ b/python-pytest-testconfig.changes @@ -0,0 +1,29 @@ +------------------------------------------------------------------- +Wed May 7 06:59:21 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Mon Jan 13 14:16:27 UTC 2020 - Tomáš Chvátal + +- 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 + +- Update to 0.1.3: + * Fix warning about unclosed files + +------------------------------------------------------------------- +Wed Jul 24 07:05:24 UTC 2019 - Tomáš Chvátal + +- Update to 0.1.2: + * Fix tests execution + +------------------------------------------------------------------- +Tue May 14 18:27:27 UTC 2019 - + +- Initial spec creation +- added upstream PR to fix missing tests directory diff --git a/python-pytest-testconfig.spec b/python-pytest-testconfig.spec new file mode 100644 index 0000000..98ee817 --- /dev/null +++ b/python-pytest-testconfig.spec @@ -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 diff --git a/v0.2.0.tar.gz b/v0.2.0.tar.gz new file mode 100644 index 0000000..e6a1d91 --- /dev/null +++ b/v0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41a3c8e8288fa06dc5045964ba9dc06ad1946098e2c74394f8ff05c75d1cce20 +size 11860