Compare commits
10 Commits
7d480dad05
...
fdc66ac7b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fdc66ac7b4 | ||
|
|
a230b8cb37 | ||
|
|
07546b39bd | ||
|
|
5679c9d736 | ||
|
|
62239e7d9f | ||
|
|
4f876311c9 | ||
|
|
cccf8cfe57 | ||
|
|
29869c2c16 | ||
|
|
4fa208553b | ||
|
|
04afab04ea |
@ -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
4
python-sure.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: gabrielfalcao/sure
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
27
python3.10-workaround.patch
Normal file
27
python3.10-workaround.patch
Normal 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
BIN
sure-2.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user