Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
24aec07968
!11 Modify invalid Source
From: @starlet-dx 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2022-11-15 09:53:06 +00:00
starlet-dx
68a17a087b Modify invalid Source 2022-11-15 17:38:13 +08:00
openeuler-ci-bot
11c813e23c
!10 Update to 2.0.0
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-27 07:24:51 +00:00
starlet-dx
7f87550fd8 Update to 2.0.0 2022-10-25 11:22:49 +08:00
openeuler-ci-bot
1f43d5d819
!7 remove buildrequires python3-nose
Merge pull request !7 from chen-jan/openEuler-22.03-LTS-Next
2022-01-07 08:07:57 +00:00
chen-jan
eea6e8edbf remove buildrequires python3-nose 2022-01-05 14:41:34 +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 Name: python-sure
Version: 1.4.11 Version: 2.0.0
Release: 4 Release: 2
Summary: Utility belt for automated testing in Python Summary: Utility belt for automated testing in Python
License: GPLv3+ License: GPLv3+
URL: https://github.com/gabrielfalcao/sure URL: https://github.com/gabrielfalcao/sure
Source0: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz Source0: https://github.com/gabrielfalcao/sure/archive/%{version}/sure-%{version}.tar.gz
# 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-setuptools python3-six python3-pytest python-pytest-cov
BuildRequires: python3-devel python3-mock python3-nose python3-setuptools python3-six
Requires: python-six
BuildArch: noarch BuildArch: noarch
%description %description
An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily
inspired in RSpec Expectations and should.js. 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 %package -n python3-sure
Summary: Utility belt for automated testing in Python 3 Summary: Utility belt for automated testing in Python 3
Requires: python3-six Requires: python3-six
@ -34,28 +27,38 @@ inspired in RSpec Expectations and should.js.
%prep %prep
%autosetup -n sure-%{version} -p1 %autosetup -n sure-%{version} -p1
cp -r sure/ tests/
rm -rf sure.egg-info rm -rf sure.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} -m nose --verbosity 2 /usr/bin/pytest --ignore=tests/test_old_api.py
%{__python3} -m nose --verbosity 2
%files -n python2-sure
%doc COPYING
%{python2_sitelib}/*
%files -n python3-sure %files -n python3-sure
%doc COPYING %doc COPYING
%{_bindir}/sure
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Tue Nov 15 2022 yaoxin <yaoxin30@h-partners.com> - 2.0.0-2
- Modify invalid Source
* Tue Oct 25 2022 yaoxin <yaoxin30@h-partners.com> - 2.0.0-1
- Update to 2.0.0
* Wed Jan 05 2022 Chen Chen <chen_aka_jan@163.com> - 1.4.11-7
- remove buildrequires python3-nose
* 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 * Wed Nov 27 2019 lingsheng <lingsheng@huawei.com> 1.4.11-4
* Package init * 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.0.tar.gz Normal file

Binary file not shown.