15
0
Files
python-calmjs.parse/python-calmjs.parse.spec
Matej Cepl 9b724e90bf - Update to 1.2.5:
- 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/package/show/devel:languages:python/python-calmjs.parse?expand=0&rev=9
2021-11-16 15:32:03 +00:00

64 lines
1.9 KiB
RPMSpec

#
# spec file for package python-calmjs.parse
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-calmjs.parse
Version: 1.2.5
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
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
%python_build
%install
%python_install
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m calmjs.parse.parsers.optimize
%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}/*
%changelog