Skip to content

Plugins - what to use in tox 4 instead of tox_cleanup hook? #2974

Answered by f3flight
f3flight asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @gaborbernat. I managed to achieve the desired result by using tox_env_teardown hook by checking for tox_env.name inside (to only run when env is called "ci") and accessing tox_env._packages[0].path to get to the sdist. Didn't need the depends 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.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@gaborbernat
Comment options

@f3flight
Comment options

@gaborbernat
Comment options

@f3flight
Comment options

Answer selected by gaborbernat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants