Compare commits
10 Commits
037ca7942b
...
4f4514965c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f4514965c | ||
|
|
ed3a4ff0c0 | ||
|
|
889c794e13 | ||
|
|
75d27ce7b7 | ||
|
|
6e3af62ba9 | ||
|
|
e2ab0ee26d | ||
|
|
84f78d4133 | ||
|
|
e0620cd79d | ||
|
|
e7250a3ce9 | ||
|
|
34b75ece0c |
BIN
1.10.11.tar.gz
BIN
1.10.11.tar.gz
Binary file not shown.
BIN
1.14.0.tar.gz
Normal file
BIN
1.14.0.tar.gz
Normal file
Binary file not shown.
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# 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
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# 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,12 +1,11 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-wrapt
|
Name: python-wrapt
|
||||||
Version: 1.10.11
|
Version: 1.14.0
|
||||||
Release: 6
|
Release: 2
|
||||||
Summary: A Python module for decorators, wrappers and monkey patching
|
Summary: A Python module for decorators, wrappers and monkey patching
|
||||||
License: BSD
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/GrahamDumpleton/wrapt
|
URL: https://github.com/GrahamDumpleton/wrapt
|
||||||
Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
|
source0: https://github.com/GrahamDumpleton/wrapt/archive/refs/tags/%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel python3-devel python3-sphinx
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The aim of the wrapt module is to provide a transparent object proxy for Python,
|
The aim of the wrapt module is to provide a transparent object proxy for Python,
|
||||||
@ -16,62 +15,65 @@ 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
|
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.
|
far more scenarios than typical decorators and provide more predictable and consistent behaviour.
|
||||||
|
|
||||||
%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: Documentation for the python-wrapt
|
|
||||||
BuildRequires: python2-sphinx python2-sphinx_rtd_theme
|
|
||||||
Provides: %{name}-doc = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
||||||
|
|
||||||
%description help
|
|
||||||
Documentation for the python-wrapt.
|
|
||||||
|
|
||||||
%package -n python3-wrapt
|
%package -n python3-wrapt
|
||||||
Summary: Python3 module for wrapt module
|
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
|
%description -n python3-wrapt
|
||||||
Python3 module for wrapt module.
|
Python3 module for wrapt module.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Module for decorators, wrappers and monkey patching.
|
||||||
|
Provides: python3-wrapt-doc
|
||||||
|
%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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n wrapt-%{version} -p1
|
%autosetup -n wrapt-%{version} -p1
|
||||||
|
|
||||||
rm -rf wrapt.egg-info
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
|
%py3_build
|
||||||
cd %{py3dir}
|
pushd docs
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
||||||
cd -
|
|
||||||
|
|
||||||
cd docs
|
|
||||||
sphinx-build -b html -d build/doctrees . build/html
|
sphinx-build -b html -d build/doctrees . build/html
|
||||||
cd -
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{py3dir}
|
%py3_install
|
||||||
%{__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
|
%files -n python3-wrapt
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
%{python3_sitearch}/{wrapt,wrapt-%{version}-py?.?.egg-info}
|
%{python3_sitearch}/{wrapt,wrapt-%{version}-py*.egg-info}
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc docs/build/html
|
%doc docs/build/html
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 1.10.11-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user