f22bdd5
%bcond_without tests
f22bdd5
%bcond_without docs
44c1d0f
%global pypi_name interrogate
44c1d0f
44c1d0f
%global _description %{expand:
44c1d0f
interrogate checks your code base for missing docstrings.
44c1d0f
Documentation should be as important as code itself. And it should 
44c1d0f
live within code. Python standardized docstrings, allowing for developers 
44c1d0f
to navigate libraries as simply as calling help() on objects, and with 
44c1d0f
powerful tools like Sphinx, pydoc, and Docutils to automatically generate 
44c1d0f
HTML, LaTeX, PDFs, etc.}
44c1d0f
44c1d0f
Name:           python-%{pypi_name}
f22bdd5
Version:        1.6.0
f22bdd5
Release:        1%{?dist}
44c1d0f
Summary:        Interrogate a codebase for docstring coverage
44c1d0f
44c1d0f
License:        MIT
44c1d0f
URL:            https://github.com/econchick/interrogate
44c1d0f
Source0:        %{pypi_source}
44c1d0f
BuildArch:      noarch
44c1d0f
44c1d0f
BuildRequires:  python3-devel
f22bdd5
f22bdd5
%if %{with tests}
44c1d0f
BuildRequires:  python3dist(pytest)
44c1d0f
BuildRequires:  python3dist(pytest-cov)
f22bdd5
BuildRequires:  python3dist(pytest-mock)
f22bdd5
%endif
f22bdd5
f22bdd5
%if %{with docs}
f22bdd5
BuildRequires:  python3dist(sphinx)
f22bdd5
%endif
44c1d0f
44c1d0f
%description %_description
44c1d0f
44c1d0f
%package -n     python3-%{pypi_name}
44c1d0f
Summary:        %{summary}
44c1d0f
44c1d0f
%description -n python3-%{pypi_name} %_description
44c1d0f
44c1d0f
%package -n python-%{pypi_name}-doc
44c1d0f
Summary:  %{summary}
44c1d0f
44c1d0f
%description -n python-%{pypi_name}-doc
44c1d0f
Documentation for interrogate
44c1d0f
44c1d0f
%prep
44c1d0f
%autosetup -n %{pypi_name}-%{version}
f22bdd5
f22bdd5
%generate_buildrequires
f22bdd5
%pyproject_buildrequires -r
44c1d0f
44c1d0f
%build
f22bdd5
%pyproject_wheel
f22bdd5
44c1d0f
# generate html docs
44c1d0f
PYTHONPATH=${PWD} sphinx-build-3 docs html
44c1d0f
# remove the sphinx-build leftovers
44c1d0f
rm -rf html/.{doctrees,buildinfo}
44c1d0f
44c1d0f
%install
f22bdd5
%pyproject_install
f22bdd5
%pyproject_save_files %{pypi_name}
44c1d0f
44c1d0f
%check
44c1d0f
%pytest tests/
44c1d0f
f22bdd5
%files -n python3-%{pypi_name} -f %{pyproject_files}
44c1d0f
%license LICENSE
44c1d0f
%doc README.rst
44c1d0f
%{_bindir}/interrogate
44c1d0f
44c1d0f
%files -n python-%{pypi_name}-doc
44c1d0f
%doc html
44c1d0f
%license LICENSE
44c1d0f
44c1d0f
%changelog
f22bdd5
* Sun Apr 7 2024 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 1.6.0-1
f22bdd5
- Update to 1.6.0
f22bdd5
0cd7795
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-9
0cd7795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
0cd7795
3a59774
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-8
3a59774
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3a59774
cdb7408
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
cdb7408
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
cdb7408
6f9b957
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 1.5.0-6
6f9b957
- Rebuilt for Python 3.12
6f9b957
4c814bf
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-5
4c814bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
4c814bf
9d06322
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
9d06322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9d06322
e51f39b
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.5.0-3
e51f39b
- Rebuilt for Python 3.11
e51f39b
01a9928
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
01a9928
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
01a9928
cf97360
* Sun Sep 12 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 1.5.0-1
cf97360
- Update to the latest upstream's release
cf97360
28ca659
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
28ca659
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
28ca659
6be681f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.4.0-2
6be681f
- Rebuilt for Python 3.10
6be681f
8e8c7e2
* Sat May 15 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 1.4.0-1
8e8c7e2
- Update to the latest upstream's release
8e8c7e2
44c1d0f
* Wed Apr 7 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 1.3.2-1
44c1d0f
- Initial package