Files
python-pytest-check-links/python-pytest-check-links.spec
Dirk Mueller 63cb17570a - update to 0.8.0:
* ### Maintenance and upkeep improvements
  * Update for newer requests-cache #98 (@blink1073)
  * Add docstring enforcement #97 (@blink1073)
  * Add releaser workflows #96 (@blink1073)
  * Include py.typed file #48 (@blink1073)
  * Update for pytest 7 #44 (@blink1073)
  * Add flake8 and mypy linting #46 (@blink1073)
  * Apply Auto Formatting #45 (@blink1073)
  * Enforce labels on PRs #43 (@blink1073)
  * Update for Jupyter Releaser #42 (@blink1073)
  * Add changelog entry for 0.6.0 #41 (@blink1073)
  * Handle ignore links for `ipynb` files #39 (@pratyakshajha)
  * Drop support for Python 3.6 and add support for Python 3.10
  * Handle attachments in notebook cells #36 (@jtpio)
  * Fix handling of Nested RST links #33 (@jtpio)
  * Fix check-links-ignore example in Readme #32 (@blink1073)
  * Add Ability to Ignore Link Patterns #30 (@afshin)
  * Update for recommended usage of CheckLinks #22

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-check-links?expand=0&rev=15
2023-05-04 23:11:49 +00:00

85 lines
2.5 KiB
RPMSpec

#
# spec file for package python-pytest-check-links
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Tests natually require internet
%bcond_with test
%{?sle15_python_module_pythons}
Name: python-pytest-check-links
Version: 0.8.0
Release: 0
Summary: Pytest plugin for checking links in files
License: BSD-3-Clause
URL: https://github.com/minrk/pytest-check-links
Source: https://files.pythonhosted.org/packages/source/p/pytest_check_links/pytest_check_links-%{version}.tar.gz
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-docutils
Requires: python-html5lib
Requires: python-pytest >= 2.8
Requires: python-requests
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-jupyter_nbconvert
Recommends: python-jupyter_nbformat
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module html5lib}
BuildRequires: %{python_module jupyter_nbconvert}
BuildRequires: %{python_module jupyter_nbformat}
BuildRequires: %{python_module pytest >= 2.8}
BuildRequires: %{python_module requests}
%endif
%python_subpackages
%description
A pytest plugin that checks URLs for HTML-containing files.
%prep
%setup -q -n pytest_check_links-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pytest-check-links
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%pytest --check-links test/linkcheck.ipynb
%endif
%post
%python_install_alternative pytest-check-links
%postun
%python_uninstall_alternative pytest-check-links
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python_alternative %{_bindir}/pytest-check-links
%{python_sitelib}/pytest_check_links
%{python_sitelib}/pytest_check_links-%{version}.dist-info
%changelog