Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Fix Python 3.11 support #187

Merged
merged 1 commit into from
Apr 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ name: Build wheels
on: [push, pull_request]

jobs:
test_prerelease_python:
# needed because manylinux is hesitant to support pre-release python
# so we can't just use cibuildwheel
name: prelease python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.11-dev'
- run: |
python3.11 -m pip install -e .
python3.11 -m pip install pytest
python3.11 -m pytest

build_wheels:
name: py${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 2 additions & 0 deletions ast3/Parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,8 @@ Ta3Tokenizer_Get(struct tok_state *tok, char **p_start, char **p_end)
The char* returned is malloc'ed via PyMem_MALLOC() and thus must be freed
by the caller. */

PyAPI_FUNC(int) _Py_dup(int fd);

char *
Ta3Tokenizer_FindEncodingFilename(int fd, PyObject *filename)
{
Expand Down