Files
python-pytest-relaxed/python-pytest-relaxed.spec
Steve Kowalik 8bdf5ad79a - Update to 2.0.0:
* Prior to version 2, we failed to correctly support true Pytest
    setup/teardown methods (i.e. setup_method and teardown_method) and
    these would not get copied to inner class scopes. This has been fixed.
    We still support old nose-style setup/teardown for now, despite them
    going away in Pytest 8.
  * Modernize codebase/project a bunch:
    + Dropped support for Python <3.6 (including 2.7)
    + Pytest support upgraded to support, and require, Pytest >=7.
    + Behavioral changes in Pytest internals have fixed a handful of
      sorta-bugs present in pytest-relaxed under Pytest versions 3 and 4.
- Dropped patches pytest-6.1-and-7.patch, pytest-relaxed-pr10.patch:
  * No longer required.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-relaxed?expand=0&rev=18
2023-01-05 03:29:55 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pytest-relaxed
#
# Copyright (c) 2023 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-relaxed
Version: 2.0.0
Release: 0
Summary: Relaxed test discovery/organization for pytest
License: BSD-2-Clause
URL: https://github.com/bitprophet/pytest-relaxed
Source: https://files.pythonhosted.org/packages/source/p/pytest-relaxed/pytest-relaxed-%{version}.tar.gz
BuildRequires: %{python_module decorator >= 4}
BuildRequires: %{python_module invocations >= 3}
BuildRequires: %{python_module invoke >= 1.7}
BuildRequires: %{python_module pytest >= 7}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-decorator >= 4
Requires: python-pytest >= 7
BuildArch: noarch
%python_subpackages
%description
Relaxed test discovery/organization plugin for pytest from python-paramiko author
%prep
%autosetup -p1 -n pytest-relaxed-%{version}
%build
export LANG=en_US.UTF-8
%python_build
%install
export LANG=en_US.UTF-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/pytest_relaxed
%{python_sitelib}/pytest_relaxed-%{version}*-info
%changelog