Improve tox.ini
testing commands for local development
#4237
Labels
build & infra
Issues related to build & infrastructure.
Description
Currently, in our
tox.ini
files, we install the required packages for each command usingpip install
in thecommands_pre
section. This leads to unnecessary re-installation of packages every timetox -e py312-test...
is run, which increases the overall execution time of tests and creates inefficiencies in the testing process while locally developing.So, the idea is to move the package installation commands from the
commands_pre
section to thedeps
section in thetox.ini
file. Thedeps
section is designed to handle package dependencies efficiently, ensuring:tox
runs: Reduces test run times by avoiding redundant package installations (which is excellent for local development, especially in contrib-repo)A key advantage of this approach is that it allows the use of
tox-uv
(a tox plugin that optimizes package installation - very fast) without requiring any additional changes to ourtox.ini
file. See open-telemetry/opentelemetry-python-contrib#2667The text was updated successfully, but these errors were encountered: