diff options
| author | Hans-Christoph Steiner <hans@eds.org> | 2023-02-06 01:08:42 +0100 |
|---|---|---|
| committer | git-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com> | 2024-01-31 22:47:14 +0000 |
| commit | 13a9d937f4adafd5316e89b8a63d12b527c1f5c4 (patch) | |
| tree | eb2d7ad8a835fb35deeabbd071bb02d52dcbcdf5 /tox.ini | |
| parent | 8cd82ca6df842ef4cac72b0885d466cdeb6e96c6 (diff) | |
1.1.0-1 (patches unapplied)HEADimport/1.1.0-1ubuntu/noble-proposedubuntu/noble-develubuntu/nobleubuntu/devel
Imported using git-ubuntu import.
Notes
Notes:
* New upstream version 1.1.0
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 37 |
1 files changed, 32 insertions, 5 deletions
@@ -5,10 +5,12 @@ envlist = py # needed by PEP-517 projects: isolated_build = True -minversion = 3.24.5 +minversion = 4.0.2 requires = + tox>=4.0.2 + # temporary disabled due to problem with tox v4 # fail build if git reports dirty after test run - tox-extra + # tox-extra>=1.0.1a0 [testenv] deps = @@ -30,19 +32,44 @@ passenv = # Pass HOME to the test environment as it is required by # vagrant. Otherwise error happens due to missing HOME env variable. HOME + PYTEST_* setenv = - COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}} + COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}} + PIP_CONSTRAINT = requirements.txt allowlist_externals = - sh + git + sh + */create_dummy_box.sh [testenv:dev] commands = {posargs} +[testenv:deps] +description = Bump all test dependencies +# we reuse the lint environment +envdir = {toxworkdir}/lint +skip_install = true +deps = + {[testenv:lint]deps} +setenv = + # without his upgrade would likely not do anything + PIP_CONSTRAINT = /dev/null +commands_pre = +commands = + pre-commit run --all-files --show-diff-on-failure --hook-stage manual up + # Update pre-commit hooks + pre-commit autoupdate + # We fail if files are modified at the end + git diff --exit-code + [testenv:lint] description = Run all linters deps = pre-commit>=2.6.0 +setenv = + PIP_CONSTRAINT = /dev/null skip_install = true +commands_pre = commands = {envpython} -m pre_commit run --all-files --show-diff-on-failure {posargs:} @@ -50,7 +77,7 @@ commands = description = Build package, verify metadata, install package and assert behavior when ansible is missing. deps = - build >= 0.7.0 + build >= 0.9.0 twine skip_install = true # Ref: https://twitter.com/di_codes/status/1044358639081975813 |
