-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
77 lines (67 loc) · 1.95 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "widget-bzvisualizer"
description = 'A Jupyter widget to show the Brillouin zone of periodic crystals.'
version = "0.2.7"
dependencies = [
"anywidget~=0.9.10",
"numpy~=1.21",
"scipy~=1.10",
"seekpath~=2.1",
]
authors = [{ name = "The OSSCAR team" }]
readme = "README.md"
keywords = [
'jupyter',
'jupyterlab',
'widget',
'anywidget',
'osscar',
'brillouin-zone',
'reciprocal-space',
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Framework :: Jupyter',
'Framework :: Jupyter :: JupyterLab',
'Programming Language :: Python',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering',
]
license = { file = 'LICENSE.txt' }
requires-python = '>=3.9'
[project.urls]
Home = 'https://www.osscar.org/'
Source = 'https://github.com/osscar-org/widget-bzvisualizer'
[project.optional-dependencies]
dev = ["watchfiles", "jupyterlab", "notebook", "ase", "bumpver>=2023.1129"]
# automatically add the dev feature to the default env (e.g., hatch shell)
[tool.hatch.envs.default]
features = ["dev"]
[tool.hatch.build]
only-packages = true
artifacts = ["src/widget_bzvisualizer/static/*"]
[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["src/widget_bzvisualizer/static/widget.js"]
skip-if-exists = ["src/widget_bzvisualizer/static/widget.js"]
dependencies = ["hatch-jupyter-builder>=0.5.0"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
npm = "npm"
build_cmd = "build"
[tool.bumpver]
current_version = "v0.2.7"
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'version = "{pep440_version}"',
'current_version = "{version}"',
]