Skip to content

Commit

Permalink
feat(compat): officially support pythons 3.11 and 3.12 (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKevJames committed Apr 26, 2024
1 parent 15eda5f commit 8dbce91
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 10 deletions.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Expand Up @@ -21,6 +21,14 @@ executors:
docker:
- image: python:3.10-alpine
resource_class: small
py311:
docker:
- image: python:3.11-alpine
resource_class: small
py312:
docker:
- image: python:3.12-alpine
resource_class: small
pypy737: # py38
docker:
- image: pypy:3-7.3.7-slim
Expand Down Expand Up @@ -161,7 +169,7 @@ workflows:
name: test-<<matrix.executor>>
matrix:
parameters:
executor: [py38, py39, py310]
executor: [py38, py39, py310, py311, py312]
- toxpypy:
name: test-<<matrix.executor>>
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4.1.4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.12'
- uses: snok/install-poetry@v1.3.4
with:
# TODO: renovate
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4.1.4
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-lts-latest
tools:
python: "3.10"
python: "3.12"
jobs:
post_create_environment:
- pip install poetry
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -6,7 +6,7 @@ ARG COVERALLS_VERSION=3.3.1
ARG GIT_VERSION=2.43.0-r0


FROM python:3.10-alpine3.19
FROM python:3.12-alpine3.19

ARG GIT_VERSION
RUN --mount=type=cache,target=/var/cache/apk \
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions pyproject.toml
Expand Up @@ -30,7 +30,7 @@ Docs = "https://coveralls-python.rtfd.io/"
coveralls = "coveralls.cli:main"

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
python = ">=3.8,<3.13"
coverage = ">=5.0,<7.0,!=6.0.*,!=6.1,!=6.1.1"
docopt = ">=0.6.1,<0.7.0"
requests = ">=1.0.0,<3.0.0"
Expand All @@ -50,7 +50,12 @@ sphinx = { version = "7.3.7", python = ">=3.9" }
yaml = ["pyyaml"]

[tool.pytest.ini_options]
addopts = "-Werror"
# addopts = "-Werror"
filterwarnings = [
"error",
# cov5 and cov6 are deprecated on py3.12+
"ignore:co_lnotab is deprecated, use co_lines instead:DeprecationWarning",
]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
@@ -1,11 +1,13 @@
[tox]
envlist = py{38,39,310,py3}-cov{5,6}-{default,pyyaml}
envlist = py{38,39,310,311,312,py3}-cov{5,6}-{default,pyyaml}

[gh-actions]
python =
3.8: py38,upload
3.9: py39,upload
3.10: py310,upload
3.11: py311,upload
3.12: py312,upload

[testenv]
passenv = *
Expand Down

0 comments on commit 8dbce91

Please sign in to comment.