diff --git a/newline.patch b/newline.patch new file mode 100644 index 0000000..8c2ec0b --- /dev/null +++ b/newline.patch @@ -0,0 +1,28 @@ +Index: pytest_examples-0.0.15/tests/test_run_examples.py +=================================================================== +--- pytest_examples-0.0.15.orig/tests/test_run_examples.py ++++ pytest_examples-0.0.15/tests/test_run_examples.py +@@ -171,6 +171,7 @@ def test_find_run_examples(example: Code + '@@ -4 +4 @@', + '-x =[1,2, 3]', + '+x = [1, 2, 3]', ++ '', + ] + + +@@ -205,6 +206,7 @@ def test_find_run_examples(example: Code + '@@ -4 +4 @@', + '-x·=[1,2,·3]', + '+x·=·[1,·2,·3]', ++ '', + ] + + +@@ -251,6 +253,7 @@ def test_find_run_examples(example: Code + '- 3', + '-]', + '+x = [1, 2, 3]', ++ '', + ] + + diff --git a/pytest_examples-0.0.13.tar.gz b/pytest_examples-0.0.13.tar.gz deleted file mode 100644 index 8a16624..0000000 --- a/pytest_examples-0.0.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d6fd78154953e84444f58f193eb6cc8d853bca7f0ee9f44ea75db043a2c19b5 -size 20445 diff --git a/pytest_examples-0.0.15.tar.gz b/pytest_examples-0.0.15.tar.gz new file mode 100644 index 0000000..477cefc --- /dev/null +++ b/pytest_examples-0.0.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d6ced2d1f0d59863f81a4d2f193737464b8004a7670907c3bedef6306a5d660 +size 20771 diff --git a/python-pytest-examples.changes b/python-pytest-examples.changes index e6fe1be..4709874 100644 --- a/python-pytest-examples.changes +++ b/python-pytest-examples.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Jan 17 16:49:17 UTC 2025 - Markéta Machová + +- update to 0.0.15 + * Adopt uv + * support for calling a function/coroutine + * Fix for single line docstrings + * Typechecking + * Allow matching prefix with curly braces +- add newline.patch to adapt tests to pytest 8.3.4 + ------------------------------------------------------------------- Sun Aug 18 16:50:49 UTC 2024 - Dirk Müller diff --git a/python-pytest-examples.spec b/python-pytest-examples.spec index 6394f45..718bd02 100644 --- a/python-pytest-examples.spec +++ b/python-pytest-examples.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-examples # -# Copyright (c) 2024 SUSE LLC +# 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 @@ -18,13 +18,15 @@ %{?sle15_python_module_pythons} Name: python-pytest-examples -Version: 0.0.13 +Version: 0.0.15 Release: 0 Summary: Pytest plugin for testing examples in docstrings and markdown files License: MIT URL: https://github.com/pydantic/pytest-examples # sdist without tests Source: https://files.pythonhosted.org/packages/source/p/pytest-examples/pytest_examples-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/pydantic/pytest-examples/pull/54 adapt tests to pytest 8.3.4 +Patch: newline.patch BuildRequires: %{python_module black} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip}