Compare commits

..

No commits in common. "fdc66ac7b4117e02c32a01cd7556daf61e099956" and "7d480dad055a0f3002ab07a0fe2b942cac16cc52" have entirely different histories.

5 changed files with 22 additions and 56 deletions

View File

@ -1,21 +1,28 @@
Name: python-sure Name: python-sure
Version: 2.0.1 Version: 1.4.11
Release: 1 Release: 4
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: %{pypi_source sure} Source0: https://files.pythonhosted.org/packages/source/s/sure/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: python3-devel python3-mock python3-setuptools python3-six python3-pytest python-pytest-cov 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
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
@ -27,38 +34,28 @@ 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
/usr/bin/pytest --ignore=tests/test_old_api.py %{__python2} -m nose --verbosity 2
%{__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
* 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 * Wed Nov 27 2019 lingsheng <lingsheng@huawei.com> 1.4.11-4
* Package init * Package init

View File

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

View File

@ -1,27 +0,0 @@
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

BIN
sure-1.4.11.tar.gz Normal file

Binary file not shown.

Binary file not shown.