-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
73 lines (57 loc) · 2.32 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version"]
name = "tp_extension_builder"
description = "Scripts to generate 3D-printable models that increase the height of Lenovo TrackPoints to make them usable on ergonomic keyboards."
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
# Regular dependencies
"build123d",
"ocp_vscode",
"typer",
# build123d require cadquery_ocp, but it's currently not available for arm
# macOS on pypi. But it is available as a wheel on github. This config
# specifies the correct version on Apple Silicon systems depending on the
# used python version
'cadquery-ocp @ https://github.com/CadQuery/ocp-build-system/releases/download/7.7.2.0/cadquery_ocp-7.7.2-cp39-cp39-macosx_11_0_arm64.whl ; platform_system == "Darwin" and platform_machine == "arm64" and python_version == "3.9"',
'cadquery-ocp @ https://github.com/CadQuery/ocp-build-system/releases/download/7.7.2.0/cadquery_ocp-7.7.2-cp310-cp310-macosx_11_0_arm64.whl ; platform_system == "Darwin" and platform_machine == "arm64" and python_version == "3.10"',
'cadquery-ocp @ https://github.com/CadQuery/ocp-build-system/releases/download/7.7.2.0/cadquery_ocp-7.7.2-cp311-cp311-macosx_11_0_arm64.whl ; platform_system == "Darwin" and platform_machine == "arm64" and python_version == "3.11"',
'cadquery-ocp @ https://github.com/CadQuery/ocp-build-system/releases/download/7.7.2.0/cadquery_ocp-7.7.2-cp312-cp312-macosx_11_0_arm64.whl ; platform_system == "Darwin" and platform_machine == "arm64" and python_version == "3.12"',
]
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
]
[project.urls]
"Repository" = "https://github.com/infused-kim/kb_trackpoint_extension"
[project.scripts]
tp_extension_builder = "tp_extension_builder.cli:app"
[tool.setuptools_scm]
version_file = "src/tp_extension_builder/_version.py"
[tool.ruff]
line-length = 79
exclude = [
"testing/*.py",
]
[tool.ruff.lint]
extend-select = [
"E501", # line-too-long
]
preview = true
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
docstring-code-format = true
[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = [
'testing/.*.py'
]
[[tool.mypy.overrides]]
module = "build123d"
no_implicit_optional=false