rstcheck / rstcheck-core

Core library behind rstcheck.
http://rstcheck-core.rtfd.io/
MIT License
4 stars 8 forks source link

[Feature]: Add 3.13 support #98

Closed clin1234 closed 4 months ago

clin1234 commented 4 months ago

To Dos

Description

Installing for 3.13 requires UNSAFE_PYO3_SKIP_VERSION_CHECK=1 due to pydantic-core. But it runs.

Operating System

Linux

Operating System Details

No response

Python Version

3.13.0b2

rstcheck Version

1.2.1

Cielquan commented 4 months ago

I have zero problems installing rstcheck in a 3.13b2 venv.


$ virtualenv -p 3.13 .venv3_13
created virtual environment CPython3.13.0.beta.2-64 in 53ms
  creator CPython3Posix(dest=/home/krys/Projects/.contributions/rstcheck-core/.venv3_13, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/home/krys/.local/share/virtualenv)
    added seed packages: pip==24.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

$ . .venv3_13/bin/activate

$ python -VV
Python 3.13.0b2 (main, Jun  8 2024, 19:41:53) [GCC 9.4.0]

$  pip install rstcheck
Collecting rstcheck
  Using cached rstcheck-6.2.3-py3-none-any.whl.metadata (9.3 kB)
Collecting rstcheck-core>=1.1 (from rstcheck)
  Using cached rstcheck_core-1.2.1-py3-none-any.whl.metadata (9.3 kB)
Collecting typer>=0.12.0 (from rstcheck)
  Using cached typer-0.12.3-py3-none-any.whl.metadata (15 kB)
Collecting docutils>=0.7 (from rstcheck-core>=1.1->rstcheck)
  Using cached docutils-0.21.2-py3-none-any.whl.metadata (2.8 kB)
Collecting pydantic>=2 (from rstcheck-core>=1.1->rstcheck)
  Using cached pydantic-2.8.2-py3-none-any.whl.metadata (125 kB)
Collecting click>=8.0.0 (from typer>=0.12.0->rstcheck)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting typing-extensions>=3.7.4.3 (from typer>=0.12.0->rstcheck)
  Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting shellingham>=1.3.0 (from typer>=0.12.0->rstcheck)
  Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting rich>=10.11.0 (from typer>=0.12.0->rstcheck)
  Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB)
Collecting annotated-types>=0.4.0 (from pydantic>=2->rstcheck-core>=1.1->rstcheck)
  Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.20.1 (from pydantic>=2->rstcheck-core>=1.1->rstcheck)
  Using cached pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.11.0->typer>=0.12.0->rstcheck)
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.11.0->typer>=0.12.0->rstcheck)
  Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.11.0->typer>=0.12.0->rstcheck)
  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Using cached rstcheck-6.2.3-py3-none-any.whl (8.5 kB)
Using cached rstcheck_core-1.2.1-py3-none-any.whl (27 kB)
Using cached typer-0.12.3-py3-none-any.whl (47 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached docutils-0.21.2-py3-none-any.whl (587 kB)
Using cached pydantic-2.8.2-py3-none-any.whl (423 kB)
Using cached pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
Using cached rich-13.7.1-py3-none-any.whl (240 kB)
Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: typing-extensions, shellingham, pygments, mdurl, docutils, click, annotated-types, pydantic-core, markdown-it-py, rich, pydantic, typer, rstcheck-core, rstcheck
Successfully installed annotated-types-0.7.0 click-8.1.7 docutils-0.21.2 markdown-it-py-3.0.0 mdurl-0.1.2 pydantic-2.8.2 pydantic-core-2.20.1 pygments-2.18.0 rich-13.7.1 rstcheck-6.2.3 rstcheck-core-1.2.1 shellingham-1.5.4 typer-0.12.3 typing-extensions-4.12.2

[notice] A new release of pip is available: 24.1 -> 24.1.1
[notice] To update, run: pip install --upgrade pip

$ rstcheck --version
rstcheck CLI Version: 6.2.3
rstcheck-core Version: 1.2.1

$ rstcheck testfile.rst 
testfile.bak.rst:1: (SEVERE/4) Title overline & underline mismatch.
Error! Issues detected.

testfile.rst content:

-------
Heading
------