-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
279 lines (253 loc) · 7.91 KB
/
Copy pathpyproject.toml
File metadata and controls
279 lines (253 loc) · 7.91 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
[project.entry-points."jupyter_server.extension_points"]
jupyterlab_firefox_launcher = "jupyterlab_firefox_launcher:_jupyter_server_extension_points"
[project.entry-points."jupyter_serverproxy_servers"]
firefox = "jupyterlab_firefox_launcher.server_proxy:setup_firefox_proxy"
[build-system]
requires = [
"hatchling>=1.5.0",
"jupyterlab>=4.0.0,<5",
"hatch-jupyter-builder>=0.8.3"
]
build-backend = "hatchling.build"
[project]
name = "jupyterlab-firefox-launcher"
version = "0.9.10"
description = "JupyterLab extension to launch Firefox in a tab"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"
authors = [
{name = "James Beedy", email = "james@vantagecompute.ai"},
]
keywords = [
"Jupyter",
"JupyterLab",
"JupyterLab4",
"Extension",
"Firefox",
"Browser",
]
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 4",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"jupyter-server>=2.0.1,<3",
"jupyter-server-proxy>=3.0.0",
"jupyterlab>=4.4.5",
"tornado>=6.1.0",
"psutil",
"python-uinput>=1.0.1",
"aiohttp>=3.12.14",
"websockets>=15.0.1",
"requests>=2.32.4",
"build>=1.3.0",
]
[project.urls]
Homepage = "https://github.com/vantagecompute/jupyterlab-firefox-launcher"
Documentation = "https://github.com/vantagecompute/jupyterlab-firefox-launcher"
Repository = "https://github.com/vantagecompute/jupyterlab-firefox-launcher.git"
Changelog = "https://github.com/vantagecompute/jupyterlab-firefox-launcher/blob/main/CHANGELOG.md"
# Note: System dependencies required but not installable via pip:
# - xpra (with HTML5 support)
# - firefox
#
# Install with:
# apt-get install xpra xpra-html5 firefox
# or
# yum install xpra python3-xpra-html5 firefox
# or
# conda install -c conda-forge xpra firefox
[project.optional-dependencies]
dev = [
"build",
"hatch",
"jupyterlab>=4.0.0,<5",
"jupyter-packaging>=0.12,<1",
"coverage",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-jupyter[server]>=0.4",
# Linting
"ruff",
"codespell",
"pyright",
]
# JupyterLab extension configuration
[tool.hatch.build.targets.wheel.shared-data]
"jupyterlab_firefox_launcher/labextension/static" = "share/jupyter/labextensions/jupyterlab-firefox-launcher/static"
"jupyterlab_firefox_launcher/labextension/package.json" = "share/jupyter/labextensions/jupyterlab-firefox-launcher/package.json"
"install.json" = "share/jupyter/labextensions/jupyterlab-firefox-launcher/install.json"
"jupyter-config/jupyter_server_config.d/jupyterlab_firefox_launcher.json" = "etc/jupyter/jupyter_server_config.d/jupyterlab_firefox_launcher.json"
"scripts/firefox-xstartup" = "bin/firefox-xstartup"
[tool.hatch.build.targets.sdist]
artifacts = ["jupyterlab_firefox_launcher/labextension"]
exclude = [
".github",
"binder",
"jupyterlab_firefox_launcher/labextension/src",
"jupyterlab_firefox_launcher/labextension/.yarn",
"jupyterlab_firefox_launcher/labextension/node_modules",
"jupyterlab_firefox_launcher/labextension/.yarnrc.yml",
"jupyterlab_firefox_launcher/labextension/yarn.lock",
"build.sh",
"sync_version.py",
"uv.lock",
".python-version"
]
[tool.hatch.build.targets.wheel]
packages = ["jupyterlab_firefox_launcher"]
exclude = [
".github",
"binder",
"jupyterlab_firefox_launcher/labextension/src/**",
"jupyterlab_firefox_launcher/labextension/.yarn",
"jupyterlab_firefox_launcher/labextension/node_modules",
"jupyterlab_firefox_launcher/labextension/.yarnrc.yml",
"jupyterlab_firefox_launcher/labextension/yarn.lock",
"jupyterlab_firefox_launcher/labextension/webpack.config.js",
"jupyterlab_firefox_launcher/labextension/tsconfig.json",
"jupyterlab_firefox_launcher/labextension/tsconfig.tsbuildinfo",
"build.sh",
"uv.lock",
".python-version"
]
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder>=0.8.3"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"jupyterlab_firefox_launcher/labextension/package.json",
]
skip-if-exists = ["jupyterlab_firefox_launcher/labextension/package.json"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build:prod"
npm = ["jlpm"]
[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
build_cmd = "build"
npm = ["jlpm"]
[tool.check-wheel-contents]
ignore = ["W002"]
# pytest configuration
[tool.pytest.ini_options]
minversion = "6.0"
xfail_strict = true
log_cli_level = "INFO"
addopts = [
"-raXs", "--strict-markers", "--strict-config",
"--cov=jupyterlab_firefox_launcher", "--cov-branch",
"--cov-report=term-missing:skip-covered",
"--cov-fail-under=75", "--cov-report=html", "--cov-report=xml"
]
testpaths = ["tests/"]
filterwarnings = [
"error",
"ignore:There is no current event loop:DeprecationWarning",
"ignore:unclosed <socket.socket:ResourceWarning",
"ignore:unclosed event loop:ResourceWarning",
]
# coverage configuration
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.coverage.run]
relative_files = true
source = ["jupyterlab_firefox_launcher"]
omit = ["tests/*"]
# black configuration
[tool.black]
line-length = 100
target-version = ["py38"]
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
# isort configuration
[tool.isort]
profile = "black"
line_length = 100
# git-cliff configuration
[tool.git-cliff.changelog]
header = """
# Changelog
All notable changes to the JupyterLab Firefox Launcher project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
body = """
{% if version %}\
{% if previous.version %}\
## [{{ version }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | upper_first }}\
{% if commit.breaking %} [**BREAKING**]{% endif %}
{% endfor %}
{% endfor %}\
"""
trim = true
footer = """
<!-- generated by git-cliff -->
"""
[tool.git-cliff.git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactor" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
{ message = "^revert", group = "Revert" },
]
protect_breaking_commits = false
filter_commits = false
tag_pattern = "[0-9].*"
skip_tags = ""
ignore_tags = ""
topo_order = false
sort_commits = "oldest"