1
0

Compare commits

...

11 Commits

Author SHA256 Message Date
2225355c1c 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
b4972a92de - 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/package/show/devel:languages:python/python-executing?expand=0&rev=26
2025-03-10 12:24:16 +00:00
c1711054df 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
99e2f9fe62 - Add pytest.patch to fix compatibility with new pytest
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
c9ffd7439b 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
86dd7e31f3 - 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
2bc77f1780 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
670786715f - 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
8079568381 - 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
234322b8d1 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
2c4a66a529 - Add new-python-312.patch to fix build with recent Python 3.12 release
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
5 changed files with 79 additions and 10 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
executing-2.1.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
executing-2.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,40 @@
-------------------------------------------------------------------
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>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-executing
#
# Copyright (c) 2024 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,25 +16,39 @@
#
%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.1.0
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
URL: https://github.com/alexmojaki/executing
Source: https://files.pythonhosted.org/packages/source/e/executing/executing-%{version}.tar.gz
BuildRequires: %{python_module asttokens}
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
@ -44,19 +58,34 @@ Get the currently executing AST node of a frame, and other information
%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}.dist-info
%endif
%changelog