python-pytest/python-pytest.spec

157 lines
4.9 KiB
RPMSpec
Raw Normal View History

#
# spec file
#
# 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.
Accepting request 636145 from home:mimi_vx:branches:devel:languages:python:pytest - update to 3.8.0 * Config.warn has been deprecated, it should be replaced by calls to the standard warnings.warn. * Node.warn now supports two signatures: + node.warn(PytestWarning("some message")): is now the recommended way to call this function. The warning instance must be a PytestWarning or subclass instance. + node.warn("CI", "some message"): this code/message form is now deprecated and should be converted to the warning instance form above. * RemovedInPytest4Warning and PytestExperimentalApiWarning are now part of the public API and should be accessed using pytest.RemovedInPytest4Warning and pytest.PytestExperimentalApiWarning. * @pytest.mark.filterwarnings second parameter is no longer regex-escaped, making it possible to actually use regular expressions to check the warning message. + Note: regex-escaping the match string was an implementation oversight that might break test suites which depend on the old behavior. * Internal pytest warnings are now issued using the standard warnings module, making it possible to use the standard warnings filters to manage those warnings. This introduces PytestWarning, PytestDeprecationWarning and RemovedInPytest4Warning warning types as part of the public API. * DeprecationWarning and PendingDeprecationWarning are now shown by default if no other warning filter is configured. This makes pytest more compliant with PEP-0506. See the docs for more info. * Warnings are now captured and displayed during test collection. * PYTEST_DISABLE_PLUGIN_AUTOLOAD environment variable disables plugin auto-loading when set. * Added the count option to console_output_style to enable displaying the progress as a count instead of a percentage. * Added support for ‘xfailed’ and ‘xpassed’ outcomes to the pytester.RunResult.assert_outcomes signature. OBS-URL: https://build.opensuse.org/request/show/636145 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=15
2018-09-17 11:46:23 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 965098 from home:bnavigator:branches:devel:languages:python:pytest - Update to 7.1.1 * #9767: Fixed a regression in pytest 7.1.0 where some conftest.py files outside of the source tree (e.g. in the [site-packages]{.title-ref} directory) were not picked up. - python-pytest5 is gone. Remove the libalts stopgap - Update to 7.1.0 * Big changelog for 7.x series, see https://docs.pytest.org/en/7.1.x/changelog.html for details - Breaking changes: * #8838: As per our policy, the following features have been deprecated in the 6.X series and are now removed: + pytest._fillfuncargs function. + pytest_warning_captured hook - use pytest_warning_recorded instead. + -k -foobar syntax - use -k 'not foobar' instead. + -k foobar: syntax. * pytest.collect module - import from pytest directly. * #9437: Dropped support for Python 3.6, which reached end-of-life at 2021-12-23. * #7259: The Node.reportinfo() function first return value type has been expanded from py.path.local | str to os.PathLike[str] | str. Most plugins which refer to reportinfo() only define it as part of a custom pytest.Item implementation. Since py.path.local is a os.PathLike[str], these plugins are unaffacted. Plugins and users which call reportinfo(), use the first return value and interact with it as a py.path.local, would need to adjust by calling py.path.local(fspath). Although preferably, avoid the legacy py.path.local and use pathlib.Path, or use item.location or item.path, instead. Note: pytest was not able to provide a deprecation period for this change. * #8246: --version now writes version information to stdout rather than stderr. * #8733: Drop a workaround for pyreadline that made it work with --pdb. The workaround was introduced in #1281 in 2015, however since then pyreadline seems to have gone unmaintained, is generating warnings, and will stop working on Python 3.10. * #9061: Using pytest.approx() in a boolean context now raises an error hinting at the proper usage. It is apparently common for users to mistakenly use pytest.approx like this: assert pytest.approx(actual, expected) While the correct usage is: assert actual == pytest.approx(expected) The new error message helps catch those mistakes. * #9277: The pytest.Instance collector type has been removed. Importing pytest.Instance or _pytest.python.Instance returns a dummy type and emits a deprecation warning. See The pytest.Instance collector for details. * If you have concerns about the removal of a specific feature, please add a comment to issue #9308. - Drop patches * pytest-pr8664-py3.10-test_trial_error-fail.patch * pytest-pr9173-importlib-py310.patch * pytest-pr9417-py3.10.1-fail.patch OBS-URL: https://build.opensuse.org/request/show/965098 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=100
2022-03-26 23:07:24 +01:00
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -%{flavor}
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Accepting request 965098 from home:bnavigator:branches:devel:languages:python:pytest - Update to 7.1.1 * #9767: Fixed a regression in pytest 7.1.0 where some conftest.py files outside of the source tree (e.g. in the [site-packages]{.title-ref} directory) were not picked up. - python-pytest5 is gone. Remove the libalts stopgap - Update to 7.1.0 * Big changelog for 7.x series, see https://docs.pytest.org/en/7.1.x/changelog.html for details - Breaking changes: * #8838: As per our policy, the following features have been deprecated in the 6.X series and are now removed: + pytest._fillfuncargs function. + pytest_warning_captured hook - use pytest_warning_recorded instead. + -k -foobar syntax - use -k 'not foobar' instead. + -k foobar: syntax. * pytest.collect module - import from pytest directly. * #9437: Dropped support for Python 3.6, which reached end-of-life at 2021-12-23. * #7259: The Node.reportinfo() function first return value type has been expanded from py.path.local | str to os.PathLike[str] | str. Most plugins which refer to reportinfo() only define it as part of a custom pytest.Item implementation. Since py.path.local is a os.PathLike[str], these plugins are unaffacted. Plugins and users which call reportinfo(), use the first return value and interact with it as a py.path.local, would need to adjust by calling py.path.local(fspath). Although preferably, avoid the legacy py.path.local and use pathlib.Path, or use item.location or item.path, instead. Note: pytest was not able to provide a deprecation period for this change. * #8246: --version now writes version information to stdout rather than stderr. * #8733: Drop a workaround for pyreadline that made it work with --pdb. The workaround was introduced in #1281 in 2015, however since then pyreadline seems to have gone unmaintained, is generating warnings, and will stop working on Python 3.10. * #9061: Using pytest.approx() in a boolean context now raises an error hinting at the proper usage. It is apparently common for users to mistakenly use pytest.approx like this: assert pytest.approx(actual, expected) While the correct usage is: assert actual == pytest.approx(expected) The new error message helps catch those mistakes. * #9277: The pytest.Instance collector type has been removed. Importing pytest.Instance or _pytest.python.Instance returns a dummy type and emits a deprecation warning. See The pytest.Instance collector for details. * If you have concerns about the removal of a specific feature, please add a comment to issue #9308. - Drop patches * pytest-pr8664-py3.10-test_trial_error-fail.patch * pytest-pr9173-importlib-py310.patch * pytest-pr9417-py3.10.1-fail.patch OBS-URL: https://build.opensuse.org/request/show/965098 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=100
2022-03-26 23:07:24 +01:00
%{?sle15_python_module_pythons}
Name: python-pytest%{psuffix}
Version: 7.4.4
Release: 0
Summary: Simple powerful testing with Python
License: MIT
Accepting request 618559 from devel:languages:python:pytest - update to 3.6.2 - add python-mock to buildrequires - fix test command - add python_mock.patch to use stdlib mock library on py3 - Update to version 3.6.0 + Features * Revamp the internals of the ``pytest.mark`` implementation with correct per node handling which fixes a number of long standing bugs caused by the old design. This introduces new ``Node.iter_markers(name)`` and ``Node.get_closest_mark(name)`` APIs. Users are **strongly encouraged** to read the `reasons for the revamp in the docs <https://docs.pytest.org/en/latest/mark.html#marker-revamp-and-iteration>`_, or jump over to details about `updating existing code to use the new APIs <https://docs.pytest.org/en/latest/mark.html#updating-code>`_. (`#3317 <https://github.com/pytest-dev/pytest/issues/3317>`_) * Now when ``@pytest.fixture`` is applied more than once to the same function a ``ValueError`` is raised. This buggy behavior would cause surprising problems and if was working for a test suite it was mostly by accident. (`#2334 <https://github.com/pytest-dev/pytest/issues/2334>`_) * Support for Python 3.7's builtin ``breakpoint()`` method, see `Using the builtin breakpoint function <https://docs.pytest.org/en/latest/usage.html#breakpoint-builtin>`_ for details. (`#3180 <https://github.com/pytest-dev/pytest/issues/3180>`_) * ``monkeypatch`` now supports a ``context()`` function which acts as a context manager which undoes all patching done within the ``with`` block. (`#3290 <https://github.com/pytest-dev/pytest/issues/3290>`_) * The ``--pdb`` option now causes KeyboardInterrupt to enter the debugger, instead of stopping the test session. On python 2.7, hitting CTRL+C again exits the debugger. On python 3.2 and higher, use CTRL+D. (`#3299 OBS-URL: https://build.opensuse.org/request/show/618559 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=37
2018-06-25 11:35:39 +02:00
URL: https://github.com/pytest-dev/pytest
2017-11-02 10:24:10 +01:00
Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
Accepting request 965098 from home:bnavigator:branches:devel:languages:python:pytest - Update to 7.1.1 * #9767: Fixed a regression in pytest 7.1.0 where some conftest.py files outside of the source tree (e.g. in the [site-packages]{.title-ref} directory) were not picked up. - python-pytest5 is gone. Remove the libalts stopgap - Update to 7.1.0 * Big changelog for 7.x series, see https://docs.pytest.org/en/7.1.x/changelog.html for details - Breaking changes: * #8838: As per our policy, the following features have been deprecated in the 6.X series and are now removed: + pytest._fillfuncargs function. + pytest_warning_captured hook - use pytest_warning_recorded instead. + -k -foobar syntax - use -k 'not foobar' instead. + -k foobar: syntax. * pytest.collect module - import from pytest directly. * #9437: Dropped support for Python 3.6, which reached end-of-life at 2021-12-23. * #7259: The Node.reportinfo() function first return value type has been expanded from py.path.local | str to os.PathLike[str] | str. Most plugins which refer to reportinfo() only define it as part of a custom pytest.Item implementation. Since py.path.local is a os.PathLike[str], these plugins are unaffacted. Plugins and users which call reportinfo(), use the first return value and interact with it as a py.path.local, would need to adjust by calling py.path.local(fspath). Although preferably, avoid the legacy py.path.local and use pathlib.Path, or use item.location or item.path, instead. Note: pytest was not able to provide a deprecation period for this change. * #8246: --version now writes version information to stdout rather than stderr. * #8733: Drop a workaround for pyreadline that made it work with --pdb. The workaround was introduced in #1281 in 2015, however since then pyreadline seems to have gone unmaintained, is generating warnings, and will stop working on Python 3.10. * #9061: Using pytest.approx() in a boolean context now raises an error hinting at the proper usage. It is apparently common for users to mistakenly use pytest.approx like this: assert pytest.approx(actual, expected) While the correct usage is: assert actual == pytest.approx(expected) The new error message helps catch those mistakes. * #9277: The pytest.Instance collector type has been removed. Importing pytest.Instance or _pytest.python.Instance returns a dummy type and emits a deprecation warning. See The pytest.Instance collector for details. * If you have concerns about the removal of a specific feature, please add a comment to issue #9308. - Drop patches * pytest-pr8664-py3.10-test_trial_error-fail.patch * pytest-pr9173-importlib-py310.patch * pytest-pr9417-py3.10.1-fail.patch OBS-URL: https://build.opensuse.org/request/show/965098 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=100
2022-03-26 23:07:24 +01:00
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools_scm >= 6}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli >= 1 if %python-base < 3.11}
2017-11-02 10:24:10 +01:00
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
Requires: python-attrs >= 19.2.0
%if 0%{?python_version_nodots} < 311
Requires: python-exceptiongroup >= 1.0.0
Requires: python-tomli >= 1
%endif
Requires: python-iniconfig
Requires: python-packaging
Requires: python-pluggy >= 0.12
Requires: python-setuptools
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
%endif
Obsoletes: python-pytest-doc
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module attrs >= 19.2.0}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module hypothesis >= 3.56}
# nose is really not REQUIRED, the test suite skips over particular
# tests, when the package is not available.
# BuildRequires: %%{python_module nose}
BuildRequires: %{python_module pexpect}
Accepting request 965098 from home:bnavigator:branches:devel:languages:python:pytest - Update to 7.1.1 * #9767: Fixed a regression in pytest 7.1.0 where some conftest.py files outside of the source tree (e.g. in the [site-packages]{.title-ref} directory) were not picked up. - python-pytest5 is gone. Remove the libalts stopgap - Update to 7.1.0 * Big changelog for 7.x series, see https://docs.pytest.org/en/7.1.x/changelog.html for details - Breaking changes: * #8838: As per our policy, the following features have been deprecated in the 6.X series and are now removed: + pytest._fillfuncargs function. + pytest_warning_captured hook - use pytest_warning_recorded instead. + -k -foobar syntax - use -k 'not foobar' instead. + -k foobar: syntax. * pytest.collect module - import from pytest directly. * #9437: Dropped support for Python 3.6, which reached end-of-life at 2021-12-23. * #7259: The Node.reportinfo() function first return value type has been expanded from py.path.local | str to os.PathLike[str] | str. Most plugins which refer to reportinfo() only define it as part of a custom pytest.Item implementation. Since py.path.local is a os.PathLike[str], these plugins are unaffacted. Plugins and users which call reportinfo(), use the first return value and interact with it as a py.path.local, would need to adjust by calling py.path.local(fspath). Although preferably, avoid the legacy py.path.local and use pathlib.Path, or use item.location or item.path, instead. Note: pytest was not able to provide a deprecation period for this change. * #8246: --version now writes version information to stdout rather than stderr. * #8733: Drop a workaround for pyreadline that made it work with --pdb. The workaround was introduced in #1281 in 2015, however since then pyreadline seems to have gone unmaintained, is generating warnings, and will stop working on Python 3.10. * #9061: Using pytest.approx() in a boolean context now raises an error hinting at the proper usage. It is apparently common for users to mistakenly use pytest.approx like this: assert pytest.approx(actual, expected) While the correct usage is: assert actual == pytest.approx(expected) The new error message helps catch those mistakes. * #9277: The pytest.Instance collector type has been removed. Importing pytest.Instance or _pytest.python.Instance returns a dummy type and emits a deprecation warning. See The pytest.Instance collector for details. * If you have concerns about the removal of a specific feature, please add a comment to issue #9308. - Drop patches * pytest-pr8664-py3.10-test_trial_error-fail.patch * pytest-pr9173-importlib-py310.patch * pytest-pr9417-py3.10.1-fail.patch OBS-URL: https://build.opensuse.org/request/show/965098 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=100
2022-03-26 23:07:24 +01:00
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pygments-pytest}
BuildRequires: %{python_module pytest >= %{version}}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module xmlschema}
BuildRequires: lsof
Accepting request 627079 from home:mimi_vx:branches:devel:languages:python:pytest - update to 3.7.0 * pytest_namespace has been deprecated. * Calling a fixture function directly, as opposed to request them in a test function, now issues a RemovedInPytest4Warning. * New package fixture scope: fixtures are finalized when the last test of a package finishes. This feature is considered experimental, so use it sparingly. * Node.add_marker now supports an append=True/False parameter to determine whether the mark comes last (default) or first. * Fixture caplog now has a messages property, providing convenient access to the format-interpolated log messages without the extra data provided by the formatter/handler. * New --trace option to enter the debugger at the start of a test. * Introduce pytester.copy_example as helper to do acceptance tests against examples from the project. - update to 3.7.0 * pytest_namespace has been deprecated. * Calling a fixture function directly, as opposed to request them in a test function, now issues a RemovedInPytest4Warning. * New package fixture scope: fixtures are finalized when the last test of a package finishes. This feature is considered experimental, so use it sparingly. * Node.add_marker now supports an append=True/False parameter to determine whether the mark comes last (default) or first. * Fixture caplog now has a messages property, providing convenient access to the format-interpolated log messages without the extra data provided by the formatter/handler. * New --trace option to enter the debugger at the start of a test. * Introduce pytester.copy_example as helper to do acceptance tests against examples from the project. OBS-URL: https://build.opensuse.org/request/show/627079 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=7
2018-08-02 15:12:16 +02:00
%endif
%python_subpackages
%description
The pytest framework makes it easy to write small tests, yet scales to support
complex functional testing for applications and libraries.
%prep
%autosetup -p1 -n pytest-%{version}
# fix gh#pytest-dev/pytest#7891 still happening for Leap
sed -i '/^\[metadata\]/ a version = %{version}' setup.cfg
- Remove python_module macro definition - Update to 7.2.0: # Deprecations - #10012: Update pytest.PytestUnhandledCoroutineWarning{.interpreted-text role="class"} to a deprecation; it will raise an error in pytest 8. - #10396: pytest no longer depends on the py library. pytest provides a vendored copy of py.error and py.path modules but will use the py library if it is installed. If you need other py.* modules, continue to install the deprecated py library separately, otherwise it can usually be removed as a dependency. - #4562: Deprecate configuring hook specs/impls using attributes/marks. - Instead use :pypytest.hookimpl{.interpreted-text role="func"} and :pypytest.hookspec{.interpreted-text role="func"}. For more details, see the docs <legacy-path-hooks-deprecated>{.interpreted-text role="ref"}. - #9886: The functionality for running tests written for nose has been officially deprecated. This includes: * Plain setup and teardown functions and methods: this might catch users by surprise, as setup() and teardown() are not pytest idioms, but part of the nose support. * Setup/teardown using the @with_setup decorator. For more details, consult the deprecation docs <nose-deprecation>{.interpreted-text role="ref"}. # Features - #9897: Added shell-style wildcard support to testpaths. # Improvements - #10218: @pytest.mark.parametrize() (and similar functions) now accepts any Sequence[str] for the argument names, instead of just list[str] and tuple[str, ...]. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=104
2022-11-29 14:20:25 +01:00
# Tests not failing with our current version of packages gh#pytest-dev/pytest#10042
sed -i '/pytest.mark.xfail(reason="#10042")/d' testing/test_debugging.py
%build
%python_build
%install
%if ! %{with test}
2017-11-02 10:24:10 +01:00
%python_install
%python_clone -a %{buildroot}%{_bindir}/pytest
%python_clone -a %{buildroot}%{_bindir}/py.test
Accepting request 618559 from devel:languages:python:pytest - update to 3.6.2 - add python-mock to buildrequires - fix test command - add python_mock.patch to use stdlib mock library on py3 - Update to version 3.6.0 + Features * Revamp the internals of the ``pytest.mark`` implementation with correct per node handling which fixes a number of long standing bugs caused by the old design. This introduces new ``Node.iter_markers(name)`` and ``Node.get_closest_mark(name)`` APIs. Users are **strongly encouraged** to read the `reasons for the revamp in the docs <https://docs.pytest.org/en/latest/mark.html#marker-revamp-and-iteration>`_, or jump over to details about `updating existing code to use the new APIs <https://docs.pytest.org/en/latest/mark.html#updating-code>`_. (`#3317 <https://github.com/pytest-dev/pytest/issues/3317>`_) * Now when ``@pytest.fixture`` is applied more than once to the same function a ``ValueError`` is raised. This buggy behavior would cause surprising problems and if was working for a test suite it was mostly by accident. (`#2334 <https://github.com/pytest-dev/pytest/issues/2334>`_) * Support for Python 3.7's builtin ``breakpoint()`` method, see `Using the builtin breakpoint function <https://docs.pytest.org/en/latest/usage.html#breakpoint-builtin>`_ for details. (`#3180 <https://github.com/pytest-dev/pytest/issues/3180>`_) * ``monkeypatch`` now supports a ``context()`` function which acts as a context manager which undoes all patching done within the ``with`` block. (`#3290 <https://github.com/pytest-dev/pytest/issues/3290>`_) * The ``--pdb`` option now causes KeyboardInterrupt to enter the debugger, instead of stopping the test session. On python 2.7, hitting CTRL+C again exits the debugger. On python 3.2 and higher, use CTRL+D. (`#3299 OBS-URL: https://build.opensuse.org/request/show/618559 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=37
2018-06-25 11:35:39 +02:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# Disable broken tests with latest setuptools, gh#pytest-dev/pytest#10815
donttest="test_cmdline_python_namespace_package or test_syspath_prepend_with_namespace_packages"
# Don't run pexpect tests to avoid timeout error in OBS when running
# in quemu
%pytest -n auto -m "not uses_pexpect" -k "not ($donttest)"
%endif
%if ! %{with test}
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative pytest
%post
%if ! %{with libalternatives}
# py.test was the master until Oct 2020. boo#1178547
alternatives=$(update-alternatives --quiet --list py.test 2> /dev/null) && (
update-alternatives --remove-all py.test
# reinstall group with new master for all existing flavors except ourself
for a in $alternatives; do
if [ $a != %{_bindir}/py.test-%{python_bin_suffix} ]; then
bin_suffix=${a##*-}
prio=${bin_suffix/./}
update-alternatives --quiet --install %{_bindir}/pytest pytest ${a/py.test/pytest} $prio \
--slave %{_bindir}/py.test py.test $a
fi
done
) ||:
%endif
%python_install_alternative pytest py.test
%postun
%python_uninstall_alternative pytest
%files %{python_files}
%doc AUTHORS CHANGELOG.rst README.rst
%license LICENSE
%python_alternative %{_bindir}/pytest
%python_alternative %{_bindir}/py.test
- Remove python_module macro definition - Update to 7.2.0: # Deprecations - #10012: Update pytest.PytestUnhandledCoroutineWarning{.interpreted-text role="class"} to a deprecation; it will raise an error in pytest 8. - #10396: pytest no longer depends on the py library. pytest provides a vendored copy of py.error and py.path modules but will use the py library if it is installed. If you need other py.* modules, continue to install the deprecated py library separately, otherwise it can usually be removed as a dependency. - #4562: Deprecate configuring hook specs/impls using attributes/marks. - Instead use :pypytest.hookimpl{.interpreted-text role="func"} and :pypytest.hookspec{.interpreted-text role="func"}. For more details, see the docs <legacy-path-hooks-deprecated>{.interpreted-text role="ref"}. - #9886: The functionality for running tests written for nose has been officially deprecated. This includes: * Plain setup and teardown functions and methods: this might catch users by surprise, as setup() and teardown() are not pytest idioms, but part of the nose support. * Setup/teardown using the @with_setup decorator. For more details, consult the deprecation docs <nose-deprecation>{.interpreted-text role="ref"}. # Features - #9897: Added shell-style wildcard support to testpaths. # Improvements - #10218: @pytest.mark.parametrize() (and similar functions) now accepts any Sequence[str] for the argument names, instead of just list[str] and tuple[str, ...]. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=104
2022-11-29 14:20:25 +01:00
%pycache_only %{python_sitelib}/__pycache__/*.pyc
%{python_sitelib}/_pytest
- Remove python_module macro definition - Update to 7.2.0: # Deprecations - #10012: Update pytest.PytestUnhandledCoroutineWarning{.interpreted-text role="class"} to a deprecation; it will raise an error in pytest 8. - #10396: pytest no longer depends on the py library. pytest provides a vendored copy of py.error and py.path modules but will use the py library if it is installed. If you need other py.* modules, continue to install the deprecated py library separately, otherwise it can usually be removed as a dependency. - #4562: Deprecate configuring hook specs/impls using attributes/marks. - Instead use :pypytest.hookimpl{.interpreted-text role="func"} and :pypytest.hookspec{.interpreted-text role="func"}. For more details, see the docs <legacy-path-hooks-deprecated>{.interpreted-text role="ref"}. - #9886: The functionality for running tests written for nose has been officially deprecated. This includes: * Plain setup and teardown functions and methods: this might catch users by surprise, as setup() and teardown() are not pytest idioms, but part of the nose support. * Setup/teardown using the @with_setup decorator. For more details, consult the deprecation docs <nose-deprecation>{.interpreted-text role="ref"}. # Features - #9897: Added shell-style wildcard support to testpaths. # Improvements - #10218: @pytest.mark.parametrize() (and similar functions) now accepts any Sequence[str] for the argument names, instead of just list[str] and tuple[str, ...]. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=104
2022-11-29 14:20:25 +01:00
%{python_sitelib}/py.py
%{python_sitelib}/pytest
%{python_sitelib}/pytest-%{version}*-info
%endif
%changelog