Tox Plugin: Add additional dependencies to environment? #3168
-
Hi! I'm currently developing a tox plugin, to allow automatic provisioning of NodeJS using the nodeenv package. What I'm not sure about now is, whether it's possible to programatically declare additional environment My Idea was, that the user simply defines a [tox]
requires = tox-nodeenv
[testenv]
nodejs=lts So, my question would be: Is is possible to somehow declare, an additional environment dependency in a tox plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You should not combine the tox and node environments. They should be separate. Within tox 4 you are supposed to implement https://github.com/tox-dev/tox/blob/main/src/tox/tox_env/runner.py#L1 and also implement a node packaging/installer there. |
Beta Was this translation helpful? Give feedback.
You should not combine the tox and node environments. They should be separate. Within tox 4 you are supposed to implement https://github.com/tox-dev/tox/blob/main/src/tox/tox_env/runner.py#L1 and also implement a node packaging/installer there.