Start a new virtual env
poetry shell
Install all dependencies (declared on pyproject.toml) from all groups
poetry install
# only main group
poetry install --only main
# without test group
poetry install --without test
Add new dependency
# add dep to main group
poetry add requests
# add dep to dev group
poetry add black --group dev
# add dep to test group
poetry add pytest --group test
Publish package
> poetry publish --build -r testpypi
> poetry publish --build
Authenticate to PyPI
> poetry config pypi-token.testpypi $PYPI_TOKEN_TEST
> poetry config pypi-token.pypi $PYPI_TOKEN