Compare commits

1 Commits
main ... 1.1

5 changed files with 5 additions and 62 deletions

View File

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

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

Binary file not shown.

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

Binary file not shown.

View File

@@ -1,30 +1,3 @@
-------------------------------------------------------------------
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>
- update to 0.0.13:
* Add new module to `sys.modules` so that namespace ops are
sound
-------------------------------------------------------------------
Wed Jul 3 16:13:14 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-examples
#
# Copyright (c) 2025 SUSE LLC
# 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
@@ -18,15 +18,13 @@
%{?sle15_python_module_pythons}
Name: python-pytest-examples
Version: 0.0.17
Version: 0.0.12
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}