Compare commits
17 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 181ef9981a | |||
| c49f002765 | |||
| 65948bc864 | |||
| 9d8e262859 | |||
| 53df145f50 | |||
| 76a1339ad5 | |||
| 5925b6584a | |||
| 4a62345022 | |||
| 807b6c0e89 | |||
| ee17b606c2 | |||
| d5c89fd063 | |||
| e8945b7c1c | |||
| a7ace95cae | |||
| cfa231553e | |||
| af4add8dcf | |||
| 3ad3114785 | |||
| 7db3dc595b |
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:35afe2ce3affba8ee97f2d69927fa823b08b472b7b994e36a52a964b93d16147
|
||||
size 836501
|
||||
BIN
executing-2.2.0.tar.gz
LFS
Normal file
BIN
executing-2.2.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,86 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 9 06:44:07 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-pytest-8.4.patch:
|
||||
* Do not allow pytest to collect non-test functions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 10 09:25:36 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 17 16:19:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add pytest.patch to fix compatibility with new pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 23 13:02:57 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Remove ipython dependency for Leap
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 26 09:27:25 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Split test run into separate build using _multibuild.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 20 20:29:20 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- The test suite has to be run with pytest, unittest is not enough
|
||||
- Add missing BuildRequires: ipython
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 18 06:18:15 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add new-python-312.patch to fix build with recent Python 3.12 release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 10 07:06:40 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 26 02:31:27 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 7 18:46:01 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-executing
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# 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
|
||||
@@ -16,48 +16,78 @@
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-executing
|
||||
Version: 2.0.1
|
||||
Name: python-executing%{psuffix}
|
||||
Version: 2.2.0
|
||||
Release: 0
|
||||
Summary: Get the currently executing AST node of a frame, and other information
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/alexmojaki/executing
|
||||
Source: https://files.pythonhosted.org/packages/source/e/executing/executing-%{version}.tar.gz
|
||||
BuildRequires: %{python_module asttokens}
|
||||
# PATCH-FIX-UPSTREAM One commit from gh#alexmojaki/executing#97
|
||||
Patch0: support-pytest-8.4.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module littleutils}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm >= 4.0.0}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module asttokens}
|
||||
%if 0%{?suse_version} > 1600
|
||||
BuildRequires: %{python_module ipython}
|
||||
%endif
|
||||
BuildRequires: %{python_module littleutils}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module rich}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Get the currently executing AST node of a frame, and other information
|
||||
|
||||
%prep
|
||||
%setup -q -n executing-%{version}
|
||||
%autosetup -p1 -n executing-%{version}
|
||||
|
||||
%build
|
||||
%if %{without test}
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if %{without test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%check
|
||||
%pyunittest discover -v
|
||||
%if %{with test}
|
||||
|
||||
# Don't have ipython build requirement in Leap
|
||||
%if 0%{?suse_version} <= 1600
|
||||
%pytest -k "not test_ipython"
|
||||
%else
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%if %{without test}
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/executing
|
||||
%{python_sitelib}/executing-%{version}*-info
|
||||
%{python_sitelib}/executing-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
24
support-pytest-8.4.patch
Normal file
24
support-pytest-8.4.patch
Normal 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_"
|
||||
Reference in New Issue
Block a user