commit a7faf755d0e872b07455439f323e9499d20e2b47 Author: Adrian Schröter Date: Tue Dec 19 15:20:37 2023 +0100 Sync from SUSE:ALP:Source:Standard:1.0 python-pytest-check-links revision 1e0d883e91f7e3e13a051f7fbb235dd3 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pytest_check_links-0.9.0.tar.gz b/pytest_check_links-0.9.0.tar.gz new file mode 100644 index 0000000..5e89e89 --- /dev/null +++ b/pytest_check_links-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1dc86f01add36649ae595a3ef562908b210c3787a25857fb97b75b9f7d03415e +size 18665 diff --git a/python-pytest-check-links.changes b/python-pytest-check-links.changes new file mode 100644 index 0000000..fd02189 --- /dev/null +++ b/python-pytest-check-links.changes @@ -0,0 +1,85 @@ +------------------------------------------------------------------- +Mon Jul 24 18:50:23 UTC 2023 - Dirk Müller + +- update to 0.9.0: + * Support Python 3.8-3.12 and Handle Flaky Tests #110 + * Update ruff #106 + * Use local coverage #105 + * Switch to pytester in tests + * Add more linting #100 + +------------------------------------------------------------------- +Thu May 4 23:08:23 UTC 2023 - Dirk Müller + +- update to 0.8.0: + * Update for newer requests-cache + * Add docstring enforcement + * Add releaser workflows + * Include py.typed file + * Update for pytest 7 + * Add flake8 and mypy linting + * Apply Auto Formatting + * Enforce labels on PRs + * Update for Jupyter Releaser + * Add changelog entry for 0.6.0 + * Handle ignore links for `ipynb` files + * Drop support for Python 3.6 and add support for Python 3.10 + * Handle attachments in notebook cells + * Fix handling of Nested RST links + * Fix check-links-ignore example in Readme + * Add Ability to Ignore Link Patterns + * Update for recommended usage of CheckLinks + +------------------------------------------------------------------- +Mon May 18 09:21:46 UTC 2020 - Tomáš Chvátal + +- Update to 0.4.2: + * Another improvement to retry logic #20 + * Clean up metadata for dist generation #19 + * Improve retry logic and add python 3 classifier #18 + +------------------------------------------------------------------- +Sun May 3 07:27:33 UTC 2020 - Tomáš Chvátal + +- Update to 0.4.0: + * Drop py27 support and add badges #15 + * Use requests(-cache) #12 + * Add checking of self- and local html anchors #10 + +------------------------------------------------------------------- +Mon Apr 27 10:25:16 UTC 2020 - Tomáš Chvátal + +- Update to 0.3.4: + * no changelog + +------------------------------------------------------------------- +Fri Apr 3 09:47:03 UTC 2020 - Tomáš Chvátal + +- Update to 0.3.2: + * no upstream changelog + +------------------------------------------------------------------- +Sun Aug 11 03:13:28 UTC 2019 - Todd R + +- Requires python-docutils + +------------------------------------------------------------------- +Mon Mar 25 11:06:59 UTC 2019 - Jan Engelhardt + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Mon Mar 25 09:01:01 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.0: + * Various examples and tests updates + +------------------------------------------------------------------- +Thu Mar 21 12:42:55 UTC 2019 - John Vandenberg + +- Fix test suite and add bcond test as the tests require internet + +------------------------------------------------------------------- +Fri Apr 20 21:45:05 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-pytest-check-links.spec b/python-pytest-check-links.spec new file mode 100644 index 0000000..63ee9a0 --- /dev/null +++ b/python-pytest-check-links.spec @@ -0,0 +1,84 @@ +# +# 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.9.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