-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (89 loc) · 2.44 KB
/
pyproject.toml
File metadata and controls
103 lines (89 loc) · 2.44 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
[project]
name = "rayforge"
dynamic = ["version", "dependencies"]
authors = [
{ name="Samuel Abels", email="knipknap@gmail.com" },
]
description = "A desktop application for laser cutting and engraving"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Manufacturing",
]
[project.urls]
"Homepage" = "https://github.com/barebaric/rayforge"
"Bug Tracker" = "https://github.com/barebaric/rayforge/issues"
[project.gui-scripts]
rayforge = "rayforge.app:main"
[build-system]
requires = [
"setuptools >= 40.9.0", "setuptools-git-versioning"
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["rayforge*"]
[tool.setuptools-git-versioning]
enabled = true
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.ruff]
lint = { ignore = ["E203"] }
builtins = ["_"]
line-length = 79
[tool.ruff.format]
quote-style = "double"
[tool.pyright]
stubPath = "typings"
reportMissingModuleSource = false
include = [
"rayforge",
"tests/**/*.py",
"rayforge/builtin_addons/*",
"rayforge/private_addons/*",
]
[tool.mypy]
mypy_path = "stubs"
[tool.setuptools.data-files]
"share/applications" = ["data/org.rayforge.rayforge.desktop"]
"share/metainfo" = ["data/org.rayforge.rayforge.metainfo.xml"]
"share/mime/packages" = ["data/org.rayforge.rayforge.xml"]
"share/icons/hicolor/scalable/apps" = ["rayforge/resources/icons/org.rayforge.rayforge.svg"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-asyncio",
"pytest-mock",
"pytest-cov", # Add coverage tool
"pygobject-stubs",
]
[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
# Ignore Swig related deprecation warnings from importlib
"ignore::DeprecationWarning:importlib._bootstrap",
]
testpaths = [
"tests",
"rayforge/builtin_addons/*/tests",
"rayforge/private_addons/*/tests",
]
norecursedirs = [
"builddir",
".git",
".pytest_cache",
".ruff_cache",
".pixi",
"__pycache__",
]
markers = [
"ui: marks tests as UI tests that require a graphical environment and a real GTK event loop",
"stress: marks tests as stress tests that run for extended periods",
]
addopts = "-m 'not ui and not stress'"