From e70f7603d8a55c82caec825938c9477f21d19aa1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 12 Nov 2022 00:46:31 +0100 Subject: [PATCH] Skip asteval version 0.9.28 (#1176) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump asteval from 0.9.27 to 0.9.28 (but not really) This PR ensures asteval 0.9.28 is installed in the (user) environment prior to installing the pyglotaran package (through requirements_dev.txt), and then ensures that not that version of the package is installed when installing the package (through the exclusion in setup.cfg) * 🧪 Changed test to triggering bug in asteval 0.9.28 * 🚧 Exclude asteval 0.9.28 from allowed dependency versions Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: s-weigand --- glotaran/parameter/test/test_parameters.py | 2 +- requirements_dev.txt | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/glotaran/parameter/test/test_parameters.py b/glotaran/parameter/test/test_parameters.py index 6c317243d..91c8eceb5 100644 --- a/glotaran/parameter/test/test_parameters.py +++ b/glotaran/parameter/test/test_parameters.py @@ -76,7 +76,7 @@ def test_parameter_group_to_from_parameter_dict_list(): "b": [ ["total", 2], ["branch1", {"expr": "$b.total * $a.1"}], - ["branch2", {"expr": "$b.total * $a.2"}], + ["branch2", {"expr": "ln($b.total) * $a.2"}], ], } ) diff --git a/requirements_dev.txt b/requirements_dev.txt index 2d35a2672..9d08a46c1 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -3,7 +3,7 @@ pip>=18.0 wheel>=0.30.0 # glotaran setup dependencies -asteval==0.9.27 +asteval==0.9.28 attrs == 22.1.0 click==8.1.3 netCDF4==1.6.1 diff --git a/setup.cfg b/setup.cfg index 91d112b46..b08492677 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ project_urls = [options] packages = find: install_requires = - asteval>=0.9.22 + asteval!=0.9.28,>=0.9.22 attrs>=22.1.0 click>=8.1.3 netCDF4>=1.5.7