15
0

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asteval?expand=0&rev=38
This commit is contained in:
2024-08-09 06:58:52 +00:00
committed by Git OBS Bridge
parent 3778f16399
commit 34dd94b27d
4 changed files with 27 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:03abb8c4057123e52c9052ff5745ffa0c7022aa73383e6143f2357098a1698d5
size 49426

3
asteval-1.0.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00e27d9dc565858056d04ebf741f9db4dc4ba319ac3517d094b1608e7f73fa6a
size 49933

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Fri Aug 9 06:56:27 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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