nixos/templates/python_package/pyproject.toml
2023-01-10 08:06:54 +00:00

42 lines
926 B
TOML

[build-system]
requires = ["setuptools >= 42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "my_package"
version = "1.0"
authors = [
{name = "Evie Litherland-Smith", email = "evie.litherland-smith@ukaea.uk"}
]
requires-python = ">=3.7.1"
dependencies = [
"some_package"
]
[project.optional-dependencies]
dev = [
"pre-commit",
"flake8",
"black",
"zimports",
]
[project.scripts]
script_name = "my_package.foo:bar"
[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
include = ["my_package*"] # package names should match these glob patterns (["*"] by default)
exclude = ["tests*"] # exclude packages matching these glob patterns (empty by default)
namespaces = true # to disable scanning PEP 420 namespaces (true by default)
[tool.black]
line-length = 88
exclude = '''
/(
\.git
| \.mypy_cache
| venv
)/
'''