diff --git a/newline.patch b/newline.patch deleted file mode 100644 index 8c2ec0b..0000000 --- a/newline.patch +++ /dev/null @@ -1,28 +0,0 @@ -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.17.tar.gz b/pytest_examples-0.0.17.tar.gz deleted file mode 100644 index 0252206..0000000 --- a/pytest_examples-0.0.17.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f02460c10de36646dab45825659fa4735441863af8c86388c22eb6113d038d8 -size 21211 diff --git a/pytest_examples-0.0.18.tar.gz b/pytest_examples-0.0.18.tar.gz new file mode 100644 index 0000000..2ca9419 --- /dev/null +++ b/pytest_examples-0.0.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a464f007f805b113677a15e2f8942ebb92d7d3eb5312e9a405d018478ec9801 +size 21237 diff --git a/python-pytest-examples.changes b/python-pytest-examples.changes index 3270e8a..91881d9 100644 --- a/python-pytest-examples.changes +++ b/python-pytest-examples.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Jul 4 06:12:42 UTC 2025 - Steve Kowalik + +- Update to 0.0.18: + * adapt tests to pytest 8.3.4 + * Increase triple quote search +- Drop patch newline.patch, included upstream. +- Skip a broken test with pytest 8.4. +- Ship README and license. + ------------------------------------------------------------------- Mon Apr 28 16:51:32 UTC 2025 - Dirk Müller diff --git a/python-pytest-examples.spec b/python-pytest-examples.spec index 7e74b39..fd6771d 100644 --- a/python-pytest-examples.spec +++ b/python-pytest-examples.spec @@ -18,15 +18,12 @@ %{?sle15_python_module_pythons} Name: python-pytest-examples -Version: 0.0.17 +Version: 0.0.18 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} @@ -61,9 +58,11 @@ It can also update code examples in place to format them and insert or update pr %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +%pytest -k 'not test_run_example_ok_fail' %files %{python_files} +%license LICENSE +%doc README.md %{python_sitelib}/pytest_examples %{python_sitelib}/pytest_examples-%{version}.dist-info