15
0
forked from pool/python-astor

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:
Tomáš Chvátal
2019-06-03 08:34:01 +00:00
committed by Git OBS Bridge
parent 06abf71657
commit 584e9ff98f
4 changed files with 37 additions and 6 deletions

View File

@@ -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}/*