-
-
Notifications
You must be signed in to change notification settings - Fork 341
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (126 loc) · 3.77 KB
/
pyproject.toml
File metadata and controls
142 lines (126 loc) · 3.77 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]
[project]
name = "SCons"
description = "Open Source next-generation build tool."
requires-python = ">=3.7"
license = "MIT" # PEP 639 form (new - setuptools >= 77.0)
# Should include docbook license, but this fails:
# license = "MIT AND DocBook-stylesheet"
license-files = [
"LICENSE",
"SCons/Tool/docbook/docbook-xsl-1.76.1/COPYING",
]
readme = { file = "README-package.rst", content-type = "text/x-rst" }
dynamic = ["version"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
]
[project.urls]
Homepage = "https://www.scons.org/"
Documentation = "https://scons.org/documentation.html"
Twitter = "https://twitter.com/SConsProject"
GitHub = "https://github.com/SCons/scons"
Bug-Tracker = "https://github.com/SCons/scons/issues"
Discord = "https://discord.gg/pejaFYrD9n"
"Mailing lists" = "https://scons.org/lists.html"
[project.scripts]
scons = "SCons.Script.Main:main"
sconsign = "SCons.Utilities.sconsign:main"
scons-configure-cache = "SCons.Utilities.ConfigureCache:main"
# Extra deps for development.
[dependency-groups]
dev = [
"ninja",
"psutil",
"lxml",
]
pkg = [
{ include-group = "dev" },
"readme-renderer",
"sphinx",
"sphinx-book-theme",
"rst2pdf",
"build",
"twine",
"packaging",
# pdf doc build suggests this for better results, excluded for now:
# "matplotlib",
]
# Features users can opt into. Currently none.
# [project.optional-dependencies]
[tool.setuptools]
zip-safe = false
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "SCons.__version__"}
[tool.setuptools.packages.find]
include = ["SCons*"]
namespaces = false
[tool.setuptools.package-data]
"*" = ["*.txt", "*.rst", "*.1"]
"SCons.Tool.docbook" = ["*.*"]
[tool.distutils.sdist]
dist-dir = "build/dist"
[tool.distutils.bdist_wheel]
dist-dir = "build/dist"
[tool.ruff]
target-version = "py37" # Lowest python version supported
extend-include = ["SConstruct", "SConscript"]
extend-exclude = [
"bench/",
"bin/",
"doc/",
"src/",
"template/",
"test/",
"testing/",
"timings/",
"SCons/Tool/docbook/docbook-xsl-1.76.1/",
]
[tool.ruff.lint]
extend-select = [
"FA", # Future annotations
"UP006", # Use {to} instead of {from} for type annotation
"UP007", # Use `X | Y` for type annotations
"UP037", # Remove quotes from type annotation
]
extend-safe-fixes = ["FA", "UP006", "UP007"]
[tool.ruff.format]
quote-style = "preserve" # Equivalent to black's "skip-string-normalization"
[tool.mypy]
# version should be oldest supported by SCons, but mypy has moved on.
# can't *run* mypy with 3.9, but can still check against it, for now.
python_version = "3.9"
exclude = [
"^bench/",
"^bin/",
"^doc/",
"^src/",
"^template/",
"^test/",
"^testing/",
"^timings/",
"^SCons/Tool/docbook/docbook-xsl-1.76.1/",
]
# TODO: need a matching section for pyright? (doesn't read [tool.mypy]