Build package and test deployment to testpypi repo: poetry build poetry config repositories.testpypi https://test.pypi.org/legacy/ poetry publish -r testpypi Build package and deploy to pypi repo: poetry publish