diff --git a/python-pytest-examples.changes b/python-pytest-examples.changes index 3e76508..f318aed 100644 --- a/python-pytest-examples.changes +++ b/python-pytest-examples.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 1 18:03:28 UTC 2024 - Dirk Müller + +- add ruff05.patch: fix exception with ruff 0.5.0 + ------------------------------------------------------------------- Sat Mar 9 13:16:58 UTC 2024 - ecsos @@ -21,9 +26,9 @@ Wed Jan 24 06:44:56 UTC 2024 - Steve Kowalik ------------------------------------------------------------------- Thu Oct 19 16:35:18 UTC 2023 - Ondřej Súkup -- add test-ruff-0.1.0.patch to fix tests with ruvv-0.1.0 +- add test-ruff-0.1.0.patch to fix tests with ruvv-0.1.0 ------------------------------------------------------------------- Mon Oct 16 13:59:40 UTC 2023 - Ondřej Súkup -- initial package +- initial package diff --git a/python-pytest-examples.spec b/python-pytest-examples.spec index 42d086d..66c6cd0 100644 --- a/python-pytest-examples.spec +++ b/python-pytest-examples.spec @@ -31,6 +31,7 @@ Patch0: fix-traceback.patch Patch1: test-ruff-0.1.0.patch # PATCH-FIX-UPSTREAM gh#pydantic/pytest-examples#22 Patch2: support-python-312.patch +Patch3: ruff05.patch BuildRequires: %{python_module black} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} diff --git a/ruff05.patch b/ruff05.patch new file mode 100644 index 0000000..72c5ba5 --- /dev/null +++ b/ruff05.patch @@ -0,0 +1,13 @@ +Index: pytest-examples-0.0.10/pytest_examples/lint.py +=================================================================== +--- pytest-examples-0.0.10.orig/pytest_examples/lint.py ++++ pytest-examples-0.0.10/pytest_examples/lint.py +@@ -47,7 +47,7 @@ def ruff_check( + *, + extra_ruff_args: tuple[str, ...] = (), + ) -> str: +- args = 'ruff', '-', *config.ruff_config(), *extra_ruff_args ++ args = 'ruff', 'check', '-', *config.ruff_config(), *extra_ruff_args + + p = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, universal_newlines=True) + stdout, stderr = p.communicate(example.source, timeout=2)