summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-14 07:04:03 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-14 07:04:03 +0000
commit7a9e488a2954b8ed9cefd7e72e4d063ba6fbd135 (patch)
treea3c83fbed4ec9f6641b038bd1cafeb177cd59d38
parente084e034dbd59dd914b1636382837ae55cf8adda (diff)
automatic import of python-asttokensopeneuler22.03_LTS_SP4
-rw-r--r--.gitignore1
-rw-r--r--python-asttokens.spec67
-rw-r--r--sources1
3 files changed, 69 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7f24a21 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/asttokens-2.4.1.tar.gz
diff --git a/python-asttokens.spec b/python-asttokens.spec
new file mode 100644
index 0000000..d17918f
--- /dev/null
+++ b/python-asttokens.spec
@@ -0,0 +1,67 @@
+Name: python-asttokens
+Version: 2.4.1
+Release: 1
+Summary: Module to annotate Python abstract syntax trees with source code positions
+
+License: Apache-2.0
+URL: https://github.com/gristlabs/asttokens
+Source0: https://files.pythonhosted.org/packages/45/1d/f03bcb60c4a3212e15f99a56085d93093a497718adf828d050b9d675da81/asttokens-2.4.1.tar.gz
+
+BuildArch: noarch
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools_scm
+BuildRequires: python3-pbr
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+BuildRequires: python3-hatchling
+BuildRequires: python3-toml
+BuildRequires: python3-pytest
+BuildRequires: python3-astroid
+BuildRequires: python3-six
+BuildRequires: python3-typing-extensions
+
+%global _description %{expand:
+The asttokens module annotates Python abstract syntax trees (ASTs)
+with the positions of tokens and text in the source code that
+generated them. This makes it possible for tools that work with
+logical AST nodes to find the particular text that resulted in those
+nodes, for example for automated refactoring or highlighting.}
+
+%description %_description
+
+
+%package -n python3-asttokens
+Summary: %{summary}
+Requires: python3-six
+%{?python_provide:%python_provide python3-asttokens}
+
+%description -n python3-asttokens %_description
+
+
+%prep
+%autosetup -p1 -n asttokens-%{version}
+
+
+%build
+%pyproject_build
+
+
+%install
+%pyproject_install
+
+%check
+%pytest
+
+%files -n python3-asttokens
+%license LICENSE
+%doc README.rst
+%{python3_sitelib}/*
+
+
+%changelog
+* Fri Nov 17 2023 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2.4.1-1
+- Upgrade to version 2.4.1 and change the build method from py3 to pyproject
+
+* Wed Mar 29 2023 li_zengyi <zengyi@isrc.iscas.ac.cn> - 2.2.1-1
+- Init asttokens 2.2.1 package
diff --git a/sources b/sources
new file mode 100644
index 0000000..c39bdf8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c353679585a40f43c24ca60fca33bbf6 asttokens-2.4.1.tar.gz