I've developed plenty of utilities using virtualenv that have gone on to become packages of their own. But poetry is the hot new thing, so I figured I'd give it a go.
Creating a new environment with poetry new was easy, and installing its dependencies with poetry install was also a snap.
But trying to actually launch my script from a directory other than its project directory has proven a challenge. I've added the [tools.poetry.scripts] section to its pyproject.toml file, so I can launch it from within the project directory by calling poetry run [args]. That's not too terrific for getting other people to try my fancy new script, though. And it's a non-starter if you want (or need) to runt from some other directory.
So, what's the secret?