Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c03f022770 | |||
| 809dcea2f3 | |||
| 2915260fb5 | |||
| aa1d571cbc |
@@ -1,8 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyp
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2020-2021 LISA GmbH, Bingen, Germany
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -26,8 +26,6 @@ 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}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user