2020-11-14 12:04:09 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-asttokens
|
|
|
|
#
|
2023-04-23 21:59:32 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-09-06 06:17:46 +02:00
|
|
|
# Copyright (c) 2019-2021 Malcolm J Lewis <malcolmlewis@opensuse.org>
|
2020-11-14 12:04:09 +01: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.
|
|
|
|
|
2021-04-16 14:46:26 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-11-14 12:04:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-11-19 19:04:34 +01:00
|
|
|
%define skip_python2 1
|
|
|
|
%define skip_python36 1
|
2023-04-23 21:59:32 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-11-14 12:04:09 +01:00
|
|
|
Name: python-asttokens
|
2023-10-27 10:21:37 +02:00
|
|
|
Version: 2.4.1
|
2020-11-14 12:04:09 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Annotate AST trees with source code positions
|
2021-04-16 14:46:26 +02:00
|
|
|
License: Apache-2.0
|
2020-11-14 12:04:09 +01:00
|
|
|
Group: Development/Languages/Python
|
2021-04-16 14:46:26 +02:00
|
|
|
URL: https://github.com/gristlabs/asttokens
|
2020-11-14 12:04:09 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/asttokens/asttokens-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module astroid}
|
|
|
|
BuildRequires: %{python_module devel}
|
2021-04-16 14:46:26 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-11-19 19:04:34 +01:00
|
|
|
BuildRequires: %{python_module setuptools >= 44}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
2020-11-14 12:04:09 +01:00
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: %{python_module toml}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
2021-04-16 14:46:26 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-11-14 12:04:09 +01:00
|
|
|
## Manual Begin
|
|
|
|
Requires: python-six
|
|
|
|
## Manual End
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Annotate AST trees with source code positions
|
|
|
|
|
|
|
|
%prep
|
2021-09-06 06:17:46 +02:00
|
|
|
%autosetup -n asttokens-%{version}
|
2020-11-14 12:04:09 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export LC_ALL=en_US.utf8
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
export LC_ALL=en_US.utf8
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2021-09-06 06:17:46 +02:00
|
|
|
%pytest -k 'not TestAstroid'
|
2020-11-14 12:04:09 +01:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|