Sync from SUSE:SLFO:Main python-pytest-order revision f7d242d04ee4e39f5e6804b64f3bb995

This commit is contained in:
2025-06-30 17:50:40 +02:00
commit 36b0551930
4 changed files with 151 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_order-1.3.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -0,0 +1,58 @@
-------------------------------------------------------------------
Thu Oct 24 08:57:07 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.3.0:
* Allows to fail tests that cannot be ordered.
* added option `--error-on-failed-ordering` to make tests that
cannot be ordered fail
* added missing documentation examples, structured examples
according to documentation structure
-------------------------------------------------------------------
Sat Apr 6 07:44:52 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.2.1:
* handle dependency markers with the same alias name (see #71)
* specify rootdir to recursive pytest calls to avoid searching
a large directory tree unnecessarily (see #110)
-------------------------------------------------------------------
Mon Dec 4 10:40:23 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.2.0:
* Allows using custom markers for ordering.
* added option `--order-marker-prefix` to allow using custom
markers for ordering
* added Python 3.12 to supported versions
-------------------------------------------------------------------
Wed Oct 25 12:38:00 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Sun May 14 09:42:13 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.1.0:
* Adds support for executing tests more than once using order
marks.
* added support for multiple test order markers
* removed official support for Python 3.6
* added pytest 7.x to CI tests
* added Python 3.11 to and removed Python 3.6 from CI tests
* moved documentation to Read the Docs
* removed support for Python 2.7 and 3.5
* removed official support for pytest < 5.0.0 (older versions
may still work, but they are not tested)
* re-added Python 3.10 to CI tests (for pytest >= 6.2.4)
* added type hints
* Adds support for multiple relative markers for the same test.
* added support for more than one relative marker for the same
test
* added Python 3.10 to CI tests
-------------------------------------------------------------------
Sat Mar 27 15:13:48 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Initial specfile for version 0.10.0
- A replacement for unmaintained pytest-ordering

67
python-pytest-order.spec Normal file
View File

@@ -0,0 +1,67 @@
#
# spec file for package python-pytest-order
#
# 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-order
Version: 1.3.0
Release: 0
Summary: Pytest plugin to run your tests in a specific order
License: MIT
URL: https://github.com/pytest-dev/pytest-order
Source: https://files.pythonhosted.org/packages/source/p/pytest-order/pytest_order-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest >= 5.0}
BuildRequires: %{python_module pytest-dependency}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-xdist}
# /SECTION
BuildRequires: fdupes
Requires: python-pytest >= 5.0
BuildArch: noarch
%python_subpackages
%description
A pytest plugin that allows you to customize the order in which your tests are
run. It uses the marker order that defines when a specific test shall be run
relative to the other tests. pytest-order is a fork of pytest-ordering that
provides some additional features.
%prep
%setup -q -n pytest_order-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc AUTHORS CHANGELOG.md README.md
%license LICENSE
%{python_sitelib}/pytest_order
%{python_sitelib}/pytest_order-%{version}.dist-info
%changelog