9e6650c
Name:           python-scripttester
c17cf58
Version:        0.1
7b52146
Release:        21%{?dist}
c17cf58
Summary:        Utility for testing command line scripts
c17cf58
194a23d
# BSD-2-Clause: All files with the following exception.
194a23d
# CC0-1.0: The _version.py file generated by versioneer.  If upstream updates to
194a23d
# versioneer 0.24 or later, the license will change to Unlicense.
194a23d
License:        BSD-2-Clause AND CC0-1.0
c17cf58
URL:            https://pypi.org/project/scripttester/
9e6650c
Source0:        https://github.com/matthew-brett/scripttester/archive/%{version}/scripttester-%{version}.tar.gz
f834db6
# Update versioneer 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}
fa4ff04
BuildRequires:  %{py3_dist sphinx}
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
194a23d
%package        doc
194a23d
# The content is BSD-2-Clause.  Other licenses are due to files copied in by
194a23d
# Sphinx.
194a23d
# _static/_sphinx_javascript_frameworks_compat.js: BSD-2-Clause
194a23d
# _static/alabaster.css: BSD-3-Clause
194a23d
# _static/basic.css: BSD-2-Clause
194a23d
# _static/custom.css: BSD-3-Clause
194a23d
# _static/doctools.js: BSD-2-Clause
194a23d
# _static/documentation_options.js: BSD-2-Clause
194a23d
# _static/file.png: BSD-2-Clause
194a23d
# _static/jquery*.js: MIT
194a23d
# _static/language_data.js: BSD-2-Clause
194a23d
# _static/minus.png: BSD-2-Clause
194a23d
# _static/plus.png: BSD-2-Clause
194a23d
# _static/searchtools.js: BSD-2-Clause
194a23d
# _static/underscore*.js: MIT
194a23d
# genindex.html: BSD-2-Clause
194a23d
# search.html: BSD-2-Clause
194a23d
# searchindex.js: BSD-2-Clause
194a23d
License:        BSD-2-Clause AND BSD-3-Clause AND MIT
194a23d
Summary:        Documentation for scripttester
194a23d
194a23d
%description    doc
194a23d
Documentation for python3-scripttester.
194a23d
c17cf58
%prep
9e6650c
%autosetup -n scripttester-%{version} -p1
c17cf58
e3fa9db
%generate_buildrequires
e3fa9db
%pyproject_buildrequires -x test
e3fa9db
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}
194a23d
%doc README.html
194a23d
194a23d
%files doc
194a23d
%doc doc/_build/html
c17cf58
c17cf58
%changelog
7b52146
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-21
7b52146
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7b52146
af8e932
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-20
af8e932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
af8e932
c8933f1
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-19
c8933f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c8933f1
194a23d
* Mon Jul 17 2023 Jerry James <loganjerry@gmail.com> - 0.1-18
194a23d
- Move documentation to a doc subpackage
194a23d
6305878
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.1-18
6305878
- Rebuilt for Python 3.12
6305878
e3fa9db
* Thu Feb 23 2023 Jerry James <loganjerry@gmail.com> - 0.1-17
e3fa9db
- Dynamically generate BuildRequires
e3fa9db
d5dda96
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-17
d5dda96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d5dda96
f834db6
* Tue Dec 13 2022 Jerry James <loganjerry@gmail.com> - 0.1-16
f834db6
- Convert License tag to SPDX
f834db6
13b8907
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-16
13b8907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
13b8907
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