Basic modern packaging metadata for a local project.
Section: pyproject.toml patterns
Minimal pyproject.toml example
toml
toml
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "myapp"
version = "0.1.0"
dependencies = [
"requests>=2.31",
]
Explanation
A starting point for modern packaging metadata and editable installs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing pyproject.toml patterns
Install project editable from pyproject
Install the current project into the venv in editable mode.
Install editable with dev extras
Install project plus optional development dependencies.
Create project and venv
Create a project folder and initialize a virtual environment.