diff --git a/astor-0.7.1.tar.gz b/astor-0.7.1.tar.gz deleted file mode 100644 index e9150b0..0000000 --- a/astor-0.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:444eba3e3012ae9ba9276df02a40bf694b9e68f6a95d36062b71aa26f1f3ff6c -size 36886 diff --git a/astor-0.8.tar.gz b/astor-0.8.tar.gz new file mode 100644 index 0000000..9e38661 --- /dev/null +++ b/astor-0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1161080b18ac49498e9a2fe6d4914072b06312fa4d373c980f61a907d86a00e +size 41000 diff --git a/python-astor.changes b/python-astor.changes index 9224c04..784b9b1 100644 --- a/python-astor.changes +++ b/python-astor.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Mon Jun 3 08:18:07 UTC 2019 - pgajdos@suse.com + +- version update to 0.8 + * Support ``ast.Constant`` nodes being emitted by Python 3.8 (and initially + created in Python 3.6). + (Reported and fixed by Chris Rink in `Issue 120`_ and `PR 121`_.) + * Support Python 3.8's assignment expressions. + (Reported and fixed by Kodi Arfer in `Issue 126`_ and `PR 134`_.) + * Support Python 3.8's f-string debugging syntax. + (Reported and fixed by Batuhan Taskaya in `Issue 138`_ and `PR 139`_.) + * :func:`astor.to_source` now has a *source_generator_class* parameter to + customize source code generation. + (Reported and fixed by matham in `Issue 113`_ and `PR 114`_.) + * The :class:`~SourceGenerator` class can now be imported from the + :mod:`astor` package directly. Previously, the ``astor.code_gen`` + submodule was needed to be imported. + * Support Python 3.8's positional only arguments. See :pep:`570` for + more details. + (Reported and fixed by Batuhan Taskaya in `Issue 142`_ and `PR 143`_.) + * bug fixes, see changelog.rst +- run the testsuite + ------------------------------------------------------------------- Fri Nov 9 12:03:52 UTC 2018 - Petr Cervinka diff --git a/python-astor.spec b/python-astor.spec index b08b056..8e31fec 100644 --- a/python-astor.spec +++ b/python-astor.spec @@ -1,7 +1,7 @@ # # spec file for package python-astor # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astor -Version: 0.7.1 +Version: 0.8 Release: 0 Summary: Read/rewrite/write Python ASTs License: BSD-3-Clause @@ -27,6 +27,10 @@ Group: Development/Languages/Python Url: https://github.com/berkerpeksag/astor Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module nose} +BuildRequires: python2-unittest2 +# /SECTION BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -70,8 +74,12 @@ sed -i 's@env @@' astor/rtrip.py %python_expand %fdupes %{buildroot}%{$python_sitelib} # fix executeable bits %python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py + +%check +%python_expand nosetests-%{$python_bin_suffix} -v + %files %{python_files} -%doc AUTHORS README.rst +%doc AUTHORS README.rst docs/*.rst %license LICENSE %{python_sitelib}/*