2021-06-23 16:46:12 +00:00
|
|
|
|
%global srcname sure
|
2012-06-27 05:37:41 +00:00
|
|
|
|
|
2021-06-23 16:46:12 +00:00
|
|
|
|
Name: python-%{srcname}
|
2018-05-17 14:41:22 +00:00
|
|
|
|
Version: 1.4.11
|
2021-06-23 16:46:12 +00:00
|
|
|
|
Release: 14%{?dist}
|
2021-06-24 12:00:12 +00:00
|
|
|
|
Summary: Idiomatic assertion toolkit with human-friendly failure messages
|
2012-06-27 05:37:41 +00:00
|
|
|
|
|
2013-02-18 13:14:10 +00:00
|
|
|
|
License: GPLv3+
|
2021-06-23 16:46:12 +00:00
|
|
|
|
URL: https://github.com/gabrielfalcao/%{srcname}
|
2021-06-23 16:48:28 +00:00
|
|
|
|
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
2020-01-06 13:20:09 +00:00
|
|
|
|
|
|
|
|
|
# Python 3.9 compatibility
|
|
|
|
|
# https://github.com/gabrielfalcao/sure/commit/9f0e834b2e5eea5dfe21d5be4ea6a3df47baf0b9
|
|
|
|
|
Patch1: 9f0e834b2e5eea5dfe21d5be4ea6a3df47baf0b9.patch
|
|
|
|
|
|
2020-10-23 08:38:42 +00:00
|
|
|
|
# Python 3.10 workaround
|
|
|
|
|
# In test_context_is_not_optional(), only check the exception type
|
|
|
|
|
# https://github.com/gabrielfalcao/sure/issues/169
|
|
|
|
|
Patch2: python3.10-workaround.patch
|
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2018-05-17 10:37:49 +00:00
|
|
|
|
BuildRequires: python3-devel
|
2021-06-24 12:09:54 +00:00
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
|
|
|
|
# TODO: remove mock dependency from install_requires
|
|
|
|
|
# https://fedoraproject.org/wiki/Changes/DeprecatePythonMock
|
|
|
|
|
# https://github.com/gabrielfalcao/sure/pull/161
|
|
|
|
|
|
2021-06-24 12:15:00 +00:00
|
|
|
|
# Test dependencies
|
2021-06-24 12:09:54 +00:00
|
|
|
|
# TODO: remove the test dependency on nose
|
|
|
|
|
# https://fedoraproject.org/wiki/Changes/DeprecateNose
|
|
|
|
|
BuildRequires: python3dist(nose)
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2021-06-24 12:15:00 +00:00
|
|
|
|
# Documentation dependentcies
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: python3dist(sphinx)
|
|
|
|
|
BuildRequires: python3dist(sphinx-rtd-theme)
|
2021-06-24 12:21:30 +00:00
|
|
|
|
BuildRequires: python3-docs
|
2021-06-24 12:15:00 +00:00
|
|
|
|
|
2021-06-24 12:00:12 +00:00
|
|
|
|
%global common_description %{expand:
|
|
|
|
|
An idiomatic testing library for python with powerful and flexible assertions
|
|
|
|
|
created by Gabriel Falcão. Sure’s developer experience is inspired and modeled
|
|
|
|
|
after RSpec Expectations and should.js.}
|
|
|
|
|
|
|
|
|
|
%description %{common_description}
|
2016-12-21 17:35:38 +00:00
|
|
|
|
|
2018-05-17 10:40:11 +00:00
|
|
|
|
|
2021-06-24 12:09:54 +00:00
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -r
|
|
|
|
|
|
|
|
|
|
|
2021-06-23 16:46:12 +00:00
|
|
|
|
%package -n python3-%{srcname}
|
2021-06-24 12:00:12 +00:00
|
|
|
|
Summary: %{summary}
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2021-06-24 12:00:12 +00:00
|
|
|
|
%description -n python3-%{srcname} %{common_description}
|
2018-05-17 10:40:11 +00:00
|
|
|
|
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2021-06-24 12:15:00 +00:00
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for Sure
|
|
|
|
|
|
2021-06-24 12:21:30 +00:00
|
|
|
|
Requires: python3-docs
|
|
|
|
|
|
2021-06-24 12:15:00 +00:00
|
|
|
|
%description doc %{common_description}
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
|
%prep
|
2021-06-23 16:46:12 +00:00
|
|
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2021-06-24 12:21:30 +00:00
|
|
|
|
# Use local inventories in intersphinx mappings.
|
|
|
|
|
#
|
|
|
|
|
# Currently, python-redis does not package the Sphinx documentation, so we
|
|
|
|
|
# remove that mapping:
|
|
|
|
|
# 'redis': ('https://redis-py.readthedocs.io/en/latest/', None)
|
|
|
|
|
sed -r -i \
|
|
|
|
|
-e 's|https://docs.python.org/3?|/%{_docdir}/python3-docs/html|' \
|
|
|
|
|
-e '/redis.*https.*readthedocs/d' \
|
|
|
|
|
docs/source/conf.py
|
|
|
|
|
|
2018-05-17 10:40:11 +00:00
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
|
%build
|
2021-06-24 12:09:54 +00:00
|
|
|
|
%pyproject_wheel
|
2021-06-24 12:32:17 +00:00
|
|
|
|
env PYTHONPATH="${PWD}" %make_build -C docs/ html SPHINXOPTS='%{?_smp_mflags}'
|
2018-05-17 10:40:11 +00:00
|
|
|
|
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
|
%install
|
2021-06-24 12:09:54 +00:00
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files %{srcname}
|
2018-05-17 10:40:11 +00:00
|
|
|
|
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
|
%check
|
2021-06-23 16:51:55 +00:00
|
|
|
|
%pytest
|
2018-05-17 10:40:11 +00:00
|
|
|
|
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2021-06-24 12:09:54 +00:00
|
|
|
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
2021-06-24 11:54:22 +00:00
|
|
|
|
%license COPYING
|
2021-06-24 12:15:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
2021-06-24 11:55:15 +00:00
|
|
|
|
%doc CHANGELOG.md
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%doc TODO.rst
|
2021-06-24 12:15:00 +00:00
|
|
|
|
%doc docs/build/html
|
2018-05-17 10:40:11 +00:00
|
|
|
|
|
2013-11-29 10:57:08 +00:00
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
|
%changelog
|
2021-06-23 16:46:12 +00:00
|
|
|
|
* Wed Jun 23 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.4.11-14
|
|
|
|
|
- Rename %%pypi_name to %%srcname
|
2021-06-23 16:48:28 +00:00
|
|
|
|
- Switch to GitHub tarball, which includes docs/
|
2021-06-23 16:51:55 +00:00
|
|
|
|
- Use pytest instead of nose (which is deprecated) as the test runner in
|
|
|
|
|
%%check; we are not quite ready to remove the nose BR, however
|
2021-06-24 11:52:57 +00:00
|
|
|
|
- Drop manual Requires on python3-six; it will be generated from metadata
|
2021-06-24 11:53:30 +00:00
|
|
|
|
- Drop obsolete %%python_provide macro
|
2021-06-24 11:54:22 +00:00
|
|
|
|
- Properly mark the license file
|
2021-06-24 11:55:15 +00:00
|
|
|
|
- Package CHANGELOG.md, README.rst, and TODO.rst
|
2021-06-24 12:00:12 +00:00
|
|
|
|
- Update summaries and descriptions
|
2021-06-24 12:09:54 +00:00
|
|
|
|
- Switch to pyproject-rpm-macros
|
2021-06-24 12:15:00 +00:00
|
|
|
|
- Build the HTML documentation and add a -doc subpackage
|
2021-06-23 16:46:12 +00:00
|
|
|
|
|
2021-06-02 20:11:25 +00:00
|
|
|
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.4.11-13
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
2021-01-27 13:43:55 +00:00
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
2020-07-29 04:11:23 +00:00
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
2020-05-22 22:56:07 +00:00
|
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.11-10
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
2020-01-30 15:39:08 +00:00
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
2019-09-21 20:33:28 +00:00
|
|
|
|
* Sat Sep 21 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.11-8
|
|
|
|
|
- Subpackage python2-sure has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
2019-08-15 06:59:08 +00:00
|
|
|
|
* Thu Aug 15 2019 Richard Shaw <hobbes1069@gmail.com> - 1.4.11-7
|
|
|
|
|
- Rebuild for Python 3.8.
|
|
|
|
|
|
2019-07-26 16:35:35 +00:00
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
2019-02-02 09:35:41 +00:00
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
2018-12-03 14:20:48 +00:00
|
|
|
|
* Mon Dec 03 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.11-4
|
|
|
|
|
- Fix ambiguous Python requires
|
|
|
|
|
|
2018-07-14 02:16:28 +00:00
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
2018-06-15 16:25:40 +00:00
|
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.11-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
2018-05-17 14:41:22 +00:00
|
|
|
|
* Thu May 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.11-1
|
|
|
|
|
- Updated to 1.4.11 (#1421319)
|
|
|
|
|
|
2018-05-17 10:32:16 +00:00
|
|
|
|
* Thu May 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.10-1
|
|
|
|
|
- Updated to 1.4.10 that supports Python 3.7 (#1578530)
|
2018-05-17 10:34:56 +00:00
|
|
|
|
- Stop py3dir pushd/popd, it is not needed
|
|
|
|
|
- Removed an unneeded shebeng sed
|
2018-05-17 10:35:58 +00:00
|
|
|
|
- Drop %%sum macro, use %%summary
|
2018-05-17 10:37:49 +00:00
|
|
|
|
- Drop forbidden SCL macros
|
2018-05-17 10:40:11 +00:00
|
|
|
|
- Drop unneeded python3 conditional
|
2018-05-17 10:32:16 +00:00
|
|
|
|
|
2018-02-09 11:07:52 +00:00
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
2017-09-29 19:07:08 +00:00
|
|
|
|
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 1.4.0-4
|
|
|
|
|
- Cleanup spec file conditionals
|
|
|
|
|
|
2017-07-27 11:58:25 +00:00
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
2017-02-11 10:37:31 +00:00
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
2016-12-21 17:35:38 +00:00
|
|
|
|
* Wed Dec 21 2016 Adam Williamson <awilliam@redhat.com> - 1.4.0-1
|
|
|
|
|
- New release 1.4.0 (builds against Python 3.6)
|
|
|
|
|
- Drop sources merged upstream
|
|
|
|
|
- Modernize spec a bit (use modern macros)
|
|
|
|
|
- Rename python2 package to python2-sure
|
|
|
|
|
|
2016-12-19 17:20:38 +00:00
|
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.7-6
|
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
|
2016-07-19 11:44:29 +00:00
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-5
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
|
2016-02-04 21:04:31 +00:00
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
2015-10-14 06:21:46 +00:00
|
|
|
|
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 1.2.7-3
|
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
|
2015-06-18 20:57:23 +00:00
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
2014-11-14 12:30:20 +00:00
|
|
|
|
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.2.7-1
|
|
|
|
|
- Updated to 1.2.7
|
|
|
|
|
|
2014-06-07 23:26:14 +00:00
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
2014-05-16 05:57:27 +00:00
|
|
|
|
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
|
2014-03-31 11:26:55 +00:00
|
|
|
|
* Mon Mar 31 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.5-2
|
|
|
|
|
- Remove unneeded dependencies from setup.py.
|
|
|
|
|
Resolves: rhbz#1082400
|
|
|
|
|
|
2014-03-07 13:07:00 +00:00
|
|
|
|
* Fri Mar 07 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.5-1
|
|
|
|
|
- Updated to 1.2.5
|
|
|
|
|
- Fix with_python3 macro definition to work correctly on EPEL, too.
|
|
|
|
|
|
2013-11-29 10:57:08 +00:00
|
|
|
|
* Fri Nov 29 2013 Miro Hrončok <mhroncok@redhat.com> - 1.2.3-1
|
|
|
|
|
- Updated
|
|
|
|
|
- Introduced Python 3 subpackage
|
|
|
|
|
|
2013-08-04 10:01:43 +00:00
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
2013-05-30 12:35:27 +00:00
|
|
|
|
* Thu May 30 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.7-2
|
|
|
|
|
- Introduce SCL macros in the specfile.
|
|
|
|
|
|
2013-02-18 13:14:10 +00:00
|
|
|
|
* Mon Feb 18 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.7-1
|
|
|
|
|
- Update to 1.1.7.
|
|
|
|
|
- License change from MIT to GPLv3.
|
|
|
|
|
|
2013-02-14 20:29:52 +00:00
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
2012-11-05 12:30:15 +00:00
|
|
|
|
* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.6-1
|
|
|
|
|
- Update to 1.0.6.
|
|
|
|
|
|
2012-07-21 09:56:19 +00:00
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
|
* Tue Jun 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.10.3-2
|
|
|
|
|
- python-devel should be python2-devel
|
|
|
|
|
- URL now points to the real homepage of the project
|
|
|
|
|
|
|
|
|
|
* Fri Jun 22 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.10.3-1
|
|
|
|
|
- Initial package.
|