-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (119 loc) · 3.75 KB
/
pyproject.toml
File metadata and controls
130 lines (119 loc) · 3.75 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
[build-system]
requires = ["flit_core >=3.11,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "variantlib"
description = "A library to provide support for variants"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [
{ name = "Jonathan Dekhtiar", email = "jonathan@dekhtiar.com" },
{ name = "Michał Górny", email = "mgorny@quansight.com" },
{ name = "Michael Sarahan", email = "msarahan@nvidia.com" },
]
maintainers = [
{ name = "Jonathan Dekhtiar", email = "jonathan@dekhtiar.com" },
{ name = "Michał Górny", email = "mgorny@quansight.com" },
{ name = "Michael Sarahan", email = "msarahan@nvidia.com" },
]
dependencies = [
"importlib-metadata; python_version < '3.10'",
"packaging>=25.0,<26.0",
"platformdirs>=4.3,<5.0",
"tomli; python_version < '3.11'",
"typing-extensions; python_version < '3.11'",
]
dynamic = ["version"]
[project.optional-dependencies]
cli = [
"build>=1.2.0,<1.3",
"tomlkit>=0.13,<0.14",
"tzlocal>=3.0,<6",
]
dev = [
"check-manifest",
"mypy==1.15.0", # https://github.com/python/mypy
# Pre Commit Hooks
"pre-commit>=4,<5", # https://github.com/pre-commit/pre-commit
# Linting
"ruff>=0.10,<1.0",
]
test = [
"build>=1.2.0,<1.3",
"deepdiff>=8.0,<9.0",
"hypothesis>=6.0.0,<7",
"inline-snapshot>=0.29.4,<1",
"parameterized>=0.9.0,<0.10",
"pip>=24.0",
"pytest>=8.0.0,<9.0.0",
"pytest-cov>=5.0.0,<6.0.0",
"pytest-mock>=3.14.0,<4.0.0",
"pytest-xdist>=3.7.0,<4.0.0",
"tomlkit>=0.13,<0.14",
"trycast==1.2.1",
]
[project.scripts]
variantlib = "variantlib.commands.main:main"
[project.entry-points."variantlib.actions"]
add-wheel-to-index-json = "variantlib.commands.add_wheel_to_index_json:add_wheel_to_index_json"
analyze-platform = "variantlib.commands.analyze_platform:analyze_platform"
analyze-wheel = "variantlib.commands.analyze_wheel:analyze_wheel"
config = "variantlib.commands.config.main:main"
generate-index-json = "variantlib.commands.generate_index_json:generate_index_json"
get-variant-hash = "variantlib.commands.get_variant_hash:get_variant_hash"
make-variant = "variantlib.commands.make_variant:make_variant"
plugins = "variantlib.commands.plugins.main:main"
unmake-variant = "variantlib.commands.unmake_variant:unmake_variant"
update-pyproject-toml = "variantlib.commands.update_pyproject_toml:update_pyproject_toml"
[project.entry-points."variantlib.actions.config"]
list-paths = "variantlib.commands.config.list_paths:list_paths"
show = "variantlib.commands.config.show:show"
[project.entry-points."variantlib.actions.plugins"]
list = "variantlib.commands.plugins.list_plugins:list_plugins"
get-configs = "variantlib.commands.plugins.get_configs:get_configs"
[tool.pytest.ini_options]
testpaths = ["tests/"]
addopts = "-vvv --cov=variantlib --cov-report=term-missing --no-cov-on-fail"
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
check_untyped_defs = true
[tool.tox]
requires = ["tox>=4.19"]
env_list = ["3.10", "3.11", "3.12", "3.13", "pypy3.10", "pypy3.10", "pypy3.11"]
[tool.tox.env_run_base]
description = "Run tests under {base_python}"
extras = ["test"]
commands = [
["pytest", "-nauto"],
]
# ==== mypy ====
[tool.mypy]
exclude = [
".github",
".ipython",
".hypothesis",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".uv",
".venv",
".workdir",
"~/.cache",
"**/__pycache__/**",
"assets",
"dist",
]
enable_incomplete_feature = ["InlineTypedDict"]
check_untyped_defs = true
disable_error_code = "method-assign"
disallow_untyped_defs = true
follow_untyped_imports = true
no_implicit_optional = true
python_version = "3.13"
scripts_are_modules = true
strict = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true