Blame python-pytest-regressions.spec

6771cd9
Name:           python-pytest-regressions
cab169e
Version:        2.5.0
a866de5
Release:        3%{?dist}
8f1dbd6
Summary:        Pytest fixtures for writing regression tests
32afeb5
8f1dbd6
License:        MIT
32afeb5
BuildArch:      noarch
8f1dbd6
URL:            https://pytest-regressions.readthedocs.io/
6771cd9
Source0:        https://github.com/ESSS/pytest-regressions/archive/%{version}/pytest-regressions-%{version}.tar.gz
8f1dbd6
8f1dbd6
BuildRequires:  make
8f1dbd6
BuildRequires:  python3-devel
8f1dbd6
BuildRequires:  %{py3_dist sphinx}
8f1dbd6
BuildRequires:  %{py3_dist sphinx_rtd_theme}
8f1dbd6
8f1dbd6
%global _desc %{expand:
8f1dbd6
This pytest plugin makes it simple to test general data, images, files,
8f1dbd6
and numeric tables by saving *expected* data in a *data directory*
8f1dbd6
(courtesy of pytest-datadir) that can be used to verify that future runs
8f1dbd6
produce the same data.}
8f1dbd6
8f1dbd6
%description %_desc
8f1dbd6
6771cd9
%package     -n python3-pytest-regressions
8f1dbd6
Summary:        %{summary}
8f1dbd6
6771cd9
%description -n python3-pytest-regressions %_desc
8f1dbd6
8f1dbd6
%package        doc
32afeb5
# The content is MIT.  Sphinx copies files into the output with these licenses:
32afeb5
# - searchindex.js: BSD-2-Clause
32afeb5
# - _static/basic.css: BSD-2-Clause
32afeb5
# - _static/css/badge_only.css: MIT
32afeb5
# - _static/css/theme.css: MIT
32afeb5
# - _static/doctools.js: BSD-2-Clause
32afeb5
# - _static/documentation_options.js: BSD-2-Clause
32afeb5
# - _static/file.png: BSD-2-Clause
32afeb5
# - _static/jquery*.js: MIT
32afeb5
# - _static/js/badge_only.js: MIT
32afeb5
# - _static/js/theme.js: MIT
32afeb5
# - _static/language_data.js: BSD-2-Clause
32afeb5
# - _static/minus.png: BSD-2-Clause
32afeb5
# - _static/plus.png: BSD-2-Clause
32afeb5
# - _static/pygments.css: MIT
32afeb5
# - _static/searchtools.js: BSD-2-Clause
32afeb5
# - _static/_sphinx_javascript_frameworks_compat.js: BSD-2-Clause
32afeb5
# - _static/underscore*.js: MIT
32afeb5
License:        MIT AND BSD-2-Clause
8f1dbd6
Summary:        Documentation for %{name}
8f1dbd6
8f1dbd6
%description    doc
8f1dbd6
Documentation for %{name}.
8f1dbd6
3c3b53e
%pyproject_extras_subpkg -n python3-pytest-regressions num,image,dataframe
3c3b53e
8f1dbd6
%prep
32afeb5
%autosetup -n pytest-regressions-%{version}
8f1dbd6
8f1dbd6
# Do not attempt to use git to determine the version
8f1dbd6
sed -e 's/\(version = \).*/\1"%{version}"/' \
8f1dbd6
    -e 's/\(release = \).*/\1"%{version}"/' \
8f1dbd6
    -i doc/conf.py
53395d0
# Remove unnecessary dependencies
f22ba76
sed -e '/"mypy",/d' -e '/"pre-commit",/d' -e '/"restructuredtext-lint",/d' \
f22ba76
    -i setup.py
8f1dbd6
3c3b53e
%generate_buildrequires
f22ba76
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
3c3b53e
%pyproject_buildrequires -t -x num,image,dataframe
3c3b53e
8f1dbd6
%build
f22ba76
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
580493f
%pyproject_wheel
8f1dbd6
8f1dbd6
# Build documentation
f22ba76
PYTHONPATH=$PWD/build/lib make -C doc html
8f1dbd6
rst2html --no-datestamp CHANGELOG.rst CHANGELOG.html
8f1dbd6
rst2html --no-datestamp README.rst README.html
8f1dbd6
rm doc/_build/html/.buildinfo
8f1dbd6
8f1dbd6
%install
580493f
%pyproject_install
6771cd9
%pyproject_save_files pytest_regressions
8f1dbd6
8f1dbd6
%check
7e3180e
# Adapt the expected ndarray type on s390x
7e3180e
if [ $(uname -m) = s390x ]; then
7e3180e
  sed -i 's/int64/
7e3180e
fi
a7f9316
%tox -- -- -Wdefault
8f1dbd6
6771cd9
%files -n python3-pytest-regressions -f %{pyproject_files}
8f1dbd6
%doc CHANGELOG.html README.html
8f1dbd6
6771cd9
%files doc
8f1dbd6
%doc doc/_build/html
8f1dbd6
8f1dbd6
%changelog
a866de5
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
a866de5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
a866de5
17f572a
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
17f572a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
17f572a
cab169e
* Thu Aug 31 2023 Jerry James <loganjerry@gmail.com> - 2.5.0-1
cab169e
- Version 2.5.0
cab169e
22691e9
* Wed Aug 30 2023 Jerry James <loganjerry@gmail.com> - 2.4.3-1
22691e9
- Version 2.4.3
22691e9
a058b78
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-5
a058b78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
a058b78
2f7960f
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 2.4.2-4
2f7960f
- Rebuilt for Python 3.12
2f7960f
3c3b53e
* Thu Feb 23 2023 Jerry James <loganjerry@gmail.com> - 2.4.2-3
3c3b53e
- Generate extras subpackages
3c3b53e
- Dynamically generate BuildRequires
3c3b53e
844c604
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-2
844c604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
844c604
12d1a92
* Fri Jan 13 2023 Jerry James <loganjerry@gmail.com> - 2.4.2-1
12d1a92
- Version 2.4.2
12d1a92
6b1897d
* Sat Sep 17 2022 Jerry James <loganjerry@gmail.com> - 2.4.1-1
6b1897d
- Version 2.4.1
6b1897d
32afeb5
* Fri Sep 16 2022 Jerry James <loganjerry@gmail.com> - 2.4.0-1
32afeb5
- Version 2.4.0
32afeb5
- Drop obsolete -numexpr patch
32afeb5
- Clarify license of the -doc subpackage
7e3180e
- Fix tests on s390x
32afeb5
b00be41
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-4
b00be41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b00be41
24a52c5
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 2.3.1-3
24a52c5
- Rebuilt for Python 3.11
24a52c5
a59e042
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
a59e042
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a59e042
d7fd198
* Wed Jan 19 2022 Jerry James <loganjerry@gmail.com> - 2.3.1-1
d7fd198
- Version 2.3.1
d7fd198
580493f
* Tue Jan  4 2022 Jerry James <loganjerry@gmail.com> - 2.3.0-1
580493f
- Version 2.3.0
580493f
8f1dbd6
* Tue Jul 13 2021 Jerry James <loganjerry@gmail.com> - 2.2.0-1
8f1dbd6
- Initial RPM