-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathpyproject.toml
121 lines (104 loc) · 2.8 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
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
[build-system]
requires = [
"hatchling",
"jupyterlab>=3,<5",
]
build-backend = "hatchling.build"
[project]
name = "ipycanvas"
description = "Interactive widgets library exposing the browser's Canvas API"
readme = "README.md"
authors = [
]
keywords = [
"IPython",
"Jupyter",
"Widgets",
]
classifiers = [
"Framework :: Jupyter",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ipywidgets>=7.6.0,<9",
"numpy",
"pillow>=6.0",
]
version = "0.13.3"
[project.license]
file = "LICENSE.txt"
[project.optional-dependencies]
[project.urls]
Homepage = "https://github.com/jupyter-widgets-contrib/ipycanvas"
[tool.hatch.build]
artifacts = [
"ipycanvas/nbextension/static/index.*",
"ipycanvas/labextension",
]
[tool.hatch.build.targets.wheel.shared-data]
"ipycanvas/nbextension/static" = "share/jupyter/nbextensions/ipycanvas"
"ipycanvas/labextension" = "share/jupyter/labextensions/ipycanvas"
"ipycanvas.json" = "etc/jupyter/nbconfig/notebook.d/ipycanvas.json"
[tool.hatch.build.targets.sdist]
exclude = [
".github",
]
[tool.hatch.build.hooks.jupyter-builder]
ensured-targets = [
"ipycanvas/nbextension/static/index.js",
"ipycanvas/labextension/package.json",
]
dependencies = [
"hatch-jupyter-builder>=0.8.1",
]
build-function = "hatch_jupyter_builder.npm_builder"
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "."
build_cmd = "build:extensions"
npm = [
"yarn",
]
[tool.tbump]
field = [
{ name = "channel", default = "" },
{ name = "release", default = "" },
]
[tool.tbump.version]
current = "0.13.3"
regex = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<channel>a|b|rc|.dev)(?P<release>\\d+))?"
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "pyproject.toml"
version_template = "version = \"{major}.{minor}.{patch}{channel}{release}\""
[[tool.tbump.file]]
src = "ipycanvas/_version.py"
[[tool.tbump.file]]
src = "package.json"
version_template = "\"version\": \"{major}.{minor}.{patch}{channel}{release}\""
[tool.jupyter-releaser.hooks]
before-bump-version = [
"python -m pip install hatch jupyterlab~=4.0",
]
before-build-npm = [
"python -m pip install jupyterlab~=4.0",
"jlpm",
"jlpm clean",
"jlpm build",
]
before-build-python = [
"jlpm clean",
]
[tool.check-wheel-contents]
ignore = ["W002"]