Listings zum Artikel "Mit uv Python-Projekte verwalten"

Listing 1: Projektinformationen in pyproject.toml
[project]
name = "python-uv"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
    "pydantic>=2.12.4",
]


Listing 2: Abhängigkeiten im Kommentar
# /// script
# dependencies = [
#   "requests<3",
#   "rich",
# ]
# ///

import requests
...

