Skip to content

brfluidpri/template-python-poetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

template_poetry_docker

myTemplate for poetry & dockerfile

Install Poetry

# WSL, Linux
curl -sSL https://install.python-poetry.org | python3 -

# Powershell in Windows
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -

Poetry local folder path

  • ~/.local/share/pypoetry on Linux/Unix.
  • %APPDATA%\pypoetry on Windows.

installer set Poetry local folder path as

  • $HOME/.local/bin on Unix.
  • %APPDATA%\Python\Scripts on Windows.

update poetry

poetry self update

How to use

poetry config virtualenvs.in-project true


poetry install

# Installing dependencies only
poetry install --no-root

# for venv environment
poetry shell

# run temporary
poetry run python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published