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