Skip to content

Commit

Permalink
Add python3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavkazzz committed Mar 24, 2024
1 parent 86af17a commit 8fd4bb0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup python3.11
- name: Setup python3.12
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- run: python -m pip install poetry==1.6
- run: poetry install
- run: poetry run ruff simdjson_schemaful tests
Expand All @@ -27,10 +27,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup python3.8
- name: Setup python3.12
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.12'
- run: python -m pip install poetry==1.6
- run: poetry install
- run: poetry run tox -m mypy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
- name: Setup python3.11
- name: Setup python3.12
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install poetry
run: python -m pip install poetry
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: Setup python${{ matrix.python }}
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Topic :: Internet",
Expand Down Expand Up @@ -46,12 +47,13 @@ name = "pypi"
priority = "primary"

[tool.poetry.dependencies]
python = ">=3.8,<3.12"
python = ">=3.8,<3.13"
pysimdjson = [
{version=">=2,<6", python=">=3.8,<3.9"},
{version=">=3,<6", python=">=3.9,<3.11"},
{version=">=2,<7", python=">=3.8,<3.9"},
{version=">=3,<7", python=">=3.9,<3.11"},
# version 4 does not build for 3.11 for some reason
{version=">=3,!=4.*,<6", python=">=3.11,<3.12"},
{version=">=3,!=4.*,<7", python=">=3.11,<3.12"},
{version=">=6,<7", python=">=3.12,<3.13"},
]
pydantic = { version = ">=1,<3", optional = true }

Expand Down
17 changes: 10 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[tox]
isolated_build = True
envlist = py{38}-pydantic{1,2}-pysimdjson{2,3,4,5},\
py{39,310}-pydantic{1,2}-pysimdjson{3,4,5},\
py{311}-pydantic{1,2}-pysimdjson{3,5}
envlist = py{38}-pydantic{1,2}-pysimdjson{2,3,4,5,6},\
py{39,310}-pydantic{1,2}-pysimdjson{3,4,5,6},\
py{311}-pydantic{1,2}-pysimdjson{3,5,6},\
py{312}-pydantic{1,2}-pysimdjson{6}
toxworkdir = {env:TOXDIR:.tox}

labels =
py38 = py38-pydantic{1,2}-pysimdjson{2,3,4,5}
py39 = py39-pydantic{1,2}-pysimdjson{3,4,5}
py310 = py310-pydantic{1,2}-pysimdjson{3,4,5}
py311 = py311-pydantic{1,2}-pysimdjson{3,5}
py38 = py38-pydantic{1,2}-pysimdjson{2,3,4,5,6}
py39 = py39-pydantic{1,2}-pysimdjson{3,4,5,6}
py310 = py310-pydantic{1,2}-pysimdjson{3,4,5,6}
py311 = py311-pydantic{1,2}-pysimdjson{3,5,6}
py312 = py312-pydantic{1,2}-pysimdjson{3,5,6}

[testenv]
passenv=
Expand All @@ -26,6 +28,7 @@ deps =
pysimdjson3: pysimdjson~=3.0
pysimdjson4: pysimdjson~=4.0
pysimdjson5: pysimdjson~=5.0
pysimdjson6: pysimdjson~=6.0

commands = pytest tests

Expand Down

0 comments on commit 8fd4bb0

Please sign in to comment.