From b8b8e4e962f8fbbab3a5b967a25a0568101d64eebc0db8c299ee8619ba9cba30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 16:35:53 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-baron?expand=0&rev=10 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + baron-0.10.1.tar.gz | 3 ++ python-baron.changes | 39 +++++++++++++++++++++++++ python-baron.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 135 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baron-0.10.1.tar.gz create mode 100644 python-baron.changes create mode 100644 python-baron.spec 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/baron-0.10.1.tar.gz b/baron-0.10.1.tar.gz new file mode 100644 index 0000000..e59b5ba --- /dev/null +++ b/baron-0.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af822ad44d4eb425c8516df4239ac4fdba9fdb398ef77e4924cd7c9b4045bc2f +size 1020211 diff --git a/python-baron.changes b/python-baron.changes new file mode 100644 index 0000000..07f2dcb --- /dev/null +++ b/python-baron.changes @@ -0,0 +1,39 @@ +------------------------------------------------------------------- +Tue May 13 16:14:48 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sun Jan 23 16:29:03 UTC 2022 - Dirk Müller + +- update to 0.10.1: + * bug fix: in "a._" the "._" part was incorrectly recognized as a float + * bug fix: baron is now able to parse "class A(b, c=d): pass" + * some project cleaned and integration of tox with good pratices like flake8 and check-manifest + * bug fix for missing edge case in inner formatting + * complet support for float with underscores in them + * bug fix for failure of parsing of "{**a}" + +------------------------------------------------------------------- +Wed Mar 6 13:42:26 UTC 2019 - Tomáš Chvátal + +- Update to 0.9: + * BREAKING CHANGE: annotations are now member of {def,list,dict}_argument to flatten the data structure + * add support for ... in from import by bram + * add support for return annotation by bram + * add support for exec function by bram + * add support for variable annotation #145 by scottbelden and additional work by bram + * add support for *var expressions in tuple assignment by bram + * add support for raise from #120 by odcinek with additional work by bram + * add support for arglist usage in class definition inheritence by bram + * bug fix by 91e839a kyleatmakrs + +------------------------------------------------------------------- +Tue Dec 4 11:42:45 UTC 2018 - Jan Engelhardt + +- Grammar fix. + +------------------------------------------------------------------- +Fri Oct 20 16:13:40 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-baron.spec b/python-baron.spec new file mode 100644 index 0000000..dc6f6f2 --- /dev/null +++ b/python-baron.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-baron +# +# Copyright (c) 2025 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/ +# + + +Name: python-baron +Version: 0.10.1 +Release: 0 +Summary: Full Syntax Tree for Python +License: LGPL-3.0-or-later +Group: Development/Languages/Python +URL: https://github.com/PyCQA/baron +Source0: https://files.pythonhosted.org/packages/source/b/baron/baron-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-rply +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module rply} +# /SECTION +%python_subpackages + +%description +Baron is a Full Syntax Tree (FST) library for Python. In contrast +to an AST which drops some syntax information in the process of its +creation (like empty lines, comments, formatting), a FST keeps +everything and guarantees the operation +fst_to_code(code_to_fst(source_code)) == source_code. + +%prep +%setup -q -n baron-%{version} +# remove cache files accidentaly put in sdist +rm -f tests/*.pyc +rm -r tests/__pycache__ + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests/ + +%files %{python_files} +%doc CHANGELOG README.md +%license LICENSE +%{python_sitelib}/baron +%{python_sitelib}/baron-%{version}*-info + +%changelog