Aller au contenu

pyproject.toml

Exemple

pyproject.toml
[project]
name = "sandbox"
dynamic = ["version"]
requires-python = ">= 3.12"
authors = [
    { name = "Julien Lebunetel", email = "julien@lebunetel.com" }
]
maintainers = [
    { name = "Julien Lebunetel", email = "julien@lebunetel.com" }
]
description = "Having fun with Python!"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
classifiers = [
    "Development Status :: 1 - Planning",
    "Intended Audience :: Developers",
    "Topic :: System :: Logging",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3.12",
]
dependencies = [
    # package dependencies
]

[project.optional-dependencies]
test = [
    # tests dependencies
]
dev = [
    # dev dependencies
]

[project.urls]
Homepage = "https://jlebunetel.github.io/python-sandbox"
Repository = "https://github.com/jlebunetel/python-sandbox"
Issues = "https://github.com/jlebunetel/python-sandbox/issues"
Changelog = "https://github.com/jlebunetel/python-sandbox/blob/main/CHANGELOG.md"

[project.scripts]
sandbox = "src.sandbox.entry_points.cli.typer_app:app"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "src/sandbox/__init__.py"

[tool.hatch.build.targets.wheel]
packages = ["src/sandbox"]

Références