Blame python-scripttester.spec

9e6650c
Name:           python-scripttester
c17cf58
Version:        0.1
33e8ffd
Release:        15%{?dist}
c17cf58
Summary:        Utility for testing command line scripts
c17cf58
c17cf58
License:        BSD
c17cf58
URL:            https://pypi.org/project/scripttester/
9e6650c
Source0:        https://github.com/matthew-brett/scripttester/archive/%{version}/scripttester-%{version}.tar.gz
4fe1689
# Update version to fix FTBFS with python 3.11
4fe1689
# https://github.com/matthew-brett/scripttester/issues/1
4fe1689
Patch0:         %{name}-versioneer.patch
4fe1689
c17cf58
BuildArch:      noarch
c17cf58
fa4ff04
BuildRequires:  make
c17cf58
BuildRequires:  python3-devel
fa4ff04
BuildRequires:  %{py3_dist docutils}
4fe1689
BuildRequires:  %{py3_dist pip}
fa4ff04
BuildRequires:  %{py3_dist pytest}
fa4ff04
BuildRequires:  %{py3_dist setuptools}
fa4ff04
BuildRequires:  %{py3_dist sphinx}
4fe1689
BuildRequires:  %{py3_dist wheel}
c17cf58
2d348b3
%global desc %{expand:
2d348b3
Provides a class to be instantiated in tests that checks that scripts
2d348b3
can be run and give correct output.  The class tries to find your
2d348b3
scripts whether you have installed them or not.  If you have not
2d348b3
installed them, the scripts will not be on your system PATH, and we have
2d348b3
to find them.  The heuristic is to look (by default) in the directory
2d348b3
containing mymodule; if there is a setup.py file there, and a scripts
2d348b3
subdirectory, assume that directory contains the scripts.
2d348b3
2d348b3
Note there is no way of using this not-installed mechanism to find
2d348b3
entrypoint scripts, that have not been installed.  To find these, we
2d348b3
would have to run the setup.py file.}
c17cf58
75b2e70
%description %{desc}
c17cf58
9e6650c
%package     -n python3-scripttester
c17cf58
Summary:        Utility for testing command line scripts
c17cf58
9e6650c
%description -n python3-scripttester %{desc}
c17cf58
c17cf58
%prep
9e6650c
%autosetup -n scripttester-%{version} -p1
c17cf58
c17cf58
%build
4fe1689
%pyproject_wheel
2d348b3
rst2html --no-datestamp README.rst README.html
c17cf58
c17cf58
# Documentation build
2d348b3
sed -i 's/python -msphinx/sphinx-build/' doc/Makefile
c17cf58
make -C doc html
c17cf58
rm -f doc/_build/html/.{buildinfo,nojekyll}
c17cf58
c17cf58
%install
4fe1689
%pyproject_install
9e6650c
%pyproject_save_files scripttester
c17cf58
c17cf58
%check
f87da49
%pytest
c17cf58
9e6650c
%files -n python3-scripttester -f %{pyproject_files}
2d348b3
%doc README.html doc/_build/html
c17cf58
c17cf58
%changelog
33e8ffd
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1-15
33e8ffd
- Rebuilt for Python 3.11
33e8ffd
b46251d
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-14
b46251d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b46251d
4fe1689
* Mon Nov 29 2021 Jerry James <loganjerry@gmail.com> - 0.1-13
4fe1689
- Update versioneer.py to fix FTBFS with python 3.11 (bz 2025594)
4fe1689
- Use latest python macros
4fe1689
478b2f1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-12
478b2f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
478b2f1
6efffa3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1-11
6efffa3
- Rebuilt for Python 3.10
6efffa3
1fa286a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-10
1fa286a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1fa286a
7bbc7a5
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-9
7bbc7a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7bbc7a5
c51f721
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1-8
c51f721
- Rebuilt for Python 3.9
c51f721
625ba24
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-7
625ba24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
625ba24
8c5be5c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1-6
8c5be5c
- Rebuilt for Python 3.8.0rc1 (#1748018)
8c5be5c
77e916c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1-5
77e916c
- Rebuilt for Python 3.8
77e916c
71e2028
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-4
71e2028
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
71e2028
83cbc19
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-3
83cbc19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
83cbc19
ae0e5fb
* Thu Nov 22 2018 Jerry James <loganjerry@gmail.com> - 0.1-2
ae0e5fb
- Drop python2 subpackage (bz 1651179)
ae0e5fb
c17cf58
* Wed Sep  5 2018 Jerry James <loganjerry@gmail.com> - 0.1-1
c17cf58
- Initial RPM