17
0

17 Commits

Author SHA256 Message Date
181ef9981a Accepting request 1291404 from devel:languages:python
- Add patch support-pytest-8.4.patch:
  * Do not allow pytest to collect non-test functions.

OBS-URL: https://build.opensuse.org/request/show/1291404
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=15
2025-07-09 15:26:31 +00:00
c49f002765 - Add patch support-pytest-8.4.patch:
* Do not allow pytest to collect non-test functions.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=28
2025-07-09 06:44:50 +00:00
65948bc864 Accepting request 1251791 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1251791
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=14
2025-03-11 19:44:03 +00:00
9d8e262859 Accepting request 1251713 from home:glaubitz:branches:devel:languages:python
- Update to 2.2.0
  * fix: backward compatibility fix for changed source positions in 3.12.6 (#85)
  * fix: handle changed positions for __exit__ of ast.With
  * update and fix table of contents link, 'libraries' → 'projects' (#93)
  * fix: check for pytest compatibility (#94)
- Drop new-python-312.patch, merged upstream
- Drop pytest.patch, merged upstream

OBS-URL: https://build.opensuse.org/request/show/1251713
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=26
2025-03-10 12:24:16 +00:00
53df145f50 Accepting request 1238543 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1238543
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=13
2025-01-20 16:14:03 +00:00
76a1339ad5 Accepting request 1238541 from home:mcalabkova:branches:devel:languages:python
- Add pytest.patch to fix compatibility with new pytest

OBS-URL: https://build.opensuse.org/request/show/1238541
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=24
2025-01-17 16:40:30 +00:00
5925b6584a Accepting request 1217356 from devel:languages:python
- Remove ipython dependency for Leap

OBS-URL: https://build.opensuse.org/request/show/1217356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=12
2024-10-23 19:08:08 +00:00
4a62345022 - Remove ipython dependency for Leap
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=22
2024-10-23 13:04:28 +00:00
807b6c0e89 Accepting request 1203862 from devel:languages:python
- Split test run into separate build using _multibuild.
- The test suite has to be run with pytest, unittest is not enough
- Add missing BuildRequires: ipython

OBS-URL: https://build.opensuse.org/request/show/1203862
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=11
2024-09-26 16:52:46 +00:00
ee17b606c2 - Split test run into separate build using _multibuild.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=20
2024-09-26 09:29:05 +00:00
d5c89fd063 - The test suite has to be run with pytest, unittest is not enough
- Add missing BuildRequires: ipython

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=19
2024-09-20 20:30:06 +00:00
e8945b7c1c Accepting request 1201732 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1201732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=10
2024-09-20 15:08:52 +00:00
a7ace95cae Accepting request 1201726 from home:mcalabkova:branches:devel:languages:python
- Add new-python-312.patch to fix build with recent Python 3.12 release

OBS-URL: https://build.opensuse.org/request/show/1201726
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=17
2024-09-18 08:31:43 +00:00
cfa231553e Accepting request 1199964 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1199964
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=9
2024-09-12 14:53:56 +00:00
af4add8dcf Accepting request 1199807 from home:glaubitz:branches:devel:languages:python
- Update to 2.1.0
  * Add many_calls tests to EXECUTING_SLOW_TESTS (#78)
  * fix: backward compatibility fix for changed source positions in 3.12.5 (#82) (#83)
  * fix(3.13): show_caches is deprecated
  * fix(3.13): added new rules to the verification
  * build(3.13): added 3.13 to ci workflow
  * fix(3.13): fixed typing errors
  * fix(3.13): handle STORE_FAST_STORE_FAST and similar instructions as known issues
  * fix(3.13): loading of __class__ is mapped to the last element of the class
  * fix(3.13): handle CALL_KW like method calls which are only located by the end position
  * fix(3.13): a lambda can also have nonlocal variables
  * fix(3.13): a async function can also have nonlocal variables
  * fix(3.13): COMPARE_OP maps always to ast.Compare
  * fix(3.13): a type variable can also have nonlocal variables
  * test(3.13): handle optimization of `not not x`
  * test: fixed tests for 3.13.0b1
  * fix: allow to LOAD_FAST variables for TypeVars
  * fix: skip files with raise an recursion error in 3.13,
    because the recursion limit has no effect
  * test(3.13): added sample_results
  * test: skip module tests for now
  * refactor: review changes
  * fix: handle __firstlineno__
  * fix: removed unused verification
  * doc: review changes
  * Catch exception if node is in unexpected statement (#84)
  * test: optimized test preformance by moving deadcode check to the end (#89)
  * add 3.13 to setup.cfg classifiers
- Drop support-new-python-3.12.patch, merged upstream

OBS-URL: https://build.opensuse.org/request/show/1199807
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=15
2024-09-11 06:18:25 +00:00
3ad3114785 Accepting request 1195976 from devel:languages:python
- Switch to autosetup macro.
- Add patch support-new-python-3.12.patch:
  * Support Python 3.13 (and backported to 3.12.5) AST changes for For.

OBS-URL: https://build.opensuse.org/request/show/1195976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-executing?expand=0&rev=8
2024-08-29 13:42:30 +00:00
7db3dc595b - Switch to autosetup macro.
- Add patch support-new-python-3.12.patch:
  * Support Python 3.13 (and backported to 3.12.5) AST changes for For.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-executing?expand=0&rev=13
2024-08-26 02:32:35 +00:00
5 changed files with 31 additions and 14 deletions

BIN
executing-2.2.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3632cc370565f6648cc328b32435bd120a1e4ebb20c77e3fdde9a13cd1e533c4
size 1129488

View File

@@ -1,12 +1,3 @@
-------------------------------------------------------------------
Wed Sep 24 08:54:22 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 2.2.1
* fix: check for pytest compatibility
* fix: SentinelNodeFinder uses now mangled_name
* 3.14 support
- Drop support-pytest-8.4.patch, merged upstream
-------------------------------------------------------------------
Wed Jul 9 06:44:07 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-executing
#
# Copyright (c) 2025 SUSE LLC and contributors
# 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
@@ -26,12 +26,14 @@
%endif
%{?sle15_python_module_pythons}
Name: python-executing%{psuffix}
Version: 2.2.1
Version: 2.2.0
Release: 0
Summary: Get the currently executing AST node of a frame, and other information
License: MIT
URL: https://github.com/alexmojaki/executing
Source: https://files.pythonhosted.org/packages/source/e/executing/executing-%{version}.tar.gz
# PATCH-FIX-UPSTREAM One commit from gh#alexmojaki/executing#97
Patch0: support-pytest-8.4.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm >= 4.0.0}

24
support-pytest-8.4.patch Normal file
View File

@@ -0,0 +1,24 @@
From fae0dd2f4bd0e74b8a928e19407fd4167f4b2295 Mon Sep 17 00:00:00 2001
From: Frank Hoffmann <15r10nk-git@polarbit.de>
Date: Wed, 18 Jun 2025 22:20:25 +0200
Subject: [PATCH] fix: prevent pytest from thinking that Tester() could be a
test function
---
pyproject.toml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index d5cf1ab..226e061 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -14,4 +14,7 @@ warn_redundant_casts=true
[[tool.mypy.overrides]]
module = "astroid"
-ignore_missing_imports = true
\ No newline at end of file
+ignore_missing_imports = true
+
+[tool.pytest.ini_options]
+python_functions = "test_"