GitHub Actions starter for python with python-poetry.
The complete documentation of python-poetry is available on the official website.
- Use this template
- Install poetry
- Run
poetry install --no-root
- Run
python init.py
- You Finished, happy coding!
Bumps the version of the project and writes the new version back to pyproject.toml
if a valid bump rule is provided.
poetry version minor
The new version should ideally be a valid semver string or a valid bump rule: patch
, minor
, major
, prepatch
, preminor
, premajor
, prerelease
.
You need to have PyPI account.
poetry publish --build
Add PYPI_USERNAME
and PYPI_PASSWORD
to your Actions secrets, learn more.
Then create a release.
You need to create a release everytime bump to the new version.
poetry update
poetry add requests
For dev requirement
poetry add requests --dev
poetry remove requests
For dev requirement
poetry remove requests --dev
-o
for output.
poetry export -f requirements.txt -o requirements.txt --without-hashes
For dev requirements
poetry export -f requirements.txt -o requirements-dev.txt --dev --without-hashes