diff --git a/jmespath-0.7.1.tar.gz b/jmespath-0.7.1.tar.gz deleted file mode 100644 index 77537d0..0000000 --- a/jmespath-0.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd5a12ee3dfa470283a020a35e69e83b0700d44fe413014fd35ad5584c5f5fd1 -size 19696 diff --git a/jmespath-0.9.0.tar.gz b/jmespath-0.9.0.tar.gz new file mode 100644 index 0000000..46808a9 --- /dev/null +++ b/jmespath-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08dfaa06d4397f283a01e57089f3360e3b52b5b9da91a70e1fd91e9f0cdd3d3d +size 20855 diff --git a/python-jmespath.changes b/python-jmespath.changes index 475b7e2..0e1744e 100644 --- a/python-jmespath.changes +++ b/python-jmespath.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Mon Feb 1 11:24:14 UTC 2016 - toddrme2178@gmail.com + +- Update to version 0.9.0 + * Add support for new lines with tokens in an expression + * Add support for `JEP 9 `__, + which introduces "and" expressions, "unary" expressions, "not" expressions, + and "paren" expressions + * Fix issue with hardcoded path in ``jp.py`` executable + (`issue 90 `__, + `issue 88 `__, + `issue 82 `__) +- Update to version 0.8.0 + * Improve lexing performance (`issue 84 `__) + * Fix parsing error for multiselect lists (`issue 86 `__) + * Fix issue with escaping single quotes in literal strings (`issue 85 `__) + * Add support for providing your own dict cls to support + ordered dictionaries (`issue 94 `__) + * Add map() function (`issue 95 `__) + +------------------------------------------------------------------- +Wed Jan 20 19:42:39 UTC 2016 - rjschwei@suse.com + +- Fix build issues for SLE 11 + + More test dependencies required + +------------------------------------------------------------------- +Wed Jan 20 19:08:32 UTC 2016 - rjschwei@suse.com + +- Manage the jp executable with update-alternatives now that + python3-jmespath exists +- spec file improvements + ------------------------------------------------------------------- Wed May 27 17:04:07 UTC 2015 - rjschwei@suse.com diff --git a/python-jmespath.spec b/python-jmespath.spec index c2928a4..bc8a8da 100644 --- a/python-jmespath.spec +++ b/python-jmespath.spec @@ -1,7 +1,7 @@ # # spec file for package python-jmespath # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,19 +19,27 @@ %define baseName jmespath Name: python-jmespath -Version: 0.7.1 +Version: 0.9.0 Release: 0 Summary: Extract elements from JSON document License: MIT Group: Development/Languages/Python Url: https://github.com/boto/jmespath Source0: https://pypi.python.org/packages/source/j/%{baseName}/%{baseName}-%{version}.tar.gz -Requires: python +Requires: python-base Requires: python-ply >= 3.4 -BuildRequires: python +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildRequires: python-devel -BuildRequires: python-ply +BuildRequires: python-ply >= 3.4 BuildRequires: python-setuptools +# For testing +BuildRequires: python-nose +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +BuildRequires: python-ordereddict +%endif +BuildRequires: python-simplejson +BuildRequires: python-unittest2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -79,17 +87,25 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir} pushd %{buildroot}/%{_bindir} -ln -s jp.py jp +mv jp.py jp-%{py_ver} popd +%check +nosetests tests + +%post +"%_sbindir/update-alternatives" --install %{_bindir}/jp jp %{_bindir}/jp-%{py_ver} 30 + +%postun +if [ $1 -eq 0 ] ; then + "%_sbindir/update-alternatives" --remove jp %{_bindir}/jp-%{py_ver} +fi + %files %defattr(-,root,root,-) %doc LICENSE.txt README.rst -%dir %{python_sitelib}/jmespath -%dir %{python_sitelib}/%{baseName}-%{version}-py%{py_ver}.egg-info -%{_bindir}/jp -%{_bindir}/jp.py -%{python_sitelib}/jmespath/* -%{python_sitelib}/*egg-info/* +%{_bindir}/jp-%{py_ver} +%{python_sitelib}/jmespath/ +%{python_sitelib}/%{baseName}-%{version}-py%{py_ver}.egg-info/ %changelog