Compare commits
No commits in common. "4f4514965c1c07ab882921422ea85103970e8d22" and "037ca7942b1cedc1be088821da925fa07c1c0dc4" have entirely different histories.
4f4514965c
...
037ca7942b
BIN
1.10.11.tar.gz
Normal file
BIN
1.10.11.tar.gz
Normal file
Binary file not shown.
BIN
1.14.0.tar.gz
BIN
1.14.0.tar.gz
Binary file not shown.
36
README.en.md
Normal file
36
README.en.md
Normal file
@ -0,0 +1,36 @@
|
||||
# python-wrapt
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
39
README.md
Normal file
39
README.md
Normal file
@ -0,0 +1,39 @@
|
||||
# python-wrapt
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
@ -1,11 +1,12 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-wrapt
|
||||
Version: 1.14.0
|
||||
Release: 2
|
||||
Version: 1.10.11
|
||||
Release: 6
|
||||
Summary: A Python module for decorators, wrappers and monkey patching
|
||||
License: BSD-2-Clause
|
||||
License: BSD
|
||||
URL: https://github.com/GrahamDumpleton/wrapt
|
||||
source0: https://github.com/GrahamDumpleton/wrapt/archive/refs/tags/%{version}.tar.gz
|
||||
Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
|
||||
|
||||
BuildRequires: python2-devel python3-devel python3-sphinx
|
||||
|
||||
%description
|
||||
The aim of the wrapt module is to provide a transparent object proxy for Python,
|
||||
@ -15,65 +16,62 @@ such as functools.wraps() to ensure that decorators preserve introspectability,
|
||||
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 -n python3-wrapt
|
||||
Summary: Module for decorators, wrappers and monkey patching.
|
||||
Provides: python-wrapt
|
||||
# Base build requires
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pbr
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
%description -n python3-wrapt
|
||||
Python3 module for wrapt module.
|
||||
%package -n python2-wrapt
|
||||
Summary: Python2 module for wrapt module
|
||||
%{?python_provide:%python_provide python2-wrapt}
|
||||
|
||||
%description -n python2-wrapt
|
||||
Python2 module for wrapt module.
|
||||
|
||||
%package help
|
||||
Summary: Module for decorators, wrappers and monkey patching.
|
||||
Provides: python3-wrapt-doc
|
||||
Summary: Documentation for the python-wrapt
|
||||
BuildRequires: python2-sphinx python2-sphinx_rtd_theme
|
||||
Provides: %{name}-doc = %{version}-%{release}
|
||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
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.
|
||||
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
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
pushd docs
|
||||
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
|
||||
cd %{py3dir}
|
||||
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
||||
cd -
|
||||
|
||||
cd docs
|
||||
sphinx-build -b html -d build/doctrees . build/html
|
||||
popd
|
||||
cd -
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
cd %{py3dir}
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
cd -
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
|
||||
%files -n python2-wrapt
|
||||
%doc README.rst LICENSE
|
||||
%{python2_sitearch}/{wrapt,wrapt-%{version}-py?.?.egg-info}
|
||||
|
||||
%files -n python3-wrapt
|
||||
%doc README.rst LICENSE
|
||||
%{python3_sitearch}/{wrapt,wrapt-%{version}-py*.egg-info}
|
||||
%{python3_sitearch}/{wrapt,wrapt-%{version}-py?.?.egg-info}
|
||||
|
||||
%files help
|
||||
%doc docs/build/html
|
||||
|
||||
%changelog
|
||||
* Tue Nov 22 2022 xu_ping <xuping33@h-partners.com> - 1.14.0-2
|
||||
- Modify invalid source
|
||||
|
||||
* Fri Oct 21 2022 caodongxia <caodongxia@h-partners.com> - 1.14.0-1
|
||||
- Update to 1.14.0
|
||||
|
||||
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.12.1-2
|
||||
- Completing build dependencies
|
||||
|
||||
* 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…
x
Reference in New Issue
Block a user