6 Star 0 Fork 2

src-openEuler / python-autocommand
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-autocommand.spec 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
lyn 提交于 2024-03-05 10:13 +08:00 . Fix build failure caused by setuptools upgrade
%global pkg_description %{expand:
Autocommand turns a function into a command-line program. It converts the function's parameter
signature into command-line arguments, and automatically runs the function if the module was
called as __main__. In effect, it lets your create a smart main function.}
Name: python-autocommand
Version: 2.2.2
Release: 2
Summary: A library to automatically generate and run simple argparse parsers from function signatures.
License: LGPL-3.0-only
URL: https://github.com/Lucretiel/autocommand
Source0: https://github.com/Lucretiel/autocommand/archive/%{version}/autocommand-%{version}.tar.gz
Patch0: 0001-setuptools-fix.patch
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
BuildArch: noarch
%description %{pkg_description}
%package -n python3-autocommand
Summary: %{Summary}
%description -n python3-autocommand %{pkg_description}
%prep
%autosetup -p1 -n autocommand-%{version}
%build
%py3_build
%install
%py3_install
%check
export PYTHONPATH=%{buildroot}%{python3_sitelib}
pytest
%files -n python3-autocommand
%license LICENSE
%doc README.md
%{python3_sitelib}/*
%changelog
* Tue Mar 5 2024 liyanan <liyanan61@h-partners.com> - 2.2.2-2
- Fix build failure caused by setuptools upgrade
* Fri Apr 28 2023 yaoxin <yao_xin001@hoperun.com> - 2.2.2-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-autocommand.git
git@gitee.com:src-openeuler/python-autocommand.git
src-openeuler
python-autocommand
python-autocommand
openEuler-24.09

搜索帮助