Skip to content

Older Cython versions break when testing with Python 3.13 #46

@geographika

Description

@geographika

lark_cython is tied to specific versions of Cython (<0.29.35):

install_requires=["lark>=1.1.7", "cython>=0.29.1,<0.29.35", "Cython>=0.29.1,<0.29.35"],

When testing with Python 3.13 the cgi module has been removed, and is removed from Cython code too: cython/cython#5449

In older versions of Cython (prior to the patch in 0.29.35) this now throws an error. See for example the log at https://github.com/geographika/mappyfile/actions/runs/11535196112/job/32110014487

Is it possible to bump the allowed versions of Cython to 0.29.36?

Collecting lark-cython>=0.0.14 (from mappyfile==1.0.2)
  Downloading lark-cython-0.0.15.tar.gz (250 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  ...
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [52 lines of output]
      Traceback (most recent call last):
        File "/opt/hostedtoolcache/Python/3.13.0/x64/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/...
        File "/tmp/pip-build-env-dcu_z99v/overlay/lib/python3.13/site-packages/Cython/Tempita/__init__.py", line 4, in <module>
          from ._tempita import *
        File "/tmp/pip-build-env-dcu_z99v/overlay/lib/python3.13/site-packages/Cython/Tempita/_tempita.py", line 36, in <module>
          import cgi
      ModuleNotFoundError: No module named 'cgi'
      [end of output]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions