python-sure/python-sure.spec

58 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-11-30 14:40:42 +08:00
Name: python-sure
Version: 1.4.11
2022-04-01 16:19:55 +08:00
Release: 7
2019-11-30 14:40:42 +08:00
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
2022-04-01 16:19:55 +08:00
# https://github.com/gabrielfalcao/sure/commit/9f0e834
Patch0: fix-import-collections-error.patch
# https://src.fedoraproject.org/rpms/python-sure/pull-request/1
Patch1: python3.10-workaround.patch
2019-11-30 14:40:42 +08:00
BuildRequires: python3-devel python3-mock python3-nose python3-setuptools python3-six
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 python3-sure
Summary: Utility belt for automated testing in Python 3
Requires: python3-six
%{?python_provide:%python_provide python3-sure}
%description -n python3-sure
An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily
inspired in RSpec Expectations and should.js.
%prep
%autosetup -n sure-%{version} -p1
rm -rf sure.egg-info
%build
%py3_build
%install
%py3_install
%check
%{__python3} -m nose --verbosity 2
%files -n python3-sure
%doc COPYING
%{python3_sitelib}/*
%changelog
2022-04-01 16:19:55 +08:00
* Fri Apr 01 2022 wangkai <wangkai385@huawei.com> - 1.4.11-7
- Fix compilation failures
2020-08-05 11:54:00 +08:00
* Wed Aug 05 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.4.11-6
- Remove python2
2020-05-25 19:53:49 +08:00
* Thu May 21 2020 yanan li <liyanan032@huawei.com> - 1.4.11-5
- Modify python-mock and python-nose version
2020-08-05 11:54:00 +08:00
2019-11-30 14:40:42 +08:00
* Wed Nov 27 2019 lingsheng <lingsheng@huawei.com> 1.4.11-4
* Package init