|
|
015e41 |
%global pypi_name testpath
|
|
|
015e41 |
|
|
|
015e41 |
Name: python-%{pypi_name}
|
|
|
015e41 |
Version: 0.4.4
|
|
|
015e41 |
Release: 4%{?dist}
|
|
|
015e41 |
Summary: Test utilities for code working with files and commands
|
|
|
015e41 |
|
|
|
015e41 |
License: MIT
|
|
|
015e41 |
URL: https://github.com/jupyter/testpath
|
|
|
015e41 |
|
|
|
015e41 |
Source0: %pypi_source
|
|
|
015e41 |
|
|
|
015e41 |
BuildArch: noarch
|
|
|
015e41 |
|
|
|
015e41 |
BuildRequires: python3-pip
|
|
|
015e41 |
BuildRequires: python3-devel
|
|
|
015e41 |
|
|
|
015e41 |
BuildRequires: python3-flit
|
|
|
015e41 |
|
|
|
015e41 |
BuildRequires: python3-sphinx
|
|
|
015e41 |
BuildRequires: python3-sphinx_rtd_theme
|
|
|
015e41 |
|
|
|
015e41 |
# Tests:
|
|
|
015e41 |
BuildRequires: python3-pytest
|
|
|
015e41 |
|
|
|
015e41 |
%global _description \
|
|
|
015e41 |
Testpath is a collection of utilities for Python code working with files and \
|
|
|
015e41 |
commands. \
|
|
|
015e41 |
\
|
|
|
015e41 |
It contains functions to check things on the filesystem, and tools for \
|
|
|
015e41 |
mocking system commands and recording calls to those.
|
|
|
015e41 |
|
|
|
015e41 |
%description %_description
|
|
|
015e41 |
|
|
|
015e41 |
%package -n python3-%{pypi_name}
|
|
|
015e41 |
Summary: %summary
|
|
|
015e41 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
015e41 |
|
|
|
015e41 |
%description -n python3-%{pypi_name}
|
|
|
015e41 |
|
|
|
015e41 |
%_description
|
|
|
015e41 |
|
|
|
015e41 |
%package doc
|
|
|
015e41 |
Summary: %{name} documentation
|
|
|
015e41 |
%description doc
|
|
|
015e41 |
Documentation for %{name}.
|
|
|
015e41 |
|
|
|
015e41 |
|
|
|
015e41 |
%prep
|
|
|
015e41 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
015e41 |
|
|
|
015e41 |
# The exe files are only needed on Microsoft Windows
|
|
|
015e41 |
rm -f %{pypi_name}/*.exe
|
|
|
015e41 |
|
|
|
015e41 |
%build
|
|
|
015e41 |
# this package has no setup.py
|
|
|
015e41 |
# and upstream does not want one
|
|
|
015e41 |
# https://github.com/takluyver/flit/issues/74
|
|
|
015e41 |
# we use flit to create a wheel from sources
|
|
|
015e41 |
flit build --format wheel
|
|
|
015e41 |
|
|
|
015e41 |
# generate html docs
|
|
|
015e41 |
sphinx-build-3 doc html
|
|
|
015e41 |
# remove the sphinx-build leftovers
|
|
|
015e41 |
rm -rf html/.{doctrees,buildinfo}
|
|
|
015e41 |
|
|
|
015e41 |
|
|
|
015e41 |
%install
|
|
|
015e41 |
# We install the wheel created at %%build
|
|
|
015e41 |
%py3_install_wheel %{pypi_name}-%{version}-py2.py3-none-any.whl
|
|
|
015e41 |
|
|
|
015e41 |
|
|
|
015e41 |
|
|
|
015e41 |
%check
|
|
|
015e41 |
%{__python3} -m pytest -v
|
|
|
015e41 |
|
|
|
015e41 |
|
|
|
015e41 |
%files -n python3-%{pypi_name}
|
|
|
015e41 |
%doc README.rst
|
|
|
015e41 |
%license LICENSE
|
|
|
015e41 |
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
|
|
|
015e41 |
%{python3_sitelib}/%{pypi_name}/
|
|
|
015e41 |
|
|
|
015e41 |
%files doc
|
|
|
015e41 |
%doc html
|
|
|
015e41 |
|
|
|
015e41 |
%changelog
|
|
|
015e41 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-4
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-3
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.4-2
|
|
|
015e41 |
- Rebuilt for Python 3.9
|
|
|
015e41 |
|
|
|
015e41 |
* Thu May 14 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0.4.4-1
|
|
|
015e41 |
- Update to 0.4.4
|
|
|
015e41 |
|
|
|
015e41 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-11
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-10
|
|
|
015e41 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
015e41 |
|
|
|
015e41 |
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-9
|
|
|
015e41 |
- Rebuilt for Python 3.8
|
|
|
015e41 |
|
|
|
015e41 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-8
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Fri Feb 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-7
|
|
|
015e41 |
- Subpackage python2-testpath has been removed
|
|
|
015e41 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
015e41 |
|
|
|
015e41 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-5
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-4
|
|
|
015e41 |
- Rebuilt for Python 3.7
|
|
|
015e41 |
|
|
|
015e41 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
|
|
|
015e41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
015e41 |
|
|
|
015e41 |
* Wed May 31 2017 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-1
|
|
|
015e41 |
- New version 0.3.1 (#1455375)
|
|
|
015e41 |
- Uses pathlib2 instead of pathlib
|
|
|
015e41 |
|
|
|
015e41 |
* Wed Mar 08 2017 Miro Hrončok <mhroncok@redhat.com> - 0.3-1
|
|
|
015e41 |
- initial package
|
|
|
015e41 |
|