Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.3 KB

File metadata and controls

40 lines (29 loc) · 1.3 KB

Python programming playground

Setup

  1. Install development / system dependencies (read below)
  2. Set configuration (read below)
  3. Create and activate Python virtual environment:
    • poetry install
    • poetry shell
  4. Run: python src/main.py

Development / System dependencies

System dependency Required version Description
Poetry 1.8.x Python package manager
Python 3.12.2 Python runtime

Configuration

Poetry

Create a virtual environment in the project folder

Set virtualenvs.in-project configuration parameter:

  • By running command: poetry config virtualenvs.in-project true
  • By editing configuration manually:
    [virtualenvs]
    in-project = true

Update dependencies and bump their versions

  • Install up plugin: poetry self add poetry-plugin-up
  • Update dependencies to latest available compatible versions: poetry up --latest