vemel / handsdown

Python documentation generator for lazy perfectionists
https://vemel.github.io/handsdown/
MIT License
88 stars 9 forks source link

install failed on python 3.13 #39

Open doc-sheet opened 1 month ago

doc-sheet commented 1 month ago

Describe the bug Looks like typed-ast not compatible with 3.13

To Reproduce Steps to reproduce the behavior:

  1. Run pip install handsdown on 3.13

Expected behavior Module installed

Desktop (please complete the following information):

Additional context

Build failed ``` copying typed_ast/__init__.py -> build/lib.linux-x86_64-cpython-313/typed_ast copying typed_ast/conversions.py -> build/lib.linux-x86_64-cpython-313/typed_ast creating build/lib.linux-x86_64-cpython-313/typed_ast/tests copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-cpython-313/typed_ast/tests running build_ext building '_ast27' extension creating build/temp.linux-x86_64-cpython-313/ast27/Custom creating build/temp.linux-x86_64-cpython-313/ast27/Parser creating build/temp.linux-x86_64-cpython-313/ast27/Python gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -Iast27/Include -I/tmp/tmp7aya7lid/.venv/include -I/tmp/runner-cache/Python/3.13.0/x64/include/python3.13 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-cpython-313/ast27/Custom/typed_ast.o In file included from /tmp/runner-cache/Python/3.13.0/x64/include/python3.13/pyport.h:358, from /tmp/runner-cache/Python/3.13.0/x64/include/python3.13/Python.h:63, from ast27/Custom/typed_ast.c:1: ast27/Custom/../Include/compile.h:12:12: error: unknown type name ‘PyFutureFeatures’ 12 | PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *); | ^~~~~~~~~~~~~~~~ /tmp/runner-cache/Python/3.13.0/x64/include/python3.13/exports.h:94:53: note: in definition of macro ‘PyAPI_FUNC’ 94 | # define PyAPI_FUNC(RTYPE) Py_EXPORTED_SYMBOL RTYPE | ^~~~~ error: command '/usr/bin/gcc' failed with exit code 1 at .venv/lib/python3.13/site-packages/poetry/installation/chef.py:164 in _prepare 160│ 161│ error = ChefBuildError("\n\n".join(message_parts)) 162│ 163│ if error is not None: → 164│ raise error from None 165│ 166│ return path 167│ 168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path: Note: This error originates from the build backend, and is likely not a problem with poetry but with typed-ast (1.5.5) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "typed-ast (==1.5.5)"'. ```
vemel commented 1 month ago

Hello! I plan to get rid of typed-ast and drop old Python versions.

Thank you for the report.