python-testpath/python-testpath.spec

190 lines
5.5 KiB
RPMSpec
Raw Permalink Normal View History

2022-10-10 22:01:33 +00:00
%bcond_without docs
2017-03-09 15:44:23 +00:00
2023-02-13 11:46:08 +00:00
Name: python-testpath
2022-03-10 00:06:43 +00:00
Version: 0.6.0
Release: 12%{?dist}
2017-03-09 15:44:23 +00:00
Summary: Test utilities for code working with files and commands
License: BSD-3-Clause
2017-03-09 15:44:23 +00:00
URL: https://github.com/jupyter/testpath
2023-02-13 11:46:08 +00:00
Source0: %{pypi_source testpath}
2017-03-09 15:44:23 +00:00
BuildArch: noarch
BuildRequires: python3-devel
2022-10-10 22:01:33 +00:00
%if %{with docs}
2017-03-09 15:44:23 +00:00
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
2022-10-10 22:01:33 +00:00
%endif
2017-03-09 15:44:23 +00:00
2023-02-13 11:43:09 +00:00
%global _description %{expand:
Testpath is a collection of utilities for Python code working with files and
commands.
2017-03-09 15:44:23 +00:00
2023-02-13 11:43:09 +00:00
It contains functions to check things on the filesystem, and tools for
mocking system commands and recording calls to those.}
2017-03-09 15:44:23 +00:00
%description %_description
2023-02-13 11:43:09 +00:00
2023-02-13 11:46:08 +00:00
%package -n python3-testpath
2017-03-09 15:44:23 +00:00
Summary: %summary
2023-02-13 11:46:08 +00:00
%description -n python3-testpath %_description
2017-03-09 15:44:23 +00:00
2022-10-10 22:01:33 +00:00
%if %{with docs}
2017-03-09 15:44:23 +00:00
%package doc
Summary: %{name} documentation
%description doc
Documentation for %{name}.
2022-10-10 22:01:33 +00:00
%endif
2017-03-09 15:44:23 +00:00
%prep
2023-02-13 11:46:08 +00:00
%autosetup -n testpath-%{version}
2017-03-09 15:44:23 +00:00
# The exe files are only needed on Microsoft Windows
2023-02-13 11:46:08 +00:00
rm -f testpath/*.exe
2017-03-09 15:44:23 +00:00
2023-02-13 11:43:09 +00:00
%generate_buildrequires
%pyproject_buildrequires -x test
2017-03-09 15:44:23 +00:00
%build
2023-02-13 11:43:09 +00:00
%pyproject_wheel
2017-03-09 15:44:23 +00:00
2022-10-10 22:01:33 +00:00
%if %{with docs}
2017-03-09 15:44:23 +00:00
# generate html docs
sphinx-build-3 doc html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
2022-10-10 22:01:33 +00:00
%endif
2017-03-09 15:44:23 +00:00
%install
2023-02-13 11:43:09 +00:00
%pyproject_install
2023-02-13 11:46:08 +00:00
%pyproject_save_files testpath
2017-03-09 15:44:23 +00:00
%check
2022-10-10 22:07:10 +00:00
%pytest
2017-03-09 15:44:23 +00:00
2023-02-13 11:46:08 +00:00
%files -n python3-testpath -f %{pyproject_files}
2017-03-09 15:44:23 +00:00
%doc README.rst
%license LICENSE
2022-10-10 22:01:33 +00:00
%if %{with docs}
2017-03-09 15:44:23 +00:00
%files doc
%doc html
2022-10-10 22:01:33 +00:00
%endif
2017-03-09 15:44:23 +00:00
2023-02-13 11:43:09 +00:00
2017-03-09 15:44:23 +00:00
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.6.0-12
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.6.0-11
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Nov 15 2023 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-8
- Fix the License tag (from MIT to BSD-3-Clause)
- The upstream project was relicensed in 0.4.2
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-06-14 09:32:27 +00:00
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.6.0-6
- Rebuilt for Python 3.12
2023-02-13 11:43:09 +00:00
* Mon Feb 13 2023 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-5
- Convert to pyproject-rpm-macros
- The INSTALLER file now says "rpm" instead of "pip"
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-13 21:56:25 +00:00
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.6.0-2
- Rebuilt for Python 3.11
2022-03-10 00:06:43 +00:00
* Wed Mar 09 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.6.0-1
- Update to 0.6.0
- Fixes: rhbz#2058443
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-05-27 08:03:44 +00:00
* Tue Jun 08 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0.5.0-1
- Update to 0.5.0
2021-06-04 10:06:52 +00:00
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.4-5
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-05-24 17:41:20 +00:00
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.4-2
- Rebuilt for Python 3.9
2020-05-14 08:18:03 +00:00
* Thu May 14 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0.4.4-1
- Update to 0.4.4
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-10-03 12:33:13 +00:00
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-10
- Rebuilt for Python 3.8.0rc1 (#1748018)
2019-08-18 16:03:13 +00:00
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-9
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-7
- Subpackage python2-testpath has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-19 09:21:52 +00:00
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-4
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-05-31 18:23:43 +00:00
* Wed May 31 2017 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-1
- New version 0.3.1 (#1455375)
- Uses pathlib2 instead of pathlib
2017-03-09 15:44:23 +00:00
* Wed Mar 08 2017 Miro Hrončok <mhroncok@redhat.com> - 0.3-1
- initial package