Skip to content

Commit

Permalink
core: add support for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi authored Aug 4, 2021
1 parent 63dd17e commit 4e6e36f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: joerick/cibuildwheel@v1.11.0
uses: pypa/cibuildwheel@v2.0.1
with:
output-dir: ./wheelhouse
env:
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-*"
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-* cp310-*"
CIBW_ARCHS_LINUX: auto aarch64
CIBW_PRERELEASE_PYTHONS: True
CIBW_BEFORE_ALL_LINUX: yum install -y libffi-devel
8 changes: 6 additions & 2 deletions .github/workflows/release-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: joerick/cibuildwheel@v1.11.0
uses: pypa/cibuildwheel@v2.0.1
with:
output-dir: ./wheelhouse
env:
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-*"
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-* cp310-*"
CIBW_ARCHS_LINUX: auto aarch64
CIBW_PRERELEASE_PYTHONS: True
CIBW_BEFORE_ALL_LINUX: yum install -y libffi-devel
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10-dev']
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install -U setuptools wheel
- name: Build package
run: python setup.py install
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def get_version():
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36, py37, py38, py39
envlist = py36, py37, py38, py39, py310

[testenv]
commands = python tests/tests.py
Expand Down

0 comments on commit 4e6e36f

Please sign in to comment.