1 Star 0 Fork 20

谢志鹏/python-wrapt

forked from src-openEuler/python-wrapt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-wrapt.spec 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
谢志鹏 提交于 2020-10-14 04:20 . upgrade to v1.12.1
Name: python-wrapt
Version: 1.12.1
Release: 1
Summary: A Python module for decorators, wrappers and monkey patching
License: BSD
URL: https://github.com/GrahamDumpleton/wrapt
Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz#/wrapt-%{version}.tar.gz
BuildRequires: python3-devel python3-sphinx
%description
The aim of the wrapt module is to provide a transparent object proxy for Python,
which can be used as the basis for the construction of function wrappers and decorator functions.
The wrapt module focuses very much on correctness. It therefore goes way beyond existing mechanisms
such as functools.wraps() to ensure that decorators preserve introspectability, signatures,
type checking abilities etc. The decorators that can be constructed using this module will work in
far more scenarios than typical decorators and provide more predictable and consistent behaviour.
%package help
Summary: Documentation for the python-wrapt
BuildRequires: python3-sphinx python3-sphinx_rtd_theme
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
Documentation for the python-wrapt.
%package -n python3-wrapt
Summary: Python3 module for wrapt module
%description -n python3-wrapt
Python3 module for wrapt module.
%prep
%autosetup -n wrapt-%{version} -p1
rm -rf wrapt.egg-info
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
cd docs
sphinx-build -b html -d build/doctrees . build/html
cd -
%install
%{__python3} setup.py install --skip-build --root %{buildroot}
%files -n python3-wrapt
%doc README.rst LICENSE
%{python3_sitearch}/{wrapt,wrapt-%{version}-py?.?.egg-info}
%files help
%doc docs/build/html
%changelog
* Wed Oct 14 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 1.12.1-1
- upgrade to 1.12.1
* Tue Aug 11 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.10.11-7
- Remove python2-wrapt subpackage
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 1.10.11-6
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiezhipeng1/python-wrapt.git
git@gitee.com:xiezhipeng1/python-wrapt.git
xiezhipeng1
python-wrapt
python-wrapt
master

搜索帮助