Poetry: install alpha builds
All notes in this series:
- (1) Poetry: Fixing dubious ownership error
- (2) Poetry: build.py example
- (3) Poetry: Automatically generate package version from git commit
- (4) Poetry: Fix warning about sources
- (5) Poetry: Running Black and isort with pre-commit hooks
- (6) Poetry: Fixing permission error when upgrading dulwich
- (7) NiceGUI with Click, Poetry, auto-reload and classes
- (8) Poetry: Offline installation of packages
- (9) Run Poetry command as systemd service
- (10) GitLab CI and poetry-dynamic-versioning
- (11) Poetry: install alpha builds
By default, Python package installation tools (e.g. pip, Poetry) will prefer “stable” releases over alpha
, beta
, dev
.
For Poetry specifically, if you have a release 0.4.2a0
and are trying to install it just using ==0.4.2
, Poetry will not be able to find it.
Use allow-prereleases = true
to explicitly tell Poetry you want to use pre-releases.
For example:
[tool.poetry.dependencies]
my-package = {version = "^0.4.2a0", allow-prereleases = true }