summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-28 03:23:20 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-28 03:23:20 +0000
commit946df12a6d1ec7fab686760b3945cf89ef133fec (patch)
treeebe4738b16e405c4c2628a3fe2f3c531d49ba450
parentd0c46d7b5020c5579ec1ccf386abef2053cb9ecc (diff)
automatic import of python-prompt-toolkit
-rw-r--r--.gitignore1
-rw-r--r--prompt-toolkit.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3214a4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-prompt-toolkit-3.0.53.tar.gz
diff --git a/prompt-toolkit.spec b/prompt-toolkit.spec
new file mode 100644
index 0000000..a8fdace
--- /dev/null
+++ b/prompt-toolkit.spec
@@ -0,0 +1,73 @@
+# topdir: python-prompt-toolkit-3.0.53
+# Build: pyproject.toml (setuptools.build_meta, no setup.py) -> pip wheel path
+# Pure Python, noarch, src-layout (src/prompt_toolkit/)
+%global pypi_name prompt-toolkit
+
+Name: python-%{pypi_name}
+Version: 3.0.53
+Release: 1%{?dist}
+Summary: Library for building powerful interactive command lines in Python
+License: BSD-3-Clause
+URL: https://github.com/prompt-toolkit/python-prompt-toolkit
+Source0: %{url}/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+
+%description
+prompt_toolkit is a library for building powerful interactive command lines
+and terminal applications in Python. It is designed to be easy to use while
+providing many advanced features like syntax highlighting, multi-line editing,
+auto-completion, history, and more.
+
+
+%package -n python3-%{pypi_name}
+Summary: Library for building powerful interactive command lines in Python
+Provides: python-%{pypi_name}
+Provides: python3dist(%{pypi_name}) = %{version}
+BuildRequires: python3-devel
+BuildRequires: python3-pip
+BuildRequires: python3-setuptools
+Requires: python3-wcwidth >= 0.1.4
+
+%description -n python3-%{pypi_name}
+prompt_toolkit is a library for building powerful interactive command lines
+and terminal applications in Python. It is designed to be easy to use while
+providing many advanced features like syntax highlighting, multi-line editing,
+auto-completion, history, and more.
+
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Provides: python3-%{pypi_name}-doc
+BuildArch: noarch
+
+%description help
+Development documents and examples for %{pypi_name}.
+
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+
+%build
+pip3 wheel --no-build-isolation --no-deps --wheel-dir %{_builddir}/wheels .
+
+
+%install
+pip3 install --no-build-isolation --no-index \
+ --find-links %{_builddir}/wheels \
+ --root %{buildroot} --prefix /usr \
+ %{pypi_name}==%{version}
+
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%{python3_sitelib}/prompt_toolkit/
+%{python3_sitelib}/prompt_toolkit-%{version}*.dist-info/
+
+%files help
+%doc README.rst CHANGELOG AUTHORS.rst
+
+
+%changelog
+* Wed Oct 28 2026 Python_Bot <Python_Bot@openeuler.org> - 3.0.53-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b05b2f8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9fb68ab2e2857044e1e2d714a64b264c python-prompt-toolkit-3.0.53.tar.gz