diff --git a/asteval-1.0.0.tar.gz b/asteval-1.0.0.tar.gz deleted file mode 100644 index 78f7dcb..0000000 --- a/asteval-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03abb8c4057123e52c9052ff5745ffa0c7022aa73383e6143f2357098a1698d5 -size 49426 diff --git a/asteval-1.0.2.tar.gz b/asteval-1.0.2.tar.gz new file mode 100644 index 0000000..c593b7a --- /dev/null +++ b/asteval-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00e27d9dc565858056d04ebf741f9db4dc4ba319ac3517d094b1608e7f73fa6a +size 49933 diff --git a/python-asteval.changes b/python-asteval.changes index a6c4f62..1d53884 100644 --- a/python-asteval.changes +++ b/python-asteval.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Fri Aug 9 06:56:27 UTC 2024 - Dirk Müller + +- update to 1.0.2: + * fix NameError handling in expression code + * make exception messages more Python-like + +- update to 1.0.1: + * security fixes, based on audit by Andrew Effenhauser, Ayman + Hammad, and Daniel Crowley, IBM X-Force Security Research + division + * remove numpy modules polynomial, fft, linalg by default for + security concerns + * disallow string.format(), improve security of f-string + evaluation + ------------------------------------------------------------------- Tue Jul 2 20:14:13 UTC 2024 - Dirk Müller diff --git a/python-asteval.spec b/python-asteval.spec index 042be19..8fb031b 100644 --- a/python-asteval.spec +++ b/python-asteval.spec @@ -16,25 +16,25 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-asteval -Version: 1.0.0 +Version: 1.0.2 Release: 0 Summary: Safe, minimalistic evaluator of python expression using ast module License: MIT Group: Development/Languages/Python URL: https://github.com/lmfit/asteval Source: https://files.pythonhosted.org/packages/source/a/asteval/asteval-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module numpy if (%python-base without python36-base)} # /SECTION %python_subpackages @@ -54,10 +54,10 @@ using the values in the symbol table current at evaluation time. sed -i -e '/^#!\//, 1d' asteval/asteval.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -66,6 +66,7 @@ sed -i -e '/^#!\//, 1d' asteval/asteval.py %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/asteval +%{python_sitelib}/asteval-%{version}.dist-info %changelog