-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (91 loc) · 2.5 KB
/
pyproject.toml
File metadata and controls
107 lines (91 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[project]
name = "pyprefab"
description = "Python application template for personal use"
authors = [
{name = "Becky Sweger", email = "bsweger@gmail.com"},
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = ["version"]
dependencies = [
"structlog",
"rich",
"typer",
"jinja2>=3.1.5",
"pydantic-settings",
]
[dependency-groups]
dev = [
"build",
"coverage",
"freezegun",
"mypy",
"nox>=2025.05.01",
"pytest",
"pytest-random-order>=1.1.1",
"ruff",
"syrupy>=4.8.1",
]
docs = [
"matplotlib>=3.9.4",
"myst-parser>=3.0.1",
"sphinx>=7.4.7",
"sphinx-autobuild>=2024.10.3",
"sphinx-copybutton>=0.5.2",
"sphinxcontrib-typer>=0.5.1",
"sphinxext-opengraph>=0.9.1",
"watchfiles>=1.1.0", # python 3.14 support requires PyO3 0.25.1+
]
[project.entry-points.console_scripts]
pyprefab = "pyprefab.cli:app"
[project.urls]
Documentation = "https://bsweger.github.io/pyprefab/index.html"
Repository = "https://github.com/bsweger/pyprefab.git"
Changelog = "https://github.com/bsweger/pyprefab/blob/main/CHANGELOG.md"
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools>=45", "wheel", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
namespaces = true
where = ["src"]
[tool.setuptools.package-data]
"pyprojgen.templates" = ["*.j2", "*.jinja2", "*"]
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.pyprefab]
# to write json-formatted logs to disk, uncomment the following line specify the file location
# log_file = "/path/to/logs/files/pyprefab.log"
[tool.pyprefab.logging]
level = "WARNING"
[tool.pytest.ini_options]
addopts = "--random-order"
tmp_path_retention_policy = "none"
testpaths = [
"test",
]
[tool.coverage.run]
omit = [
# omit jinja templates from coverage reports
"*/templates/*"
]
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
lint.extend-select = ["I", "Q"]
[tool.uv]
# ensure setuptools_scm generates a version number that reflects latest tags
# https://docs.astral.sh/uv/concepts/cache/#dynamic-metadata
cache-keys = [{ git = { commit = true, tags = true } }]
exclude-newer = "5 days"
required-version = ">=0.9.16"