2017-09-27 05:51:49 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-parso
|
|
|
|
#
|
2024-07-29 08:20:11 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-09-27 05:51:49 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:45:05 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-27 05:51:49 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 14:16:39 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-09-27 05:51:49 +00:00
|
|
|
Name: python-parso
|
2024-07-29 08:20:11 +00:00
|
|
|
Version: 0.8.4
|
2017-09-27 05:51:49 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: An autocompletion tool for Python
|
2018-04-17 06:36:07 +00:00
|
|
|
License: MIT AND Python-2.0
|
|
|
|
URL: https://github.com/davidhalter/parso
|
2017-09-27 05:51:49 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/parso/parso-%{version}.tar.gz
|
2023-10-03 02:36:51 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-07-12 17:18:04 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 3.0.7}
|
2017-09-27 05:51:49 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-10-03 02:36:51 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-09-27 05:51:49 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Parso is a Python parser that supports error recovery and round-trip
|
|
|
|
parsing for different Python versions (in multiple Python
|
|
|
|
versions). Parso is also able to list multiple syntax errors in your
|
|
|
|
python file.
|
|
|
|
|
|
|
|
Parso has been battle-tested by jedi. It was pulled out of jedi to be
|
|
|
|
useful for other projects as well.
|
|
|
|
|
|
|
|
Parso consists of a small API to parse Python and analyse the syntax
|
|
|
|
tree.
|
|
|
|
|
|
|
|
%prep
|
2023-01-06 21:46:01 +00:00
|
|
|
%autosetup -p1 -n parso-%{version}
|
2017-09-27 05:51:49 +00:00
|
|
|
|
|
|
|
%build
|
2023-10-03 02:36:51 +00:00
|
|
|
%pyproject_wheel
|
2017-09-27 05:51:49 +00:00
|
|
|
|
|
|
|
%install
|
2023-10-03 02:36:51 +00:00
|
|
|
%pyproject_install
|
2017-09-27 05:51:49 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2021-12-11 23:45:24 +00:00
|
|
|
# Python 3.10 has deviating exception messages -- gh#davidhalter/parso#192
|
|
|
|
python310_args=("-k" "not test_python_exception_matches")
|
2024-08-02 11:50:17 +00:00
|
|
|
# Python 3.12 and newer also changes how f-strings are parsed
|
2023-10-03 02:36:51 +00:00
|
|
|
python312_args=("-k" "not test_python_exception_matches")
|
2024-08-02 11:50:17 +00:00
|
|
|
python313_args=("-k" "not test_python_exception_matches")
|
2021-12-11 23:45:24 +00:00
|
|
|
%pytest "${$python_args[@]}"
|
2017-09-27 05:51:49 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-04-17 06:36:07 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc AUTHORS.txt CHANGELOG.rst README.rst
|
2023-10-03 02:36:51 +00:00
|
|
|
%{python_sitelib}/parso-%{version}.dist-info
|
2017-09-27 05:51:49 +00:00
|
|
|
%{python_sitelib}/parso/
|
|
|
|
|
|
|
|
%changelog
|