Python advice requested:

I need to include a small test program, written in Python, in a repository containing other software not in Python. The program will have multiple source files and use dependencies from PyPI, but does not need to be installed anywhere. The expected usage is to just run it directly from the directory where it lives.

Is there a suitable tool to use to run it which will create a temporary virtual environment, install the dependencies, run the program, and then clean that stuff up?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.km6g.us/users/kevin/statuses/114338698145766536 on your instance and quote it. (Note that quoting is not supported in Mastodon.)