* update: - charmcraft.yaml for v3 - tox.ini to use py3.12 by default - test-requirements.in to use zaza for juju3 - update test bundles to work with charmcraft v3 * generate: - merged-requirements-py312.txt - test-requirements-py312.txt * add: - update-requirements env to tox.ini and src/tox.ini Change-Id: Ic90520908b7ea5b979881c75136271af6614a94c Signed-off-by: Munir Siddiqui <munir.siddiqui@canonical.com>
60 lines
1.7 KiB
INI
60 lines
1.7 KiB
INI
# Source charm (with zaza): ./src/tox.ini
|
|
# This file is managed centrally by release-tools and should not be modified
|
|
# within individual charm repos. See the 'global' dir contents for available
|
|
# choices of tox.ini for OpenStack Charms:
|
|
# https://github.com/openstack-charmers/release-tools
|
|
|
|
[tox]
|
|
envlist = pep8
|
|
# NOTE: Avoid build/test env pollution by not enabling sitepackages.
|
|
sitepackages = False
|
|
# NOTE: Avoid false positives by not skipping missing interpreters.
|
|
skip_missing_interpreters = False
|
|
|
|
[testenv]
|
|
basepython = python3.10
|
|
# We use tox mainly for virtual environment management for test requirements
|
|
# and do not install the charm code as a Python package into that environment.
|
|
# Ref: https://tox.wiki/en/latest/config.html#skip_install
|
|
skip_install = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
allowlist_externals = juju
|
|
passenv =
|
|
HOME
|
|
TERM
|
|
CS_*
|
|
OS_*
|
|
TEST_*
|
|
deps =
|
|
-c {env:TEST_CONSTRAINTS_FILE:https://raw.githubusercontent.com/openstack-charmers/zaza/master/constraints-juju36.txt}
|
|
-r{toxinidir}/test-requirements-py310.txt
|
|
|
|
[testenv:update-requirements]
|
|
basepython = python3.10
|
|
deps = pip-tools
|
|
commands =
|
|
pip-compile --unsafe-package juju --unsafe-package kubernetes --unsafe-package websockets --output-file=test-requirements-py310.txt test-requirements.in
|
|
|
|
[testenv:pep8]
|
|
commands = charm-proof
|
|
|
|
[testenv:func-noop]
|
|
commands =
|
|
functest-run-suite --help
|
|
|
|
[testenv:func]
|
|
commands =
|
|
functest-run-suite --keep-model
|
|
|
|
[testenv:func-smoke]
|
|
commands =
|
|
functest-run-suite --keep-model --smoke
|
|
|
|
[testenv:func-target]
|
|
commands =
|
|
functest-run-suite --keep-model --bundle {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|