Create a new project:
poetry new <project-name>Activating the virtual environment:
poetry shellCheck pip packages and update:
pip list
pip install --upgrade pipAdd packages dependencies with poetry:
poetry add click rich pytest requests-oauthlib
or
poetry add $(cat requirements.txt)Add poetry point in pyproject.toml enable for cli:
[tool.poetry.scripts]
twittercli = "twitter_cli.cli:cli"Install dependencies:
poetry installAfter adding the poetry point in pyproject.toml, we can call our cli like this:
twittercli --helppoetry run pytest