-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
85 lines (71 loc) · 2.33 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
74
75
76
77
78
79
80
81
82
83
84
85
# -- Project info
[project]
version = "0.5.1"
name = "jupyter-rfb"
description = "Remote Frame Buffer for Jupyter"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
authors = [{ name = "Almar Klein" }]
keywords = [
"ipython",
"jupyter",
"remote frame buffer",
"visualization",
"widgets",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: IPython",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Multimedia :: Graphics",
]
dependencies = ["ipywidgets>=7.6.0,<9", "jupyterlab-widgets", "numpy"]
[project.optional-dependencies]
build = ["build", "hatchling", "hatch-jupyter-builder", "twine"]
lint = ["ruff", "pre-commit"]
tests = ["pytest", "simplejpeg"]
docs = ["numpy", "ipywidgets", "sphinx", "nbsphinx"]
dev = ["jupyter_rfb[build,lint,tests,docs]"]
[project.urls]
Homepage = "https://github.com/vispy/jupyter_rfb"
Documentation = "https://jupyter-rfb.readthedocs.io/en/stable/"
Repository = "https://github.com/vispy/jupyter_rfb"
# --- Build system
# To do a release, run `python release.py`
[build-system]
requires = ["hatchling", "jupyterlab>=3.0.0,<5"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel.shared-data]
"jupyter_rfb/nbextension/*.*" = "share/jupyter/nbextensions/jupyter_rfb/*.*"
"jupyter_rfb/labextension" = "share/jupyter/labextensions/jupyter_rfb"
"./install.json" = "share/jupyter/labextensions/jupyter_rfb/install.json"
"./jupyter_rfb.json" = "etc/jupyter/nbconfig/notebook.d/jupyter_rfb.json"
[tool.hatch.build.targets.sdist]
exclude = [".github", ".git"]
[tool.hatch.build.hooks.jupyter-builder]
ensured-targets = ["js/dist/index.js"]
dependencies = ["hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "js"
build_cmd = "build:prod"
npm = ["yarn"]
# --- Tooling
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["F", "E", "W", "N", "B", "RUF"]
ignore = [
"E501", # Line too long
"E731", # Do not assign a `lambda` expression, use a `def`
"RUF006", # Store a reference to the return value of `loop.create_task`
]
[tool.coverage.report]
exclude_also = [
# Have to re-enable the standard pragma, plus a less-ugly flavor
"pragma: no cover",
"no-cover",
"raise NotImplementedError",
]