forked from pool/python-calmjs.parse
Accepting request 931812 from devel:languages:python
- 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.
OBS-URL: https://build.opensuse.org/request/show/931812
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-calmjs.parse?expand=0&rev=4
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1cc499ba27ae5752973aa70bba54a2cd3beeb33a8f01ee5d5a911bf5b139229a
|
||||
size 128430
|
||||
3
1.3.0.tar.gz
Normal file
3
1.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ab954752724fd24af9c36a54ea9ed566f7845881d9aab665b4923373d0bf47cc
|
||||
size 147176
|
||||
@@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 16 15:28:20 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- 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 <mcalabkova@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-calmjs.parse
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,14 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-calmjs.parse
|
||||
Version: 1.2.4
|
||||
Version: 1.3.0
|
||||
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 ply >= 3.6}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -47,13 +46,13 @@ export LANG=en_US.UTF-8
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/calmjs/parse/testing
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/calmjs/parse/tests
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m calmjs.parse.parsers.optimize
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest
|
||||
%pyunittest -v calmjs.parse.tests.make_suite
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst CHANGES.rst
|
||||
|
||||
Reference in New Issue
Block a user