Hello community, here is the log from the commit of package python-asteval for openSUSE:Factory checked in at 2019-10-30 14:43:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-asteval (Old) and /work/SRC/openSUSE:Factory/.python-asteval.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-asteval" Wed Oct 30 14:43:48 2019 rev:6 rq:743739 version:0.9.16 Changes: -------- --- /work/SRC/openSUSE:Factory/python-asteval/python-asteval.changes 2019-09-16 10:50:50.763168785 +0200 +++ /work/SRC/openSUSE:Factory/.python-asteval.new.2990/python-asteval.changes 2019-10-30 14:43:49.749927793 +0100 @@ -1,0 +2,6 @@ +Tue Oct 29 05:01:27 UTC 2019 - Todd R <[email protected]> + +- Update to 0.9.16 + * auto-run codecov only if numpy is installed + +------------------------------------------------------------------- Old: ---- asteval-0.9.15.tar.gz New: ---- asteval-0.9.16.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-asteval.spec ++++++ --- /var/tmp/diff_new_pack.OsqW0j/_old 2019-10-30 14:43:50.189928261 +0100 +++ /var/tmp/diff_new_pack.OsqW0j/_new 2019-10-30 14:43:50.189928261 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-asteval -Version: 0.9.15 +Version: 0.9.16 Release: 0 Summary: Safe, minimalistic evaluator of python expression using ast module License: MIT ++++++ asteval-0.9.15.tar.gz -> asteval-0.9.16.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/.gitattributes new/asteval-0.9.16/.gitattributes --- old/asteval-0.9.15/.gitattributes 1970-01-01 01:00:00.000000000 +0100 +++ new/asteval-0.9.16/.gitattributes 2019-10-22 14:15:26.000000000 +0200 @@ -0,0 +1 @@ +asteval/_version.py export-subst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/.gitignore new/asteval-0.9.16/.gitignore --- old/asteval-0.9.15/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/asteval-0.9.16/.gitignore 2019-10-22 14:15:26.000000000 +0200 @@ -0,0 +1,12 @@ +*.pyc +*~ +*# +.coverage +NonGit/ +doc/_build +doc/*.pdf +build +dist +*.egg-info + +MANIFEST diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/.travis.yml new/asteval-0.9.16/.travis.yml --- old/asteval-0.9.15/.travis.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/asteval-0.9.16/.travis.yml 2019-10-22 14:15:26.000000000 +0200 @@ -0,0 +1,38 @@ +# Config file for automatic testing at travis-ci.org + +language: python +sudo: false + +python: + - 2.7 + - 3.5 + - 3.6 + - 3.7 + +env: + - version=without_numpy + - version=with_numpy + +before_install: + - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh + - bash miniconda.sh -b -p $HOME/miniconda + - export PATH="$HOME/miniconda/bin:$PATH" + - hash -r + - conda config --set always_yes yes --set changeps1 no + - conda update -q conda + - conda info -a + +install: + - conda create -q -n test_env python=$TRAVIS_PYTHON_VERSION pytest coverage + - source activate test_env + - if [[ $version == with_numpy ]]; then conda install numpy ; fi + - python setup.py install + - pip install codecov + +script: + - cd tests + - pytest + - if [[ $version == with_numpy ]]; then coverage run --source=asteval test_asteval.py && coverage report -m ; fi + +after_success: + - if [[ $version == with_numpy ]]; then codecov ; fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/PKG-INFO new/asteval-0.9.16/PKG-INFO --- old/asteval-0.9.15/PKG-INFO 2019-08-22 19:02:25.000000000 +0200 +++ new/asteval-0.9.16/PKG-INFO 2019-10-22 14:16:02.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: asteval -Version: 0.9.15 +Version: 0.9.16 Summary: Safe, minimalistic evaluator of python expression using ast module Home-page: http://github.com/newville/asteval Author: Matthew Newville diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/asteval/_version.py new/asteval-0.9.16/asteval/_version.py --- old/asteval-0.9.15/asteval/_version.py 2019-08-22 19:02:25.000000000 +0200 +++ new/asteval-0.9.16/asteval/_version.py 2019-10-22 14:16:02.000000000 +0200 @@ -8,11 +8,11 @@ version_json = ''' { - "date": "2019-08-22T11:55:58-0500", + "date": "2019-10-22T07:06:26-0500", "dirty": false, "error": null, - "full-revisionid": "2653ec36996153ce230d785ba47739ff007e9ffa", - "version": "0.9.15" + "full-revisionid": "fa1b9c2711551f8620bed9b1eb4f9faf686f1b7a", + "version": "0.9.16" } ''' # END VERSION_JSON diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/asteval/asteval.py new/asteval-0.9.16/asteval/asteval.py --- old/asteval-0.9.15/asteval/asteval.py 2019-08-22 17:59:36.000000000 +0200 +++ new/asteval-0.9.16/asteval/asteval.py 2019-10-22 14:15:26.000000000 +0200 @@ -58,7 +58,7 @@ 'for', 'functiondef', 'if', 'ifexp', 'index', 'interrupt', 'list', 'listcomp', 'module', 'name', 'nameconstant', 'num', 'pass', 'print', 'raise', 'repr', 'return', 'slice', 'str', - 'subscript', 'try', 'tuple', 'unaryop', 'while'] + 'subscript', 'try', 'tuple', 'unaryop', 'while', 'constant'] PY3 = check_pyversion() @@ -423,6 +423,10 @@ return dict([(self.run(k), self.run(v)) for k, v in zip(node.keys, node.values)]) + def on_constant(self, node): # ('value', 'kind') + """Return constant value.""" + return node.value + def on_num(self, node): # ('n',) """Return number.""" return node.n diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/asteval/astutils.py new/asteval-0.9.16/asteval/astutils.py --- old/asteval-0.9.15/asteval/astutils.py 2019-08-22 18:04:11.000000000 +0200 +++ new/asteval-0.9.16/asteval/astutils.py 2019-10-22 14:15:26.000000000 +0200 @@ -319,7 +319,7 @@ self.exc_info = exc_info() if self.exc is None and self.exc_info[0] is not None: self.exc = self.exc_info[0] - if self.msg is '' and self.exc_info[1] is not None: + if self.msg == '' and self.exc_info[1] is not None: self.msg = self.exc_info[1] def get_error(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/asteval.egg-info/PKG-INFO new/asteval-0.9.16/asteval.egg-info/PKG-INFO --- old/asteval-0.9.15/asteval.egg-info/PKG-INFO 2019-08-22 19:02:25.000000000 +0200 +++ new/asteval-0.9.16/asteval.egg-info/PKG-INFO 2019-10-22 14:16:02.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: asteval -Version: 0.9.15 +Version: 0.9.16 Summary: Safe, minimalistic evaluator of python expression using ast module Home-page: http://github.com/newville/asteval Author: Matthew Newville diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/asteval.egg-info/SOURCES.txt new/asteval-0.9.16/asteval.egg-info/SOURCES.txt --- old/asteval-0.9.15/asteval.egg-info/SOURCES.txt 2019-08-22 19:02:25.000000000 +0200 +++ new/asteval-0.9.16/asteval.egg-info/SOURCES.txt 2019-10-22 14:16:02.000000000 +0200 @@ -1,7 +1,11 @@ +.gitattributes +.gitignore +.travis.yml INSTALL LICENSE MANIFEST.in README.rst +requirements.txt setup.cfg setup.py versioneer.py @@ -22,4 +26,6 @@ doc/motivation.rst doc/_static/empty doc/_templates/indexsidebar.html +tests/A.py +tests/m.py tests/test_asteval.py \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/requirements.txt new/asteval-0.9.16/requirements.txt --- old/asteval-0.9.15/requirements.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/asteval-0.9.16/requirements.txt 2019-10-22 14:15:26.000000000 +0200 @@ -0,0 +1,5 @@ +## +## pip requirements file. To install dependencies, use +## +## pip install -r requirements.txt +## numpy>=1.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/tests/A.py new/asteval-0.9.16/tests/A.py --- old/asteval-0.9.15/tests/A.py 1970-01-01 01:00:00.000000000 +0100 +++ new/asteval-0.9.16/tests/A.py 2018-09-21 02:52:44.000000000 +0200 @@ -0,0 +1,18 @@ +import sys +from asteval import Interpreter +aeval = Interpreter() + +script = """ +def tmp(x): + return tmp(x+1) +## +""" + +aeval(script) + +for rec_limit in (50, 100, 200, 500, 1000, 2000, 5000, 10000): + sys.setrecursionlimit(rec_limit) + aeval('tmp(33)') + msg = aeval.error_msg + if msg is not None: + print("rec limit=%d, length of error messge=%d" % (rec_limit, len(msg))) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asteval-0.9.15/tests/m.py new/asteval-0.9.16/tests/m.py --- old/asteval-0.9.15/tests/m.py 1970-01-01 01:00:00.000000000 +0100 +++ new/asteval-0.9.16/tests/m.py 2018-09-21 02:33:45.000000000 +0200 @@ -0,0 +1,8 @@ +from asteval import Interpreter + +aeval = Interpreter() + +text = """ +def foo(): + return foo() +"""
