From cd846203476f062c60acbcaf29b161e1c4a5ca11aad0c4dab5d4025d16bca480 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:18:43 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs.parse?expand=0&rev=23 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + 1.3.1.tar.gz | 3 ++ 1.3.2.tar.gz | 3 ++ 1.3.3.tar.gz | 3 ++ python-calmjs.parse.changes | 88 +++++++++++++++++++++++++++++++++++++ python-calmjs.parse.spec | 63 ++++++++++++++++++++++++++ 7 files changed, 184 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1.3.1.tar.gz create mode 100644 1.3.2.tar.gz create mode 100644 1.3.3.tar.gz create mode 100644 python-calmjs.parse.changes create mode 100644 python-calmjs.parse.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/1.3.1.tar.gz b/1.3.1.tar.gz new file mode 100644 index 0000000..466a536 --- /dev/null +++ b/1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df7123f8a8b9154cf775e1d15df32c76c1d6f9ca83da202e65b6e893c4ccdc3f +size 152117 diff --git a/1.3.2.tar.gz b/1.3.2.tar.gz new file mode 100644 index 0000000..26c5457 --- /dev/null +++ b/1.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e70ed4314eb7272ce519bf3c4bb329b90b4e58825d89f4206d3cde721801dcbf +size 259661 diff --git a/1.3.3.tar.gz b/1.3.3.tar.gz new file mode 100644 index 0000000..e35b1d3 --- /dev/null +++ b/1.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c643ab6a0cbb66d515b37fd97d9c1bd59f2a0c70f07c47fa2673a3376689bf9 +size 259704 diff --git a/python-calmjs.parse.changes b/python-calmjs.parse.changes new file mode 100644 index 0000000..0d598dc --- /dev/null +++ b/python-calmjs.parse.changes @@ -0,0 +1,88 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:16 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + +------------------------------------------------------------------- +Mon Feb 3 14:57:11 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.3.3 + * Revert the usage of ``lru_cache`` as that isn't being hit as expected, + and that the benefits it brings is too negligible to bring back given + the extremely limited cache hits. + +------------------------------------------------------------------- +Tue Oct 22 13:58:56 UTC 2024 - Dirk Müller + +- update to 1.3.2: + * Ensure building from source tree under Python 3.13 works. + * Dropped support for building under Python 2 in source tree. [ + #44 ] + +------------------------------------------------------------------- +Fri Nov 10 11:43:35 UTC 2023 - Dirk Müller + +- update to 1.3.1: + * Modified existing ``setup.py`` hook from an install hook to a + build hook to ensure the generated module files are present. + Should any of those modules are missing and the required + dependencies for are not present (i.e. ``ply`` and + ``setuptools``), the build will result in a + non-zero exit status and the documented error message should + reflect which of the required dependencies are missing. + +------------------------------------------------------------------- +Fri Jun 23 08:05:31 UTC 2023 - Andreas Schneider + +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Wed Nov 17 17:52:41 UTC 2021 - Matej Cepl + +- Generated tables should get correct *.pyc files +- And no, this won't work with Python 2 modules. Just don't even + try. + +------------------------------------------------------------------- +Tue Nov 16 15:28:20 UTC 2021 - Matej Cepl + +- Update to 1.3.0: + - Introduce the extractor unparser - an unparser that will + unparse a valid AST into a dict. + - Correct the JoinAttr ruletype such that the intended empty + definition value is passed to walk if it was defined as such + to avoid an unintended infinite recursion. + - Will now import Iterable from the Python 3.3+ location as the + previous location is marked for removal in Python 3.9. The import + will still have a fallback to the previous location in order to + maintain support for Python 2.7. + - Provide a test case helper to ensure that the generic Program repr + signature is provided to assist with test case portability. + - In the calmjs.parse.vlq module, implemented the decode_vlq helper + for completeness/symmetry to the encode_vlq helper. + +------------------------------------------------------------------- +Mon Mar 30 09:24:12 UTC 2020 - Marketa Calabkova + +- Update to 1.2.4 + * Correct usage of ``__doc__`` to support level 2 optimized mode. + * Corrected some minor string definition syntax, where raw string prefix + should be used but was not previously. + * Correctly include LICENSE file in sdist. + * Include the correct test data general form for some previously added + test cases to better accommodate already planned future features. + +------------------------------------------------------------------- +Tue Jan 14 14:37:01 UTC 2020 - pgajdos@suse.com + +- fix build in SLE-15: set en_US.UTF-8 encoding + +------------------------------------------------------------------- +Mon Jan 6 15:13:55 UTC 2020 - Tomáš Chvátal + +- Do not package tests + +------------------------------------------------------------------- +Mon Jan 6 14:56:19 UTC 2020 - Tomáš Chvátal + +- Initial commit, needed by calmjs diff --git a/python-calmjs.parse.spec b/python-calmjs.parse.spec new file mode 100644 index 0000000..05715ac --- /dev/null +++ b/python-calmjs.parse.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-calmjs.parse +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-calmjs.parse +Version: 1.3.3 +Release: 0 +Summary: Various parsers for ECMA standards +License: MIT +URL: https://github.com/calmjs/calmjs.parse +Source: https://github.com/calmjs/calmjs.parse/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module ply >= 3.6} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-ply >= 3.6 +Requires: python-setuptools +BuildArch: noarch +%python_subpackages + +%description +A collection of parsers and helper libraries for understanding +ECMAScript; a near feature complete fork of slimit. + +%prep +%setup -q -n calmjs.parse-%{version} + +%build +export LANG=en_US.UTF-8 +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +%pyunittest -v calmjs.parse.tests.make_suite + +%files %{python_files} +%doc README.rst CHANGES.rst +%license LICENSE +%{python_sitelib}/calmjs +%{python_sitelib}/calmjs[-_]parse-%{version}.dist-info + +%changelog