python-project/pyproject.toml

36 lines
774 B
TOML
Raw Normal View History

2024-06-07 09:55:37 +00:00
[project]
name = "$REPO_NAME"
dependencies = []
dynamic = ["version"]
authors = []
description = "$REPO_DESCRIPTION"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.scripts]
2024-06-07 10:22:34 +00:00
$REPO_NAME_KEBAB = "$REPO_NAME_SNAKE.__main__:cli"
2024-06-07 09:55:37 +00:00
[build-system]
requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"
[tool.hatch.build]
directory = "dist"
[tool.hatch.build.targets.sdist]
2024-06-07 10:22:34 +00:00
include = ["$REPO_NAME_SNAKE/*.py"]
2024-06-07 09:55:37 +00:00
[tool.hatch.build.targets.wheel]
2024-06-07 10:22:34 +00:00
packages = ["$REPO_NAME_SNAKE"]
2024-06-07 09:55:37 +00:00
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
2024-06-07 10:22:34 +00:00
path = "$REPO_NAME_SNAKE/__about__.py"