-
tox_cleanup is gone and I don't see an appropriate alternative. I need a hook which runs after all environments were run (i.e. right before tox shutdown). More specifically, here's some of the code I used in tox_cleanup:
Basically I need to figure out the main package true name and version, and then I do some stuff with this after this code, and this runs once per run at the very end. Can I do the same in tox 4? |
Beta Was this translation helpful? Give feedback.
Answered by
f3flight
Apr 6, 2023
Replies: 1 comment 6 replies
-
Can you please clarify what exactly you need to do? Beyond just something. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @gaborbernat. I managed to achieve the desired result by using
tox_env_teardown
hook by checking fortox_env.name
inside (to only run when env is called "ci") and accessingtox_env._packages[0].path
to get to the sdist. Didn't need thedepends
option as this "ci" env doesn't really depend on others but good to know it exists, I may use it for other needs in future.