Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
1 Star 0 Fork 23

lwq/python-cmd2

forked from src-openEuler/python-cmd2
Closed
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (47)
Tags (15)
master
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-SP2
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-SP1
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-Next
Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-Next
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP1
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP2
Multi-Version_OpenStack-Antelope_openEuler-25.03
openEuler-24.09
openEuler-25.03
openEuler-25.09
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS
openEuler-23.09
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP3
Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round4
openEuler-20.03-LTS-SP3-release
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
The license selected for the repository is subject to the license used by the main branch of the repository.
master
Branches (47)
Tags (15)
master
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-SP2
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-SP1
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-Next
Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-Next
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP1
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP2
Multi-Version_OpenStack-Antelope_openEuler-25.03
openEuler-24.09
openEuler-25.03
openEuler-25.09
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS
openEuler-23.09
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP3
Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round4
openEuler-20.03-LTS-SP3-release
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (47)
Tags (15)
master
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-SP2
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-SP1
sync-pr28-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-to-Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-Next
Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-Next
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP1
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP2
Multi-Version_OpenStack-Antelope_openEuler-25.03
openEuler-24.09
openEuler-25.03
openEuler-25.09
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS
openEuler-23.09
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP3
Multi-Version_OpenStack-Wallaby_openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round4
openEuler-20.03-LTS-SP3-release
python-cmd2
/
python-cmd2.spec
python-cmd2
/
python-cmd2.spec
python-cmd2.spec 3.48 KB
Copy Edit Raw Blame History
lwq authored 2025年11月24日 17:52 +08:00 . Update to 2.7.0
%global _empty_manifest_terminate_build 0
Name: python-cmd2
Version: 2.7.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/source/c/cmd2/cmd2-%{version}.tar.gz
Patch0: backport-Fix-Nonetype-error-when-building-with-PyInstaller-and-no-console-flag-2.4.3.patch
BuildArch: noarch
%description
quickly build feature-rich and user-friendly interactive command line applications in Python
%package -n python3-cmd2
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
Provides: python-cmd2 = %{version}-%{release}
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-pip
# General requires
Requires: python3-attrs
Requires: python3-pyperclip
Requires: python3-wcwidth
Requires: python3-importlib-metadata
Requires: python3-typing-extensions
%description -n python3-cmd2
quickly build feature-rich and user-friendly interactive command line applications in Python
%package help
Summary: Development documents and examples for cmd2
Provides: python3-cmd2-doc
%description help
quickly build feature-rich and user-friendly interactive command line applications in Python
%prep
%autosetup -p1 -n cmd2-%{version}
%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
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{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
* Mon Nov 24 2025 lvwq <lvwenqiang@kylinos.cn> - 2.7.0-1
- Update package to version 2.7.0
* Tue Jun 11 2024 zeng liwen <zengliwen@kylinos.cn> - 2.4.3-2
- Backport patch:Fix Nonetype error when building with PyInstaller and no-console flag
* Tue Mar 07 2023 wangjunqi <wangjunqi@kylinos.cn> - 2.4.3-1
- Update package to version 2.4.3
* Wed Aug 10 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.4.2-1
- update to 2.4.2
* Tue Jul 26 2022 renliang16 <renliang@uniontech.com> - 2.4.0-1
- Upgrade package python3-cmd2 to version 2.4.0
* Mon Jul 26 2021 liusheng <liusheng2048@gmail.com> - 1.5.0-1
- Upgrade to version 1.5.0
* Mon Aug 2 2021 huangtianhua <huangtianhua@huawei.com> - 1.4.0-3
- Add python3-setuptools_scm as buildrequire
* Fri Jan 29 2021 zhangy <zhangy1317@foxmail.com>
- Add buildrequires
* Wed Dec 09 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

A tool for building interactive command line apps
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lvwq/python-cmd2.git
git@gitee.com:lvwq/python-cmd2.git
lvwq
python-cmd2
python-cmd2
master
Going to Help Center

Search

Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /