Debian Codegraph @

pyproject.toml

raw
1 [build-system]
2 build-backend = "hatchling.build"
3 requires = [
4 "hatchling>=1.18",
5 "jupyterlab>=4.0.5",
6 ]
7
8 [project]
9 name = "ipydatagrid"
10 version = "1.4.0"
11 description = "Fast Datagrid widget for the Jupyter Notebook and JupyterLab"
12 readme = "README.md"
13 keywords = [
14 "IPython",
15 "Jupyter",
16 "Widgets",
17 ]
18 authors = [
19 { name = "NumFOCUS" },
20 ]
21 requires-python = ">=3.9"
22 classifiers = [
23 "Framework :: Jupyter",
24 "Intended Audience :: Developers",
25 "Intended Audience :: Science/Research",
26 "License :: OSI Approved :: BSD License",
27 "Programming Language :: Python",
28 "Programming Language :: Python :: 3 :: Only",
29 "Programming Language :: Python :: 3.9",
30 "Programming Language :: Python :: 3.10",
31 "Programming Language :: Python :: 3.11",
32 "Programming Language :: Python :: 3.12",
33 ]
34 dependencies = [
35 "bqplot>=0.11.6",
36 "ipywidgets<9,>=7.6",
37 "pandas>=1.3.5",
38 "py2vega>=0.5",
39 ]
40 optional-dependencies.test = [
41 "nbval>=0.10",
42 "pytest>=7.4",
43 "pytest-cov>=4.1",
44 ]
45 urls.Homepage = "https://github.com/jupyter-widgets/ipydatagrid"
46 project.license = {file = "LICENSE.txt"}
47
48 [tool.hatch.build]
49 artifacts = [
50 "ipydatagrid/nbextension/index.*",
51 "ipydatagrid/labextension",
52 ]
53 targets.sdist.exclude = [
54 ".github",
55 "examples",
56 "tests",
57 "ui-tests*",
58 "widget-examples",
59 "binder",
60 "*.yaml",
61 ".npmignore",
62 ".eslint*",
63 "__mocks__",
64 "*.yml",
65 "*.ini",
66 ".pre*",
67 "jest*",
68 ]
69
70 [tool.hatch.build.targets.wheel.shared-data]
71 "ipydatagrid/nbextension" = "share/jupyter/nbextensions/ipydatagrid"
72 "ipydatagrid/labextension" = "share/jupyter/labextensions/ipydatagrid"
73 "ipydatagrid.json" = "etc/jupyter/nbconfig/notebook.d/ipydatagrid.json"
74
75 [tool.hatch.build.hooks.jupyter-builder]
76 ensured-targets = [
77 "ipydatagrid/nbextension/index.js",
78 "ipydatagrid/labextension/package.json",
79 ]
80 dependencies = [
81 "hatch-jupyter-builder>=0.8.1",
82 ]
83 build-function = "hatch_jupyter_builder.npm_builder"
84
85 [tool.hatch.build.hooks.jupyter-builder.build-kwargs]
86 path = "."
87 build_cmd = "build"
88 npm = [
89 "jlpm",
90 ]
91
92 [tool.black]
93 line-length = 80
94 exclude = "/(\n \\.eggs\n | \\.git\n | \\.hg\n | \\.mypy_cache\n | \\.tox\n | \\.venv\n | _build\n | buck-out\n | build\n | dist\n)/\n"
95
96 [tool.isort]
97 profile = "black"
98 known_first_party = [
99 "ipydatagrid",
100 "tests",
101 ]
102 line_length = 80
103
104 [tool.pylint.messages_control]
105 disable = "C0330, C0326"
106
107 [tool.pylint.format]
108 max-line-length = "80"
109
110 [tool.codespell]
111 ignore-words-list = "statics"
112 skip = "*/yarn.lock"
113
114 [tool.tbump]
115 field = [
116 { name = "channel", default = "" },
117 { name = "release", default = "" },
118 ]
119
120 [tool.tbump.version]
121 current = "1.4.0"
122 regex = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<channel>a|b|rc|.dev)(?P<release>\\d+))?"
123
124 [tool.tbump.git]
125 message_template = "Bump to {new_version}"
126 tag_template = "v{new_version}"
127
128 [[tool.tbump.file]]
129 src = "pyproject.toml"
130 version_template = "version = \"{major}.{minor}.{patch}{channel}{release}\""
131
132 [[tool.tbump.file]]
133 src = "ipydatagrid/_version.py"
134
135 [[tool.tbump.file]]
136 src = "package.json"
137 version_template = "\"version\": \"{major}.{minor}.{patch}{channel}{release}\""