commit 7b0983d0e5256a6e938ff16035c1519a7a003c2eb6bc6f355327b6a44f520040 Author: Matej Cepl Date: Mon Jul 22 11:57:59 2024 +0000 Accepting request 1188979 from home:glaubitz:branches:devel:languages:python - Update to 0.6.0 * Harmonize gast.dump behavior across versions, following py3.13 behavior - from version 0.5.5 * Provide a bug and security bug section in the README * Upgrade to py3.13 support * Slightly speedup gast node creation * Document ExceptHandler.name change * Optimize node constructors * Update unparser for py 3.12 and setup minimal testing * Reflect AST changes to README * Support py 3.12 type parameters * Update CI configuration for python 3.12 (and 2.7!) * Support Type aliases from Python 3.12 OBS-URL: https://build.opensuse.org/request/show/1188979 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gast?expand=0&rev=28 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gast-0.5.4.tar.gz b/gast-0.5.4.tar.gz new file mode 100644 index 0000000..6b37145 --- /dev/null +++ b/gast-0.5.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eae411c3ffa92404c87d7c0ba6db0ea0e2fa0d98d95e65ed58b8ccc1c2b349b3 +size 24784 diff --git a/gast-0.6.0.tar.gz b/gast-0.6.0.tar.gz new file mode 100644 index 0000000..54d2b72 --- /dev/null +++ b/gast-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bb63fb394e08389b5f99c1cc3c5b1fb73e7207d90c9f17939d9d34cc85a1c1e +size 27216 diff --git a/python-gast.changes b/python-gast.changes new file mode 100644 index 0000000..799225b --- /dev/null +++ b/python-gast.changes @@ -0,0 +1,102 @@ +------------------------------------------------------------------- +Mon Jul 22 09:49:36 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 0.6.0 + * Harmonize gast.dump behavior across versions, following py3.13 behavior +- from version 0.5.5 + * Provide a bug and security bug section in the README + * Upgrade to py3.13 support + * Slightly speedup gast node creation + * Document ExceptHandler.name change + * Optimize node constructors + * Update unparser for py 3.12 and setup minimal testing + * Reflect AST changes to README + * Support py 3.12 type parameters + * Update CI configuration for python 3.12 (and 2.7!) + * Support Type aliases from Python 3.12 + +------------------------------------------------------------------- +Sun Jun 30 20:51:12 UTC 2024 - Dirk Müller + +- add comment on interdependency with pythran + +------------------------------------------------------------------- +Wed Jan 3 10:02:57 UTC 2024 - Dirk Müller + +- require setuptools + +------------------------------------------------------------------- +Fri Oct 20 21:23:20 UTC 2023 - Matej Cepl + +- Remove unnecessary BR on python-astunparse + +------------------------------------------------------------------- +Tue Oct 10 13:44:16 UTC 2023 - Matej Cepl + +- Once more on the breach! Update to 0.5.4 (see changes below). + +------------------------------------------------------------------- +Wed May 17 14:37:48 UTC 2023 - Dirk Müller + +- go back to 0.5.3 + +------------------------------------------------------------------- +Sun May 14 12:52:11 UTC 2023 - Dirk Müller + +- update to 0.5.4: + * Support TryStar from python 3.11 + * Support match statement from python 3.10 + +------------------------------------------------------------------- +Fri Apr 21 12:25:38 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:32 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Thu Jan 20 12:16:53 UTC 2022 - Dominique Leuenberger + +- 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 + +- Update to 0.4.0: + * Support Python 3.9 + +------------------------------------------------------------------- +Mon Apr 6 11:15:56 UTC 2020 - Marketa Calabkova + +- 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 + +- Update to 0.3.0: + * support python 3.8 + +------------------------------------------------------------------- +Mon Jul 29 11:05:26 UTC 2019 - Christian Goll + +- inital commit of gast created with py2pack version 0.2.2 diff --git a/python-gast.spec b/python-gast.spec new file mode 100644 index 0000000..829988c --- /dev/null +++ b/python-gast.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-gast +# +# Copyright (c) 2024 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/ +# + + +%{?sle15_python_module_pythons} +%define srcname gast +Name: python-gast +# only update when python-pythran is compatible +Version: 0.6.0 +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 pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +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 +%autosetup -p1 -n gast-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v tests + +%files %{python_files} +%{python_sitelib}/gast +%{python_sitelib}/gast-%{version}*-info +%doc README.rst +%license LICENSE + +%changelog