Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
fdc66ac7b4
!12 Update to version 2.0.1
From: @wang--ge 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-06-14 05:59:33 +00:00
wang--ge
a230b8cb37 update to version 2.0.1 2023-06-14 11:41:26 +08:00
openeuler-ci-bot
07546b39bd
!9 升级master工程的python-sure到2.0.0版本
From: @xigaoxinyan 
Reviewed-by: @ruebb 
Signed-off-by: @ruebb
2022-05-06 02:04:21 +00:00
xigaoxinyan
5679c9d736 upgrad 2.0.0 2022-05-05 11:03:35 +08:00
openeuler-ci-bot
62239e7d9f
!8 Fix compilation failures
From: @wk333 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-04-01 08:45:40 +00:00
wk333
4f876311c9 Fix compilation failures 2022-04-01 16:19:55 +08:00
openeuler-ci-bot
cccf8cfe57 !3 Remove python2
Merge pull request !3 from jpzhang187/master
2020-08-06 11:00:24 +08:00
jpzhang
29869c2c16 Remove python2 2020-08-05 11:54:00 +08:00
openeuler-ci-bot
4fa208553b !2 Add yaml file and Modify dependencies
Merge pull request !2 from lyn/master
2020-05-25 20:13:42 +08:00
lyn1001
04afab04ea Add yaml file and Modify dependencies 2020-05-25 19:53:49 +08:00
5 changed files with 56 additions and 22 deletions

View File

@ -1,28 +1,21 @@
Name: python-sure
Version: 1.4.11
Release: 4
Version: 2.0.1
Release: 1
Summary: Utility belt for automated testing in Python
License: GPLv3+
URL: https://github.com/gabrielfalcao/sure
Source0: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
Source0: %{pypi_source sure}
# https://github.com/gabrielfalcao/sure/commit/9f0e834
# https://src.fedoraproject.org/rpms/python-sure/pull-request/1
Patch0: python3.10-workaround.patch
BuildRequires: python2-devel python-mock python-nose python-setuptools python-six
BuildRequires: python3-devel python3-mock python3-nose python3-setuptools python3-six
Requires: python-six
BuildRequires: python3-devel python3-mock python3-setuptools python3-six python3-pytest python-pytest-cov
BuildArch: noarch
%description
An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily
inspired in RSpec Expectations and should.js.
%package -n python2-sure
Summary: Utility belt for automated testing in Python 2
%{?python_provide:%python_provide python2-sure}
%description -n python2-sure
An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily
inspired in RSpec Expectations and should.js.
%package -n python3-sure
Summary: Utility belt for automated testing in Python 3
Requires: python3-six
@ -34,28 +27,38 @@ inspired in RSpec Expectations and should.js.
%prep
%autosetup -n sure-%{version} -p1
cp -r sure/ tests/
rm -rf sure.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} -m nose --verbosity 2
%{__python3} -m nose --verbosity 2
%files -n python2-sure
%doc COPYING
%{python2_sitelib}/*
/usr/bin/pytest --ignore=tests/test_old_api.py
%files -n python3-sure
%doc COPYING
%{_bindir}/sure
%{python3_sitelib}/*
%changelog
* Wed Jun 14 2023 Ge Wang <wang__ge@126.com> - 2.0.1-1
- Upgrade to version 2.0.1
* Fri Apr 29 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 2.0.0-1
- upgrad 2.0.0
* Fri Apr 01 2022 wangkai <wangkai385@huawei.com> - 1.4.11-7
- Fix compilation failures
* Wed Aug 05 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.4.11-6
- Remove python2
* Thu May 21 2020 yanan li <liyanan032@huawei.com> - 1.4.11-5
- Modify python-mock and python-nose version
* Wed Nov 27 2019 lingsheng <lingsheng@huawei.com> 1.4.11-4
* Package init

4
python-sure.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: gabrielfalcao/sure
tag_prefix: ^v
seperator: .

View File

@ -0,0 +1,27 @@
From 72ca38f8124b3f29ea7a54af9d190deae3367abc Mon Sep 17 00:00:00 2001
Date: Fri, 1 Apr 2022 11:42:10 +0800
Subject: [PATCH] python3.10-workaround
diff --git a/tests/test_old_api.py b/tests/test_old_api.py
index d63d8fe..2f93bc5 100644
--- a/tests/test_old_api.py
+++ b/tests/test_old_api.py
@@ -57,10 +57,10 @@ def test_context_is_not_optional():
assert True
assert that(it_crashes).raises(
- TypeError, (
- "the function it_crashes defined at test_old_api.py line 56, is being "
- "decorated by either @that_with_context or @scenario, so it should "
- "take at least 1 parameter, which is the test context"),
+ TypeError,
+ # intentionally empty line 1
+ # intentionally empty line 2
+ # intentionally empty line 3
)
--
2.27.0

Binary file not shown.

BIN
sure-2.0.1.tar.gz Normal file

Binary file not shown.