forked from pool/python-pyp
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 92e2bebc03 | |||
| af53a1a732 | |||
| b582fa9c3c | |||
| b9f5b78e1f | |||
| 15a1dd49c6 | |||
| 6a83bba41f |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9ca70307af36d888027cc5c2a44a7585e2f0b1dddadadc8fa025cce1521149f7
|
||||
size 25955
|
||||
3
pyp-1.3.0.tar.gz
Normal file
3
pyp-1.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0f140c19947676846c426515733b0be9ced8836068f7cba83ed210bbe80e0649
|
||||
size 26385
|
||||
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 9 13:03:02 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Skip failing tests for Python 3.13 (gh#hauntsaninja/pyp#40).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 26 13:06:58 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -19,13 +19,15 @@
|
||||
|
||||
%define skip_python2 1
|
||||
Name: python-pyp
|
||||
Version: 1.2.0
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: Python at the shell
|
||||
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}
|
||||
@@ -64,7 +66,7 @@ sed -i '/^#!\//, 1d' pyp.py
|
||||
%check
|
||||
export PATH=$(pwd):$PATH
|
||||
%{python_expand ln -sf %{buildroot}%{_bindir}/pyp-%{$python_bin_suffix} pyp
|
||||
PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -vv
|
||||
PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -vv "$( [ -n "${skip_tests_$python}" ] && printf "%s" '-k not ('"${skip_tests_$python}"')')"
|
||||
}
|
||||
|
||||
%post
|
||||
|
||||
13
python314-tests.patch
Normal file
13
python314-tests.patch
Normal 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
|
||||
Reference in New Issue
Block a user