Update to 2.0.0
This commit is contained in:
parent
1f43d5d819
commit
7f87550fd8
@ -1,12 +1,15 @@
|
|||||||
Name: python-sure
|
Name: python-sure
|
||||||
Version: 1.4.11
|
Version: 2.0.0
|
||||||
Release: 7
|
Release: 1
|
||||||
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://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
|
BuildRequires: python3-devel python3-mock python3-setuptools python3-six python3-pytest python-pytest-cov
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -24,6 +27,7 @@ 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
|
||||||
@ -32,11 +36,18 @@ rm -rf sure.egg-info
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
/usr/bin/pytest --ignore=tests/test_old_api.py
|
||||||
|
|
||||||
%files -n python3-sure
|
%files -n python3-sure
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
%{_bindir}/sure
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Wed Jan 05 2022 Chen Chen <chen_aka_jan@163.com> - 1.4.11-7
|
||||||
- remove buildrequires python3-nose
|
- remove buildrequires python3-nose
|
||||||
|
|
||||||
|
|||||||
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.0.tar.gz
Normal file
BIN
sure-2.0.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user