14
0
forked from pool/python-pyp

Compare commits

6 Commits

Author SHA256 Message Date
92e2bebc03 Accepting request 1319990 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1319990
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyp?expand=0&rev=6
2025-11-25 15:22:47 +00:00
af53a1a732 - Added python314-tests.patch to skips new internal Python 3.14 annotation helper variables
- Add python314-tests.patch to fix tests with Python 3.14

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyp?expand=0&rev=12
2025-11-25 12:53:18 +00:00
b582fa9c3c Accepting request 1233502 from devel:languages:python
- Update to 1.3.0:
  - Add support for Python 3.13
  - Turn missing config file into a warning instead of an error
  - Add support for __pyp_before__ configuration for permanent
    before code

OBS-URL: https://build.opensuse.org/request/show/1233502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyp?expand=0&rev=5
2024-12-29 10:56:47 +00:00
b9f5b78e1f - Update to 1.3.0:
- Add support for Python 3.13
  - Turn missing config file into a warning instead of an error
  - Add support for __pyp_before__ configuration for permanent
    before code

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyp?expand=0&rev=10
2024-12-27 09:04:31 +00:00
15a1dd49c6 Accepting request 1229391 from devel:languages:python
- Skip failing tests for Python 3.13 (gh#hauntsaninja/pyp#40).

OBS-URL: https://build.opensuse.org/request/show/1229391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyp?expand=0&rev=4
2024-12-09 20:12:54 +00:00
6a83bba41f - Skip failing tests for Python 3.13 (gh#hauntsaninja/pyp#40).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyp?expand=0&rev=8
2024-12-09 13:03:36 +00:00
3 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 25 12:47:39 UTC 2025 - Marius Grossu <marius.grossu@suse.com>
- Add python314-tests.patch to fix tests with Python 3.14
-------------------------------------------------------------------
Fri Dec 27 09:01:06 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyp
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2020-2021 LISA GmbH, Bingen, Germany
#
# All modifications and additions to the file contributed by third parties
@@ -26,6 +26,8 @@ License: MIT
Group: Development/Libraries/Python
URL: https://github.com/hauntsaninja/pyp
Source0: https://github.com/hauntsaninja/pyp/archive/v%{version}.tar.gz#/pyp-%{version}.tar.gz
# PATCH-FIX-UPSTREAM python314-tests.patch gh#hauntsaninja/pyp#45
Patch0: python314-tests.patch
BuildRequires: %{python_module astunparse}
BuildRequires: %{python_module base}
BuildRequires: %{python_module flit-core}

13
python314-tests.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: pyp-1.3.0/tests/test_find_names.py
===================================================================
--- pyp-1.3.0.orig/tests/test_find_names.py
+++ pyp-1.3.0/tests/test_find_names.py
@@ -41,6 +41,8 @@ def check_find_names(
exec_locals = set(exec_locals)
exec_locals -= {"__builtins__", "__annotations__"}
+ # Python 3.14+ introduces extra internal annotation symbols
+ exec_locals -= {"__annotate__", "__conditional_annotations__"}
# In general, we over define things, because we don't deal with scopes and such. So just check
# a subset relationship holds, we could tighten this check in the future.
assert exec_locals <= defined