astral-sh / packse

Python packaging scenarios
Apache License 2.0
106 stars 8 forks source link

Use pipx for installing Poetry #51

Closed bswck closed 10 months ago

bswck commented 10 months ago

pipx is a pre-installed package manager in the latest Ubuntu GHA runner images. Since it is a recommended way of installing Poetry, because it creates a separate environment, I changed the workflows to install Poetry through pipx. In order to leverage poetry.lock-dependent caching feature offered by actions/setup-python, I moved the Poetry setups before the setup-python step is performed. Additionally, I bumped actions/setup-python to the latest v5 version (see release for details on what's changed).