Skip to content

Commit

Permalink
Add support for Python 3.12 (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Oct 3, 2023
1 parent deff88f commit 3b9638c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

name: Python ${{ matrix.python-version}}
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test: ## Run tests, linting, and static typechecking
lint: ## Lint and black reformat files
# NOTE(willkg): Make sure this matches what's in tox.ini.
black src setup.py tests docs examples
tox -e py37-lint
tox -e py38-lint

.PHONY: clean
clean: ## Clean build artifacts
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ envlist =
py39
py310
py311
py312
py38-doctest
py38-lint
py38-typecheck
Expand All @@ -60,6 +61,7 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps = -rrequirements-dev.txt
Expand All @@ -73,7 +75,7 @@ commands = pytest --doctest-modules src/
basepython = python3.8
changedir = {toxinidir}
commands =
black --check src setup.py tests docs examples
black --diff setup.py tests docs examples
ruff src setup.py tests docs examples
[testenv:py38-typecheck]
Expand Down
14 changes: 7 additions & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Requirements file for developing on Everett.
-e .[ini,yaml]

black==23.1.00
black==23.9.1
check-manifest==0.49
cogapp==3.3.0
mypy==1.1.1
pytest==7.2.2
ruff==0.0.262
tox==4.4.7
tox-gh-actions==3.1.0
mypy==1.5.1
pytest==7.4.2
ruff==0.0.292
tox==4.11.3
tox-gh-actions==3.1.3
twine==4.0.2
types-PyYAML==6.0.12.8
types-PyYAML==6.0.12.12

# These require Python 3.8+ before we can update them
Sphinx==5.3.0
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def get_file(fn):
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
],
project_urls={
"Documentation": "https://everett.readthedocs.io/",
Expand Down

0 comments on commit 3b9638c

Please sign in to comment.