-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (109 loc) · 3.28 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (109 loc) · 3.28 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
[build-system]
requires = ["hatchling>=1.24,<1.32"]
build-backend = "hatchling.build"
[project]
name = "glplot"
version = "0.1.9"
description = "High-performance OpenGL plotting library for Python"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [
{ name = "Juan Manuel Lombardi", email = "lombardi@fhi-berlin.mpg.de" },
{ name = "Felix Riccius" },
{ name = "Julian Holland" },
{ name = "Gianmarco Ducci" }
]
keywords = ["plotting", "opengl", "visualization", "gpu", "scientific plotting"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"numpy>=1.23",
"scipy>=1.9",
"matplotlib>=3.6,<3.10",
"glfw>=2.5",
"PyOpenGL>=3.1.6",
"imgui-bundle>=1.92"
]
[project.optional-dependencies]
dev = [
"build>=1.0",
"twine>=4.0",
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-mock>=3.10",
"pytest-timeout>=2.1"
]
test = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-mock>=3.10",
"pytest-timeout>=2.1"
]
[project.urls]
Homepage = "https://github.com/AkarisDimitry/GLPlot"
Repository = "https://github.com/AkarisDimitry/GLPlot"
Issues = "https://github.com/AkarisDimitry/GLPlot/issues"
[tool.hatch.build.targets.wheel]
packages = ["glplot"]
[tool.hatch.build.targets.sdist]
include = [
"/glplot",
"/tests",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
"/CITATION.cff",
"/pyproject.toml",
]
[tool.pytest.ini_options]
addopts = "--cov=glplot --cov-report=term-missing"
testpaths = ["tests"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
# The full suite runs in ~1 minute locally; any single test past 60s is hung,
# not slow. Deliberately NOT forcing timeout_method="thread" here (verified):
# pytest-timeout's thread watchdog and coverage.py's internal data lock can
# genuinely deadlock each other (the watchdog thread's stack introspection and
# the traced main thread both want coverage's lock) -- reproduced locally, the
# process never recovers. Coverage is on by default (see addopts above), so
# this hits on every run. Leaving timeout_method unset gets pytest-timeout's
# own per-platform default instead: "signal" on POSIX (interrupts the main
# thread directly, no second thread contending for the coverage lock) and
# "thread" only on Windows, where SIGALRM does not exist. Without a timeout at
# all, one hung test burns the entire CI job down to GitHub's 6-hour default
# with no indication of which test it was -- which is what actually happened.
timeout = 60
[tool.black]
line-length = 100
target-version = ["py311", "py312", "py313"]
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
skip_glob = ["*/migrations/*"]
known_first_party = ["glplot"]