Name: python-scripttester Version: 0.1 Release: 19%{?dist} Summary: Utility for testing command line scripts # BSD-2-Clause: All files with the following exception. # CC0-1.0: The _version.py file generated by versioneer. If upstream updates to # versioneer 0.24 or later, the license will change to Unlicense. License: BSD-2-Clause AND CC0-1.0 URL: https://pypi.org/project/scripttester/ Source0: https://github.com/matthew-brett/scripttester/archive/%{version}/scripttester-%{version}.tar.gz # Update versioneer to fix FTBFS with python 3.11 # https://github.com/matthew-brett/scripttester/issues/1 Patch0: %{name}-versioneer.patch BuildArch: noarch BuildRequires: make BuildRequires: python3-devel BuildRequires: %{py3_dist docutils} BuildRequires: %{py3_dist sphinx} %global desc %{expand: Provides a class to be instantiated in tests that checks that scripts can be run and give correct output. The class tries to find your scripts whether you have installed them or not. If you have not installed them, the scripts will not be on your system PATH, and we have to find them. The heuristic is to look (by default) in the directory containing mymodule; if there is a setup.py file there, and a scripts subdirectory, assume that directory contains the scripts. Note there is no way of using this not-installed mechanism to find entrypoint scripts, that have not been installed. To find these, we would have to run the setup.py file.} %description %{desc} %package -n python3-scripttester Summary: Utility for testing command line scripts %description -n python3-scripttester %{desc} %package doc # The content is BSD-2-Clause. Other licenses are due to files copied in by # Sphinx. # _static/_sphinx_javascript_frameworks_compat.js: BSD-2-Clause # _static/alabaster.css: BSD-3-Clause # _static/basic.css: BSD-2-Clause # _static/custom.css: BSD-3-Clause # _static/doctools.js: BSD-2-Clause # _static/documentation_options.js: BSD-2-Clause # _static/file.png: BSD-2-Clause # _static/jquery*.js: MIT # _static/language_data.js: BSD-2-Clause # _static/minus.png: BSD-2-Clause # _static/plus.png: BSD-2-Clause # _static/searchtools.js: BSD-2-Clause # _static/underscore*.js: MIT # genindex.html: BSD-2-Clause # search.html: BSD-2-Clause # searchindex.js: BSD-2-Clause License: BSD-2-Clause AND BSD-3-Clause AND MIT Summary: Documentation for scripttester %description doc Documentation for python3-scripttester. %prep %autosetup -n scripttester-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel rst2html --no-datestamp README.rst README.html # Documentation build sed -i 's/python -msphinx/sphinx-build/' doc/Makefile make -C doc html rm -f doc/_build/html/.{buildinfo,nojekyll} %install %pyproject_install %pyproject_save_files scripttester %check %pytest %files -n python3-scripttester -f %{pyproject_files} %doc README.html %files doc %doc doc/_build/html %changelog * Fri Jul 21 2023 Fedora Release Engineering - 0.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 17 2023 Jerry James - 0.1-18 - Move documentation to a doc subpackage * Wed Jun 14 2023 Python Maint - 0.1-18 - Rebuilt for Python 3.12 * Thu Feb 23 2023 Jerry James - 0.1-17 - Dynamically generate BuildRequires * Fri Jan 20 2023 Fedora Release Engineering - 0.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Dec 13 2022 Jerry James - 0.1-16 - Convert License tag to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 0.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.1-15 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 29 2021 Jerry James - 0.1-13 - Update versioneer.py to fix FTBFS with python 3.11 (bz 2025594) - Use latest python macros * Fri Jul 23 2021 Fedora Release Engineering - 0.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.1-11 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.1-8 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.1-6 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.1-5 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 22 2018 Jerry James - 0.1-2 - Drop python2 subpackage (bz 1651179) * Wed Sep 5 2018 Jerry James - 0.1-1 - Initial RPM