141 lines
7.6 KiB
Python
141 lines
7.6 KiB
Python
%global _empty_manifest_terminate_build 0
|
|
Name: python-cmd2
|
|
Version: 1.4.0
|
|
Release: 1
|
|
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
|
|
License: MIT
|
|
URL: https://github.com/python-cmd2/cmd2
|
|
Source0: https://files.pythonhosted.org/packages/c1/76/98f8767ddc8febfbd6367b2fcd391cd92087496d00e58ad99008e126035e/cmd2-1.4.0.tar.gz
|
|
BuildArch: noarch
|
|
|
|
Requires: python3-attrs
|
|
Requires: python3-colorama
|
|
Requires: python3-pyperclip
|
|
Requires: python3-wcwidth
|
|
Requires: python3-importlib-metadata
|
|
Requires: python3-pyreadline
|
|
Requires: python3-pytest
|
|
Requires: python3-codecov
|
|
Requires: python3-pytest-cov
|
|
Requires: python3-pytest-mock
|
|
Requires: python3-flake8
|
|
Requires: python3-sphinx
|
|
Requires: python3-sphinx-rtd-theme
|
|
Requires: python3-sphinx-autobuild
|
|
Requires: python3-doc8
|
|
Requires: python3-invoke
|
|
Requires: python3-twine
|
|
Requires: python3-mock
|
|
Requires: python3-nox
|
|
Requires: python3-nox
|
|
Requires: python3-codecov
|
|
Requires: python3-coverage
|
|
Requires: python3-pytest
|
|
Requires: python3-pytest-cov
|
|
Requires: python3-pytest-mock
|
|
Requires: python3-mock
|
|
Requires: python3-gnureadline
|
|
|
|
%description
|
|
[](https://pypi.python.org/pypi/cmd2/)
|
|
[](https://travis-ci.org/python-cmd2/cmd2)
|
|
[](https://ci.appveyor.com/project/FedericoCeratto/cmd2)
|
|
[](https://python-cmd2.visualstudio.com/cmd2/_build/latest?definitionId=1&branch=master)
|
|
[](https://codecov.io/gh/python-cmd2/cmd2)
|
|
[](http://cmd2.readthedocs.io/en/latest/?badge=latest)
|
|
<a href="https://discord.gg/RpVG6tk"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat"></a>
|
|
cmd2 is a tool for building interactive command line applications in Python. Its goal is to make it
|
|
quick and easy for developers to build feature-rich and user-friendly interactive command line
|
|
applications. It provides a simple API which is an extension of Python's built-in
|
|
[cmd](https://docs.python.org/3/library/cmd.html) module. cmd2 provides a wealth of features on top
|
|
of cmd to make your life easier and eliminates much of the boilerplate code which would be necessary
|
|
when using cmd.
|
|
Click on image below to watch a short video demonstrating the capabilities of cmd2:
|
|
[](https://youtu.be/DDU_JH6cFsA)
|
|
|
|
%package -n python3-cmd2
|
|
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
|
|
Provides: python-cmd2
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
%description -n python3-cmd2
|
|
[](https://pypi.python.org/pypi/cmd2/)
|
|
[](https://travis-ci.org/python-cmd2/cmd2)
|
|
[](https://ci.appveyor.com/project/FedericoCeratto/cmd2)
|
|
[](https://python-cmd2.visualstudio.com/cmd2/_build/latest?definitionId=1&branch=master)
|
|
[](https://codecov.io/gh/python-cmd2/cmd2)
|
|
[](http://cmd2.readthedocs.io/en/latest/?badge=latest)
|
|
<a href="https://discord.gg/RpVG6tk"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat"></a>
|
|
cmd2 is a tool for building interactive command line applications in Python. Its goal is to make it
|
|
quick and easy for developers to build feature-rich and user-friendly interactive command line
|
|
applications. It provides a simple API which is an extension of Python's built-in
|
|
[cmd](https://docs.python.org/3/library/cmd.html) module. cmd2 provides a wealth of features on top
|
|
of cmd to make your life easier and eliminates much of the boilerplate code which would be necessary
|
|
when using cmd.
|
|
Click on image below to watch a short video demonstrating the capabilities of cmd2:
|
|
[](https://youtu.be/DDU_JH6cFsA)
|
|
|
|
%package help
|
|
Summary: Development documents and examples for cmd2
|
|
Provides: python3-cmd2-doc
|
|
%description help
|
|
[](https://pypi.python.org/pypi/cmd2/)
|
|
[](https://travis-ci.org/python-cmd2/cmd2)
|
|
[](https://ci.appveyor.com/project/FedericoCeratto/cmd2)
|
|
[](https://python-cmd2.visualstudio.com/cmd2/_build/latest?definitionId=1&branch=master)
|
|
[](https://codecov.io/gh/python-cmd2/cmd2)
|
|
[](http://cmd2.readthedocs.io/en/latest/?badge=latest)
|
|
<a href="https://discord.gg/RpVG6tk"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat"></a>
|
|
cmd2 is a tool for building interactive command line applications in Python. Its goal is to make it
|
|
quick and easy for developers to build feature-rich and user-friendly interactive command line
|
|
applications. It provides a simple API which is an extension of Python's built-in
|
|
[cmd](https://docs.python.org/3/library/cmd.html) module. cmd2 provides a wealth of features on top
|
|
of cmd to make your life easier and eliminates much of the boilerplate code which would be necessary
|
|
when using cmd.
|
|
Click on image below to watch a short video demonstrating the capabilities of cmd2:
|
|
[](https://youtu.be/DDU_JH6cFsA)
|
|
|
|
%prep
|
|
%autosetup -n cmd2-1.4.0
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
pushd %{buildroot}
|
|
if [ -d usr/lib ]; then
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib64 ]; then
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/bin ]; then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/sbin ]; then
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
touch doclist.lst
|
|
if [ -d usr/share/man ]; then
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/filelist.lst .
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
%files -n python3-cmd2 -f filelist.lst
|
|
%dir %{python3_sitelib}/*
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Wed Dec 09 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
- Package Spec generated
|