Compare commits
10 Commits
76c392d1fa
...
766810ab01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
766810ab01 | ||
|
|
373c54571c | ||
|
|
1f5f53fe4e | ||
|
|
9ab84c459f | ||
|
|
a0fc953cc5 | ||
|
|
b2c453e15c | ||
|
|
9eb7a67225 | ||
|
|
da2737fefe | ||
|
|
02cce6f7de | ||
|
|
078589488c |
BIN
2.0.30.tar.gz
BIN
2.0.30.tar.gz
Binary file not shown.
BIN
3.0.0.tar.gz
Normal file
BIN
3.0.0.tar.gz
Normal file
Binary file not shown.
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# python-webtest
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
Helper to test WSGI applications
|
|
||||||
|
|
||||||
#### 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/)
|
|
||||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
|||||||
# python-webtest
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
Helper to test WSGI applications
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
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,16 +1,15 @@
|
|||||||
Name: python-webtest
|
Name: python-webtest
|
||||||
Version: 2.0.30
|
Version: 3.0.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Helper to test WSGI-based web applications
|
Summary: Helper to test WSGI-based web applications
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/Pylons/webtest
|
URL: https://github.com/Pylons/webtest
|
||||||
Source0: https://github.com/Pylons/webtest/archive/%{version}.tar.gz
|
Source0: https://github.com/Pylons/webtest/archive/%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel, python2-setuptools, python2-nose, python2-mock, python2-beautifulsoup4
|
BuildRequires: python3-devel, python3-setuptools, python3-pytest, python3-pytest-cov, python3-beautifulsoup4, python3-paste-deploy
|
||||||
BuildRequires: python2-paste-deploy, python2-pyquery, python2-six, python2-waitress, python2-webob, python2-WSGIProxy2
|
BuildRequires: python3-pyquery, python3-six, python3-waitress, python3-webob, python3-WSGIProxy2, python3-pylons-sphinx-themes
|
||||||
BuildRequires: python3-devel, python3-setuptools, python3-nose, python3-beautifulsoup4, python3-paste-deploy
|
|
||||||
BuildRequires: python3-pyquery, python3-six, python3-waitress, python3-webob, python3-WSGIProxy2
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
WebTest helps you test your WSGI-based web applications. This can be
|
WebTest helps you test your WSGI-based web applications. This can be
|
||||||
@ -19,18 +18,6 @@ written in a framework that supports WSGI (which includes most actively
|
|||||||
developed Python web frameworks -- almost anything that even nominally
|
developed Python web frameworks -- almost anything that even nominally
|
||||||
supports WSGI should be testable).
|
supports WSGI should be testable).
|
||||||
|
|
||||||
%package -n python2-webtest
|
|
||||||
%{?python_provide:%python_provide python2-webtest}
|
|
||||||
Summary: Helper to test WSGI-based web applications
|
|
||||||
Requires: python2-beautifulsoup4, python2-six, python2-waitress, python2-webob
|
|
||||||
|
|
||||||
%description -n python2-webtest
|
|
||||||
WebTest helps you test your WSGI-based web applications. This can be
|
|
||||||
any application that has a WSGI interface, including an application
|
|
||||||
written in a framework that supports WSGI (which includes most actively
|
|
||||||
developed Python web frameworks -- almost anything that even nominally
|
|
||||||
supports WSGI should be testable).
|
|
||||||
|
|
||||||
%package -n python3-webtest
|
%package -n python3-webtest
|
||||||
%{?python_provide:%python_provide python3-webtest}
|
%{?python_provide:%python_provide python3-webtest}
|
||||||
Summary: Helper to test WSGI-based web applications
|
Summary: Helper to test WSGI-based web applications
|
||||||
@ -49,11 +36,9 @@ supports WSGI should be testable).
|
|||||||
rm -rf *.egg-info %{_builddir}/python3-%{name}-%{version}
|
rm -rf *.egg-info %{_builddir}/python3-%{name}-%{version}
|
||||||
cp -a . %{_builddir}/python3-%{name}-%{version}
|
cp -a . %{_builddir}/python3-%{name}-%{version}
|
||||||
cd %{_builddir}/python3-%{name}-%{version}
|
cd %{_builddir}/python3-%{name}-%{version}
|
||||||
find tests -type f -exec sed -i "s|import mock|from unittest import mock|" {} \;
|
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
cd %{_builddir}/python3-%{name}-%{version}
|
cd %{_builddir}/python3-%{name}-%{version}
|
||||||
%py3_build
|
%py3_build
|
||||||
cd -
|
cd -
|
||||||
@ -62,24 +47,30 @@ cd -
|
|||||||
cd %{_builddir}/python3-%{name}-%{version}
|
cd %{_builddir}/python3-%{name}-%{version}
|
||||||
%py3_install
|
%py3_install
|
||||||
cd -
|
cd -
|
||||||
%py2_install
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=$(pwd) nosetests-2
|
|
||||||
|
|
||||||
cd %{_builddir}/python3-%{name}-%{version}
|
cd %{_builddir}/python3-%{name}-%{version}
|
||||||
LANG=en_US.utf8
|
LANG=en_US.utf8
|
||||||
PYTHONPATH=$(pwd) nosetests-%{python3_version}
|
PYTHONPATH=$(pwd) pytest-%{python3_version}
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%files -n python2-webtest
|
|
||||||
%doc docs/*
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-webtest
|
%files -n python3-webtest
|
||||||
%doc docs/*
|
%doc docs/*
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 16 2022 OpenStack_SIG <openstack@openeuler.org> - 3.0.0-1
|
||||||
|
- Upgrade version for openstack yoga
|
||||||
|
|
||||||
|
* Tue Jan 11 2022 Chen Chen <chen_aka_jan@163.com> - 2.0.35-2
|
||||||
|
- add python 3.9
|
||||||
|
- use pytest instead of nose
|
||||||
|
|
||||||
|
* Thu Jan 14 2021 yanglongkang <yanglongkang@huawei.com> - 2.0.35-1
|
||||||
|
- update version 2.0.35
|
||||||
|
|
||||||
|
* Sat Aug 8 2020 shixuantong <shixuantong@huawei.com> - 2.0.30-3
|
||||||
|
- remove python2 support
|
||||||
|
|
||||||
* Thu Feb 13 2020 Ruijun Ge <geruijun@huawei.com> - 2.0.30-2
|
* Thu Feb 13 2020 Ruijun Ge <geruijun@huawei.com> - 2.0.30-2
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
4
python-webtest.yaml
Normal file
4
python-webtest.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: Pylons/webtest
|
||||||
|
tag_pattern: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user