From 21fd80d72ce8f99f0a7f5b918ac62a44ef7474293bb0b98b3a198801b3a7008e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 30 Oct 2025 04:12:56 +0000 Subject: [PATCH] - Update to 1.0.3: * Fix support for 3.14 (deprecated features actually being removed, so getattr use was incorrect). * Fix a sandbox escape via generators and _frame methods. * Supporting dictionary comprehensions * A custom exception rather than KeyError when names not found * Dropping support for old python versions * Various cleanups & tidying warnings, deprecation warnings etc. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simpleeval?expand=0&rev=19 --- python-simpleeval.changes | 12 ++++++++++++ python-simpleeval.spec | 12 ++++++------ simpleeval-0.9.13.tar.gz | 3 --- simpleeval-1.0.3.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 9 deletions(-) delete mode 100644 simpleeval-0.9.13.tar.gz create mode 100644 simpleeval-1.0.3.tar.gz diff --git a/python-simpleeval.changes b/python-simpleeval.changes index 83445a3..1763a3a 100644 --- a/python-simpleeval.changes +++ b/python-simpleeval.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Oct 30 04:11:38 UTC 2025 - Steve Kowalik + +- Update to 1.0.3: + * Fix support for 3.14 (deprecated features actually being removed, so + getattr use was incorrect). + * Fix a sandbox escape via generators and _frame methods. + * Supporting dictionary comprehensions + * A custom exception rather than KeyError when names not found + * Dropping support for old python versions + * Various cleanups & tidying warnings, deprecation warnings etc. + ------------------------------------------------------------------- Thu Jun 12 12:04:12 UTC 2025 - Markéta Machová diff --git a/python-simpleeval.spec b/python-simpleeval.spec index 7f333d7..d8d175d 100644 --- a/python-simpleeval.spec +++ b/python-simpleeval.spec @@ -1,7 +1,7 @@ # # spec file for package python-simpleeval # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2015-2024 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties @@ -20,15 +20,15 @@ %define modname simpleeval %{?sle15_python_module_pythons} Name: python-%{modname} -Version: 0.9.13 +Version: 1.0.3 Release: 0 Summary: A simple, safe single expression evaluator library License: MIT URL: https://github.com/danthedeckie/simpleeval Source0: https://files.pythonhosted.org/packages/source/s/simpleeval/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -63,7 +63,7 @@ to give full eval() access, or don’t want to run in javascript on the client s %doc README.rst %license LICENCE %{python_sitelib}/simpleeval.py -%pycache_only %{python_sitelib}/__pycache__/simpleeval* -%{python_sitelib}/simpleeval-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/simpleeval*pyc +%{python_sitelib}/simpleeval-%{version}.dist-info %changelog diff --git a/simpleeval-0.9.13.tar.gz b/simpleeval-0.9.13.tar.gz deleted file mode 100644 index b798c4c..0000000 --- a/simpleeval-0.9.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4a30f9cc01825fe4c719c785e3762623e350c4840d5e6855c2a8496baaa65fac -size 24535 diff --git a/simpleeval-1.0.3.tar.gz b/simpleeval-1.0.3.tar.gz new file mode 100644 index 0000000..c74e445 --- /dev/null +++ b/simpleeval-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67bbf246040ac3b57c29cf048657b9cf31d4e7b9d6659684daa08ca8f1e45829 +size 24358