Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
766810ab01
!12 update to 3.0.0
From: @zhangy1317 
Reviewed-by: @shinwell_hu, @huangtianhua 
Signed-off-by: @huangtianhua, @shinwell_hu
2022-07-07 07:53:11 +00:00
zhangy1317
373c54571c update to 3.0.0 2022-07-05 15:45:21 +08:00
openeuler-ci-bot
1f5f53fe4e
!10 [sync] PR-6: add python 3.9 & use pytest instead of nose
From: @openeuler-sync-bot 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-05-06 01:34:31 +00:00
chen-jan
9ab84c459f add python 3.9 & use pytest instead of nose
(cherry picked from commit 8997388ae3fcd2a32e566f09e12200fe309e6c68)
2022-05-05 16:11:43 +08:00
openeuler-ci-bot
a0fc953cc5 !5 update 2.0.35
From: @markeryang
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-01-30 19:43:32 +08:00
markeryang
b2c453e15c update to 2.0.35 2021-01-28 15:38:44 +08:00
openeuler-ci-bot
9eb7a67225 !4 remove python2 support
Merge pull request !4 from 桐小哥/master
2020-08-08 15:51:18 +08:00
桐小哥
da2737fefe remove python2 support 2020-08-08 10:59:45 +08:00
openeuler-ci-bot
02cce6f7de !2 Add python-webtest.yaml
Merge pull request !2 from huanghaitao/master
2020-05-13 15:51:35 +08:00
hht8
078589488c Add python-webtest.yaml 2020-05-09 16:54:13 +08:00
6 changed files with 23 additions and 101 deletions

Binary file not shown.

BIN
3.0.0.tar.gz Normal file

Binary file not shown.

View File

@ -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/)

View File

@ -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/)

View File

@ -1,16 +1,15 @@
Name: python-webtest
Version: 2.0.30
Release: 2
Version: 3.0.0
Release: 1
Summary: Helper to test WSGI-based web applications
License: MIT
URL: https://github.com/Pylons/webtest
Source0: https://github.com/Pylons/webtest/archive/%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel, python2-setuptools, python2-nose, python2-mock, python2-beautifulsoup4
BuildRequires: python2-paste-deploy, python2-pyquery, python2-six, python2-waitress, python2-webob, python2-WSGIProxy2
BuildRequires: python3-devel, python3-setuptools, python3-nose, python3-beautifulsoup4, python3-paste-deploy
BuildRequires: python3-pyquery, python3-six, python3-waitress, python3-webob, python3-WSGIProxy2
BuildRequires: python3-devel, python3-setuptools, python3-pytest, python3-pytest-cov, python3-beautifulsoup4, python3-paste-deploy
BuildRequires: python3-pyquery, python3-six, python3-waitress, python3-webob, python3-WSGIProxy2, python3-pylons-sphinx-themes
%description
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
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
%{?python_provide:%python_provide python3-webtest}
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}
cp -a . %{_builddir}/python3-%{name}-%{version}
cd %{_builddir}/python3-%{name}-%{version}
find tests -type f -exec sed -i "s|import mock|from unittest import mock|" {} \;
cd -
%build
%py2_build
cd %{_builddir}/python3-%{name}-%{version}
%py3_build
cd -
@ -62,24 +47,30 @@ cd -
cd %{_builddir}/python3-%{name}-%{version}
%py3_install
cd -
%py2_install
%check
PYTHONPATH=$(pwd) nosetests-2
cd %{_builddir}/python3-%{name}-%{version}
LANG=en_US.utf8
PYTHONPATH=$(pwd) nosetests-%{python3_version}
PYTHONPATH=$(pwd) pytest-%{python3_version}
cd -
%files -n python2-webtest
%doc docs/*
%{python2_sitelib}/*
%files -n python3-webtest
%doc docs/*
%{python3_sitelib}/*
%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
- init package

4
python-webtest.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: Pylons/webtest
tag_pattern: ^v
seperator: .