From 41bcc9dafaf849494ccab9044bc212a685e3e1655fc494b98c826f32bb72b197 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:03:19 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-filter-subpackage?expand=0&rev=12 --- .gitattributes | 23 +++++++++ .gitignore | 1 + pytest-filter-subpackage-0.2.0.tar.gz | 3 ++ python-pytest-filter-subpackage.changes | 42 ++++++++++++++++ python-pytest-filter-subpackage.spec | 64 +++++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-filter-subpackage-0.2.0.tar.gz create mode 100644 python-pytest-filter-subpackage.changes create mode 100644 python-pytest-filter-subpackage.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-filter-subpackage-0.2.0.tar.gz b/pytest-filter-subpackage-0.2.0.tar.gz new file mode 100644 index 0000000..482da26 --- /dev/null +++ b/pytest-filter-subpackage-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f468f1b36518128869b95deab661ba45ed6293854329fef14da4c8cac78af56 +size 8085 diff --git a/python-pytest-filter-subpackage.changes b/python-pytest-filter-subpackage.changes new file mode 100644 index 0000000..c3ac0cd --- /dev/null +++ b/python-pytest-filter-subpackage.changes @@ -0,0 +1,42 @@ +------------------------------------------------------------------- +Wed May 7 06:49:24 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Thu Mar 21 17:20:52 UTC 2024 - Dirk Müller + +- update to 0.2.0: + * pytest 8.1 compatibility. + * Dropped Python 3.7 support. Minimum supported pytest is now + 4.6. + +------------------------------------------------------------------- +Thu May 4 23:15:01 UTC 2023 - Dirk Müller + +- update to 0.1.2: + * Fixed bug that caused ``-P time`` to also match + ``package.timeseries``. [#7] + * Dropped Python 3.6 support. +- drop fix-doctestplus-count.patch (upstream) + +------------------------------------------------------------------- +Fri Oct 22 16:17:21 UTC 2021 - Ben Greiner + +- disable python36 build: pytest-doctestplus dropped support + +------------------------------------------------------------------- +Fri Apr 16 15:02:16 UTC 2021 - Ben Greiner + +- Fix test suite: Don't error on OBS resource warnings + +------------------------------------------------------------------- +Wed Dec 9 00:01:05 UTC 2020 - Benjamin Greiner + +- Fix test failure gh#astropy/pytest-filter-subpackage#3 + fix-doctestplus-count.patch + +------------------------------------------------------------------- +Mon Mar 16 08:37:56 UTC 2020 - Tomáš Chvátal + +- New package, needed by pytest-astropy diff --git a/python-pytest-filter-subpackage.spec b/python-pytest-filter-subpackage.spec new file mode 100644 index 0000000..83e2d32 --- /dev/null +++ b/python-pytest-filter-subpackage.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-pytest-filter-subpackage +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-filter-subpackage +Version: 0.2.0 +Release: 0 +Summary: Pytest plugin for filtering based on sub-packages +License: BSD-3-Clause +URL: https://github.com/astropy/pytest-filter-subpackage +Source: https://files.pythonhosted.org/packages/source/p/pytest-filter-subpackage/pytest-filter-subpackage-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 4.6} +BuildRequires: %{python_module pytest-doctestplus >= 0.6} +BuildRequires: %{python_module setuptools >= 30.3} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest >= 4.6 +BuildArch: noarch +%python_subpackages + +%description +This package contains a simple plugin for the pytest framework that provides a +shortcut to testing all code and documentation for a given sub-package. + +%prep +%autosetup -p1 -n pytest-filter-subpackage-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# don't error on obs resource warnings +sed -i '/^\s*error/ a \ ignore::ResourceWarning' setup.cfg +%pytest + +%files %{python_files} +%doc README.rst CHANGES.rst +%license LICENSE.rst +%{python_sitelib}/pytest_filter_subpackage +%{python_sitelib}/pytest_filter_subpackage-%{version}.dist-info + +%changelog