Accepting request 707075 from home:pgajdos
- 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 OBS-URL: https://build.opensuse.org/request/show/707075 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astor?expand=0&rev=5
This commit is contained in:
parent
06abf71657
commit
584e9ff98f
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:444eba3e3012ae9ba9276df02a40bf694b9e68f6a95d36062b71aa26f1f3ff6c
|
|
||||||
size 36886
|
|
3
astor-0.8.tar.gz
Normal file
3
astor-0.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e1161080b18ac49498e9a2fe6d4914072b06312fa4d373c980f61a907d86a00e
|
||||||
|
size 41000
|
@ -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 <petr@cervinka.net>
|
Fri Nov 9 12:03:52 UTC 2018 - Petr Cervinka <petr@cervinka.net>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-astor
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,7 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
|
||||||
Name: python-astor
|
Name: python-astor
|
||||||
Version: 0.7.1
|
Version: 0.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Read/rewrite/write Python ASTs
|
Summary: Read/rewrite/write Python ASTs
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -27,6 +27,10 @@ Group: Development/Languages/Python
|
|||||||
Url: https://github.com/berkerpeksag/astor
|
Url: https://github.com/berkerpeksag/astor
|
||||||
Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
|
Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
|
BuildRequires: python2-unittest2
|
||||||
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -70,8 +74,12 @@ sed -i 's@env @@' astor/rtrip.py
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
# fix executeable bits
|
# fix executeable bits
|
||||||
%python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
|
%python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
|
||||||
|
|
||||||
|
%check
|
||||||
|
%python_expand nosetests-%{$python_bin_suffix} -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS README.rst
|
%doc AUTHORS README.rst docs/*.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user