mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-16 20:27:05 +03:00
Merge pull request #962 from miurahr/topic/miurahr/pyproject-tox-configuration-native-toml
Some checks failed
Check tox tests / Check packaging 📦 (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / Build package (push) Has been cancelled
Test on GH actions environment / test (binary, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.0) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.1) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.7.3) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / publish Python 🐍 distributions 📦 to PyPI (push) Has been cancelled
Some checks failed
Check tox tests / Check packaging 📦 (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / Build package (push) Has been cancelled
Test on GH actions environment / test (binary, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.0) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.1) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.7.3) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / publish Python 🐍 distributions 📦 to PyPI (push) Has been cancelled
chore(tox): Migrate to Tox 4 configuration format
This commit is contained in:
118
pyproject.toml
118
pyproject.toml
@@ -176,76 +176,66 @@ markers = [
|
|||||||
"remote_data: mark a test with remote data.",
|
"remote_data: mark a test with remote data.",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
[tool.tox]
|
[tool.tox]
|
||||||
legacy_tox_ini = """
|
requires = ["tox>=4.19"]
|
||||||
[tox]
|
envlist = [
|
||||||
envlist = check, docs, py{39,310,311,312,313}, mprof, fil, mypy
|
"mypy",
|
||||||
isolated_build = True
|
"check",
|
||||||
|
"3.10",
|
||||||
|
"3.11",
|
||||||
|
"3.12",
|
||||||
|
"3.13",
|
||||||
|
"3.14",
|
||||||
|
"docs",
|
||||||
|
"mprof",
|
||||||
|
"mypy",
|
||||||
|
"fil"
|
||||||
|
]
|
||||||
|
isolated_build = true
|
||||||
|
|
||||||
[testenv]
|
[tool.tox.env_run_base]
|
||||||
passenv =
|
description = "Run test under {base_python}"
|
||||||
GITHUB*
|
passenv = [
|
||||||
APPVEYOR*
|
"GITHUB_*",
|
||||||
TRAVIS*
|
"PYTEST_ADDOPTS",
|
||||||
COVERALLS_*
|
"COVERALLS_*",
|
||||||
PYTEST_ADDOPTS
|
]
|
||||||
extras = test, check, docs
|
extras = ["test", "check", "docs"]
|
||||||
commands =
|
commands = [["python", "-m", "pytest", "-vv"]]
|
||||||
python -m pytest -vv
|
|
||||||
|
|
||||||
[testenv:check]
|
[tool.tox.env.check]
|
||||||
basepython = python3.13
|
extras = ["check"]
|
||||||
extras = check
|
commands = [["check-manifest", "{toxinidir}"], ["flake8", "aqt", "tests"]]
|
||||||
commands =
|
|
||||||
check-manifest {toxinidir}
|
|
||||||
flake8 aqt tests
|
|
||||||
|
|
||||||
[testenv:mypy]
|
[tool.tox.env.mypy]
|
||||||
basepython = python3.13
|
extras = ["check"]
|
||||||
extras = check
|
deps = ["types-request", "types-beautifulsoup4", "types-psutil"]
|
||||||
commands = mypy aqt
|
commands = [["mypy", "--html-report", "build/mypy", "aqt"]]
|
||||||
deps =
|
|
||||||
types-requests
|
|
||||||
types-beautifulsoup4
|
|
||||||
types-psutil
|
|
||||||
|
|
||||||
[testenv:docs]
|
[tool.tox.env.docs]
|
||||||
basepython = python3.13
|
extras = ["docs"]
|
||||||
extras = docs
|
commands = [
|
||||||
commands =
|
["sphinx-build", "{posargs:-E}", "-b", "html", "docs", "build/docs"],
|
||||||
sphinx-build {posargs:-E} -W -b html docs build/docs
|
["sphinx-build", "-W", "-b", "linkcheck", "docs", "build/docs"]
|
||||||
sphinx-build -W -b linkcheck docs build/docs
|
]
|
||||||
|
|
||||||
[testenv:mprof]
|
[tool.tox.env.mprof]
|
||||||
basepython = python3.13
|
extras = ["test", "debug"]
|
||||||
extras = debug
|
commands = [
|
||||||
commands =
|
["mprof", "run", "--multiprocess", "python", "-m", "aqt", "install-qt", "-O", "/tmp", "-d", "/tmp", "linux", "desktop", "6.8.1"],
|
||||||
mprof run --multiprocess python -m aqt install-qt -O /tmp -d /tmp linux desktop 6.8.1
|
["mprof", "plot", "--output", "memory-profile.png"]
|
||||||
mprof plot --output memory-profile.png
|
]
|
||||||
deps =
|
deps = ["memory_profiler", "matplotlib"]
|
||||||
memory_profiler
|
|
||||||
matplotlib
|
|
||||||
|
|
||||||
[testenv:fil]
|
[tool.tox.env.fil]
|
||||||
basepython = python3.13
|
extras = ["debug"]
|
||||||
extras = debug
|
commands = [
|
||||||
commands =
|
["fil-profile", "run", "-m", "aqt", "install-qt", "-O", "/tmp", "-d", "/tmp", "linux", "desktop", "6.8.1"]
|
||||||
fil-profile run -m aqt install-qt -O /tmp -d /tmp linux desktop 6.8.1
|
]
|
||||||
deps =
|
deps = ["filprofiler"]
|
||||||
filprofiler
|
|
||||||
|
|
||||||
[testenv:coveralls]
|
[tool.tox.env.coveralls]
|
||||||
deps =
|
deps = ["coveralls"]
|
||||||
coveralls
|
|
||||||
skip_install = true
|
skip_install = true
|
||||||
commands =
|
commands = [["coveralls", "[]"]]
|
||||||
coveralls []
|
|
||||||
|
|
||||||
[gh-actions]
|
|
||||||
python =
|
|
||||||
3.9: py39
|
|
||||||
3.10: py310
|
|
||||||
3.11: py311
|
|
||||||
3.12: py312
|
|
||||||
3.13: py313
|
|
||||||
"""
|
|
||||||
|
|||||||
Reference in New Issue
Block a user