Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

poetry python

# install
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
# setup
poetry new <name> # new project
poetry init # existign project
poetry install
# requirements.txt
poetry add `cat requirements.txt`
poetry export --output requirements.txt
# venv
poetry run python your_script.py # single script
poetry shell # venv sub shell
# dependencies
poetry show --tree
poetry add <name>
poetry remove <name>
poetry update
# build and publish
poetry build
poetry config http-basic.pypi username password
poetry publish
 
PREVIOUS NEXT
Tagged: #poetry #python
ADD COMMENT
Topic
Name
6+1 =