-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (111 loc) · 3.41 KB
/
pyproject.toml
File metadata and controls
131 lines (111 loc) · 3.41 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
[build-system]
requires = [
"hatchling",
"hatch-requirements-txt",
"jupyterlab>=4.0.0,==4.*",
]
build-backend = "hatchling.build"
[project]
name = "here-map-widget-for-jupyter"
dynamic = ["version", "dependencies", "optional-dependencies"]
description = "A widget that enables you to use HERE Maps API for JavaScript in Jupyter Notebook."
readme = "README.md"
requires-python = ">=3.9"
license-files = ["LICENSE"]
authors = [
{ name = "HERE Europe B.V." },
]
keywords = [
"here-map-widget-for-jupyter",
"ipython",
"jupyter",
"widgets",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: IPython",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
]
[project.urls]
Documentation = "https://here-map-widget-for-jupyter.readthedocs.io/en/latest/"
Issues = "https://github.com/heremaps/here-map-widget-for-jupyter/issues"
Source = "https://github.com/heremaps/here-map-widget-for-jupyter"
[tool.hatch.version]
path = "here_map_widget/__about__.py"
[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]
[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
docs = ["docs/requirements.txt"]
[tool.hatch.build.targets.sdist]
exclude = [
".github",
]
[tool.hatch.build.targets.wheel]
packages = ["here_map_widget"]
[tool.hatch.build.targets.wheel.shared-data]
"here_map_widget/nbextension" = "share/jupyter/nbextensions/@here/map-widget-for-jupyter"
"here_map_widget/labextension" = "share/jupyter/labextensions/@here/map-widget-for-jupyter"
"./map-widget-for-jupyter.json" = "etc/jupyter/nbconfig/notebook.d/map-widget-for-jupyter.json"
[tool.hatch.build.hooks.jupyter-builder]
ensured-targets = [
"here_map_widget/nbextension/index.js",
"here_map_widget/labextension/package.json",
]
dependencies = [
"hatch-jupyter-builder>=0.9.1",
]
build-function = "hatch_jupyter_builder.npm_builder"
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "js"
build_cmd = "build:extensions"
npm = [
"yarn",
]
[tool.hatch.envs.default]
dependencies = ["pyclean"]
[tool.hatch.envs.default.scripts]
clean-all = [
"cd js && yarn run cleanAll",
"pip uninstall -y here-map-widget-for-jupyter",
"pyclean . --erase js/node_modules/**/* js/node_modules/ --yes --verbose",
"pyclean . --debris --verbose",
]
clean-all-dry = [
"echo \"cd js && yarn run cleanAll\"",
"echo \"pip uninstall -y here-map-widget-for-jupyter\"",
"pyclean . --erase js/node_modules/**/* js/node_modules/ --yes --verbose --dry-run",
"pyclean . --debris --verbose --dry-run",
]
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black[jupyter]",
"isort",
]
[tool.hatch.envs.lint.scripts]
reformat = [
"black {args:.}",
"isort --atomic {args:.}",
]
check = [
"isort --check --diff {args:.}",
"black --diff --check {args:.}",
]
[tool.black]
line-length = 99
[tool.isort]
line_length = 90
multi_line_output = 3
include_trailing_comma = "True"
force_grid_wrap = 0
use_parentheses = "True"