Skip to content

Commit

Permalink
feat: add Python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrendalath committed Apr 17, 2024
1 parent 8c79e60 commit 107d62d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: ['3.8', '3.11']
python-version: ['3.8', '3.11', '3.12']
toxenv: [django42, quality, package]

steps:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def package_data(pkg, root_list):
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Framework :: Django',
'Framework :: Django :: 4.2',
],
Expand Down
15 changes: 7 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
[tox]
envlist = django{42},quality,package
envlist = py{38,311,312}-django{42},quality,package

[pytest]
DJANGO_SETTINGS_MODULE = workbench.settings
addopts = --cov-report term-missing --cov-report xml

[testenv]
allowlist_externals =
allowlist_externals =
mkdir
deps =
deps =
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
commands =
mkdir -p var
pytest {posargs:tests --cov image_explorer}

[testenv:quality]
commands =
commands =
pylint --fail-under=9.0 image_explorer

[testenv:package]
deps =
deps =
build
twine
commands =
commands =
python -m build
twine check dist/*

0 comments on commit 107d62d

Please sign in to comment.