11[tox]
2- envlist =
2+ env_list =
33 # All Pythons, oldest Django
44 {py39,py310,py311,py312,py313}-django42-minioknown
55 # Newest Python, all Djangos
66 py313-django{42,51,52}-minioknown
7- # Newest PYthon , newest Django, newest Minio
7+ # Newest Python , newest Django, newest Minio
88 py313-django52-minio
99 lint
1010 docs
@@ -18,69 +18,71 @@ python =
1818 3.12: py312
1919 3.13: py313, lint, docs, pyright
2020
21- [pytest]
22- pythonpath = . tests
23- DJANGO_SETTINGS_MODULE = django_minio_storage_tests.settings
24- addopts =--tb =short
25- python_files = tests.py test_*.py *_tests.py
26- django_find_project = false
27-
2821[testenv]
29- commands = pytest {posargs}
30- setenv =
31- PYTHONDONTWRITEBYTECODE = 1
32- MINIO_STORAGE_ENDPOINT = {env:MINIO_STORAGE_ENDPOINT:localhost:9153}
33- MINIO_STORAGE_ACCESS_KEY = {env:MINIO_STORAGE_ACCESS_KEY:weak_access_key}
34- MINIO_STORAGE_SECRET_KEY = {env:MINIO_STORAGE_SECRET_KEY:weak_secret_key}
35- TOX_ENVNAME = {envname}
22+ package = wheel
23+ set_env =
24+ PYTHONDONTWRITEBYTECODE = 1
25+ MINIO_STORAGE_ENDPOINT = {env:MINIO_STORAGE_ENDPOINT:localhost:9153}
26+ MINIO_STORAGE_ACCESS_KEY = {env:MINIO_STORAGE_ACCESS_KEY:weak_access_key}
27+ MINIO_STORAGE_SECRET_KEY = {env:MINIO_STORAGE_SECRET_KEY:weak_secret_key}
28+ TOX_ENVNAME = {envname}
3629deps =
3730 django42: Django ==4.2.*
3831 django51: Django ==5.1.*
3932 django52: Django ==5.2.*
4033 minio: minio
4134 minioknown: minio ==7.1.12
4235 -rdev-requirements.txt
36+ commands =
37+ pytest {posargs}
4338
4439[testenv:py313-django52-minioknown]
45- commands = pytest --cov --cov-append --cov-report =term-missing {posargs}
40+ commands =
41+ pytest --cov --cov-append --cov-report =term-missing {posargs}
4642
4743[testenv:coverage-report]
48- deps = coverage[toml]
49- skip_install = true
44+ package = skip
45+ depends = py313-django52-minioknown
46+ deps =
47+ coverage[toml]
5048commands =
5149 coverage report
5250 coverage html
53- depends =py313-django52-minioknown
5451
5552[testenv:pyright]
53+ package = editable
54+ depends = py313-django52-minio
5655deps =
5756 pyright
58- minio
59- django-stubs ==4.2.*
60- Django ==4.2.*
57+ django-stubs ==5.2.*
6158 types-requests
6259 -rdev-requirements.txt
6360commands =
6461 pyright --level WARNING
6562
6663[testenv:lint]
67- setenv =
68- PYTHONWARNINGS =ignore
64+ package = skip
65+ set_env =
66+ PYTHONWARNINGS = ignore
6967deps =
7068 ruff ==0.11.8
7169commands =
7270 ruff check
7371 ruff format --check
7472
7573[testenv:fmt]
76- setenv =
77- PYTHONWARNINGS =ignore
74+ package = skip
75+ set_env =
76+ PYTHONWARNINGS = ignore
7877deps =
7978 ruff ==0.11.8
8079commands =
8180 ruff check --fix-only
8281 ruff format
8382
8483[testenv:docs]
85- deps = mkdocs
86- commands = mkdocs build
84+ package = skip
85+ deps =
86+ mkdocs
87+ commands =
88+ mkdocs build
0 commit comments