Compare commits

2 Commits
1.1 ... main

5 changed files with 55 additions and 5 deletions

28
newline.patch Normal file
View File

@@ -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]',
+ '',
]

BIN
pytest_examples-0.0.13.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pytest_examples-0.0.17.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Apr 28 16:51:32 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.0.17:
* Improve logic for finding print statements
* Ensure `print_callback` runs before formatting print args
- update to 0.0.16:
* add `include_print` config function
-------------------------------------------------------------------
Fri Jan 17 16:49:17 UTC 2025 - Markéta Machová <mmachova@suse.com>
- 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 <dmueller@suse.com> Sun Aug 18 16:50:49 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-examples # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,15 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pytest-examples Name: python-pytest-examples
Version: 0.0.13 Version: 0.0.17
Release: 0 Release: 0
Summary: Pytest plugin for testing examples in docstrings and markdown files Summary: Pytest plugin for testing examples in docstrings and markdown files
License: MIT License: MIT
URL: https://github.com/pydantic/pytest-examples URL: https://github.com/pydantic/pytest-examples
# sdist without tests # sdist without tests
Source: https://files.pythonhosted.org/packages/source/p/pytest-examples/pytest_examples-%{version}.tar.gz 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 black}
BuildRequires: %{python_module hatchling} BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}