Sync from SUSE:SLFO:Main python-gast revision 6f8fd07b7eb60c885e66e425064808d3

This commit is contained in:
Adrian Schröter 2024-05-03 20:46:18 +02:00
commit d3a687f8d1
4 changed files with 141 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
gast-0.5.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

53
python-gast.changes Normal file
View File

@ -0,0 +1,53 @@
-------------------------------------------------------------------
Fri Apr 21 12:25:38 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:41:32 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Thu Jan 20 12:16:53 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 0.5.3:
+ Support gast.unparse.
- Changes from version 0.5.2:
+ Test field count more accurately.
- Changes from verison 0.5.1:
+ Support NamedExpr.
+ Cleanup and optimize the way gast builds its AST.
- Changes from version 0.5.0:
+ Support AST change for 3.10.
-------------------------------------------------------------------
Mon May 24 11:41:36 UTC 2021 - pgajdos@suse.com
- %check: use %pyunittest macro
-------------------------------------------------------------------
Wed Aug 26 06:01:54 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.4.0:
* Support Python 3.9
-------------------------------------------------------------------
Mon Apr 6 11:15:56 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 0.3.3
* Fix conversion of complex literals
* Fix Ellipsis support
* Fix conversion of arguments nodes in Python 3.8
* Use an immutable instead of a dict to store initial table
-------------------------------------------------------------------
Tue Sep 10 13:48:10 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.3.0:
* support python 3.8
-------------------------------------------------------------------
Mon Jul 29 11:05:26 UTC 2019 - Christian Goll <cgoll@suse.com>
- inital commit of gast created with py2pack version 0.2.2

62
python-gast.spec Normal file
View File

@ -0,0 +1,62 @@
#
# spec file for package python-gast
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define srcname gast
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-gast
Version: 0.5.3
Release: 0
Summary: Python AST that abstracts the underlying Python version
License: BSD-3-Clause
URL: https://github.com/serge-sans-paille/gast/
Source: https://github.com/serge-sans-paille/gast/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module astunparse}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST).
GAST provides a compatibility layer between the AST of various Python versions,
as produced by ``ast.parse`` from the standard ``ast`` module.
%prep
%setup -q -n gast-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest discover -v tests
%files %{python_files}
%{python_sitelib}/*
%doc README.rst
%license LICENSE
%changelog