Skip to content

Commit

Permalink
Python 3.12 build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcoding committed Dec 27, 2023
1 parent 7309d3f commit 2a36890
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.10']
tarantool: ['1.10', '2']
exclude:
- os: macos-latest
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
python -m pip install --upgrade pip setuptools wheel coveralls
- name: Run tests
run: |
if [[ "$RUNNER_OS" == "Linux" && ${{ matrix.python-version }} == "3.11" && ${{ matrix.tarantool }} == "2" ]]; then
if [[ "$RUNNER_OS" == "Linux" && ${{ matrix.python-version }} == "3.12" && ${{ matrix.tarantool }} == "2" ]]; then
make build && make test
make clean && make debug && make coverage
# coveralls
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* pp310-*"
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* pp310-*"

- uses: actions/upload-artifact@v3
with:
Expand All @@ -98,7 +98,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.12'

- name: Install dependencies
run: |
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
* Dropped support for Python 3.6

**New features:**
* Added building wheels for Python 3.11 and initial support for 3.12
* Added building wheels for Python 3.11 and support for 3.12
* Added support for PyPy 3.10. It's compiling and working, but there is an obvious performance downgrade compared to CPython.
* Now repr() of TarantoolTuple objects is being truncated to 50 fields

**Bug fixes:**
* Fixed an issue with encoding of update operations as tuples on PyPy

**Other changes**
* Upgraded to Cython 3.0.0
* Upgraded to Cython 3.0.7
* Using pyproject.toml for building spec
* Using black, isort & ruff for linting
* _testbase.py was moved to tests/_testbase.py
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ test = [
'isort',
'black',
'ruff',
'uvloop>=0.12.3; platform_system != "Windows" and python_version < "3.12" and platform.python_implementation != "PyPy"',
'uvloop>=0.12.3; platform_system != "Windows" and platform.python_implementation != "PyPy"',
'pytest',
'pytest-cov',
'coverage[toml]',
'pytz',
'python-dateutil',
"Cython(>=3.0.0,<3.1.0)", # for coverage
"Cython==3.0.7", # for coverage
]

docs = [
Expand All @@ -63,7 +63,7 @@ requires = [
"setuptools>=60",
"wheel",

"Cython(>=3.0.0,<3.1.0)",
"Cython==3.0.7",
]
build-backend = "setuptools.build_meta"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def find_version():
return re.match(r"""__version__\s*=\s*(['"])([^'"]+)\1""", line).group(2)


CYTHON_VERSION = "3.0.0"
CYTHON_VERSION = "3.0.7"


class build_ext(setuptools_build_ext.build_ext):
Expand Down
1 change: 0 additions & 1 deletion tests/test_mp_ext.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
import sys
import unittest
import uuid
from dataclasses import dataclass
from decimal import Decimal
Expand Down

0 comments on commit 2a36890

Please sign in to comment.