## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global _description %{expand: Library for checking syntax of reStructuredText and code blocks nested within it.} %global forgeurl https://github.com/rstcheck/rstcheck-core Name: python-rstcheck-core Version: 1.3.1 Release: %{autorelease} Summary: Checks syntax of reStructuredText and code blocks nested within it %forgemeta License: MIT URL: %forgeurl Source0: %forgesource BuildArch: noarch %description %_description %package -n python3-rstcheck-core Summary: %{summary} BuildRequires: python3-devel # for tests BuildRequires: python3-pytest BuildRequires: python3-pytest-mock BuildRequires: gcc gcc-c++ %description -n python3-rstcheck-core %_description %prep export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %forgeautosetup %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %pyproject_save_files rstcheck_core %check # Fails on F44 #=================================== FAILURES =================================== #________ TestSourceChecker.test_include_directive_error_without_sphinx _________ # # @staticmethod # @pytest.mark.skipif(_extras.SPHINX_INSTALLED, reason="Test without sphinx extra.") # def test_include_directive_error_without_sphinx() -> None: # """Test error on include directive with non-existing file when sphinx is missing.""" # source = """ # .. include:: doesnt_exist.rst # """ # # result = list(checker.check_source(source)) # # assert len(result) > 0 #> assert '(ERROR/3) Problems with "include" directive path:' in result[0]["message"] #E assert '(ERROR/3) Problems with "include" directive path:' in '(SEVERE/4) Problems with "include" directive path:' # #result = [{'line_number': 2, 'message': '(SEVERE/4) Problems with "include" directive path:', 'source_origin': ''}] #source = '\n.. include:: doesnt_exist.rst\n' # #tests/checker_test.py:252: AssertionError %if 0%{?fedora} <= 45 k="${k-}${k+ and }not test_include_directive_error_without_sphinx" %endif # https://github.com/rstcheck/rstcheck-core/issues/57 k="${k-}${k+ and } not test_check_python_returns_error_on_syntax_warning" %{pytest} "${k:+-k $k}" %files -n python3-rstcheck-core -f %{pyproject_files} %license LICENSE %doc README.rst %changelog ## START: Generated by rpmautospec * Thu Aug 20 2026 Ankur Sinha (Ankur Sinha Gmail) - 1.3.1-2 - feat: fix builds for f<45 * Thu Aug 20 2026 Packit - 1.3.1-1 - Update to 1.3.1 upstream release - Resolves: rhbz#2464928 * Thu Jul 16 2026 Fedora Release Engineering - 1.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jun 04 2026 Python Maint - 1.2.2-5 - Rebuilt for Python 3.15 * Sat Jan 17 2026 Fedora Release Engineering - 1.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 1.2.2-3 - Rebuilt for Python 3.14.0rc3 bytecode * Tue Sep 02 2025 Ankur Sinha (Ankur Sinha Gmail) - 1.2.2-2 - feat: drop toml dep (fixes rh#2392566) * Mon Aug 25 2025 Packit - 1.2.2-1 - Update to 1.2.2 upstream release - Resolves: rhbz#2369628 * Fri Aug 15 2025 Python Maint - 1.2.1-5 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 1.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jun 22 2025 Python Maint - 1.2.1-3 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Jul 29 2024 Ankur Sinha (Ankur Sinha Gmail) - 1.2.1-1 - feat: v1.2.1 (fixes rh#2238165) * Mon Jul 29 2024 Ankur Sinha (Ankur Sinha Gmail) - 1.1.1-6 - chore: add packit * Fri Jul 19 2024 Fedora Release Engineering - 1.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 29 2024 Python Maint - 1.1.1-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Sep 11 2023 Maxwell G - 1.1.1-1 - Update to 1.1.1. Fixes rhbz#2238165. * Tue Aug 29 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.3-7 - fix: disable failing test, add extras for testing (fixes rhbz#2226320) * Fri Jul 21 2023 Fedora Release Engineering - 1.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 20 2023 Python Maint - 1.0.3-5 - Rebuilt for Python 3.12 * Tue Jun 20 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.3-4 - feat: import sources (fixes rhbz#2166009) * Tue Jun 20 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.3-3 - feat: ready for review * Tue Jun 20 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.3-2 - wip: waiting for https://bugzilla.redhat.com/show_bug.cgi?id=2160539 * Tue Jun 20 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.3-1 - init ## END: Generated by rpmautospec