Skip to content

Commit

Permalink
Python 3.11 trial with cython 3.04
Browse files Browse the repository at this point in the history
This fixes the Python 3.11 issue, it depends on a newer version of
cython, which fixes the 'C includes of "longintrepr.h"' issue

Python 3.12 is still broken, however.

Collecting pyyaml==6.0 (from -r requirements.txt (line 9))
  Downloading PyYAML-6.0.tar.gz (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 30.0 MB/s eta 0:00:00
  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
  ╰─> [54 lines of output]
      running egg_info
      writing lib/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):
        File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Loading branch information
JanneKiiskila committed Oct 23, 2023
1 parent 4511065 commit a8cf1e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/installation-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
# aiohttp does not compile against 3.11
# https://github.com/aio-libs/aiohttp/issues/6600
python-ver: ["3.7", "3.8", "3.9", "3.10"]
python-ver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
exclude:
- os: ubuntu-22.04
python-ver: 3.6
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cython==3.0.4
pytest==7.3.1
pytest-rerunfailures==10.2
pytest-html==3.2.0
Expand Down

0 comments on commit a8cf1e6

Please sign in to comment.