11[build-system ]
22requires = [
3+ " hatch" ,
34 " hatchling" ,
5+ " hatch-nodejs-version" ,
6+ " hatch-build-scripts" ,
47 " jupyterlab==4.*" ,
58]
69build-backend = " hatchling.build"
@@ -28,27 +31,34 @@ classifiers = [
2831 " License :: OSI Approved :: Apache Software License" ,
2932 " Programming Language :: Python" ,
3033 " Programming Language :: Python :: 3" ,
31- " Programming Language :: Python :: 3.7" ,
32- " Programming Language :: Python :: 3.8" ,
3334 " Programming Language :: Python :: 3.9" ,
3435 " Programming Language :: Python :: 3.10" ,
3536 " Programming Language :: Python :: 3.11" ,
37+ " Programming Language :: Python :: 3.12" ,
38+ " Programming Language :: Python :: 3.13" ,
39+ " Programming Language :: Python :: 3.14" ,
3640]
3741dependencies = [
3842 " bqplot>=0.13.0a0,<0.14" ,
3943]
40- version = " 0.1.0a0"
44+ dynamic = [
45+ " version" ,
46+ ]
4147
4248[project .license ]
4349file = " LICENSE"
4450
4551[project .urls ]
4652Homepage = " https://github.com/bqplot/bqplot-gl"
4753
54+ [tool .hatch .version ]
55+ source = " nodejs"
56+
4857[tool .hatch .build ]
4958artifacts = [
5059 " bqplot_gl/nbextension/index.*" ,
5160 " bqplot_gl/labextension" ,
61+ " bqplot_gl/_version.py" ,
5262]
5363
5464[tool .hatch .build .targets .wheel .shared-data ]
@@ -71,34 +81,16 @@ dependencies = [
7181]
7282build-function = " hatch_jupyter_builder.npm_builder"
7383
84+ [[tool .hatch .build .hooks .build-scripts .scripts ]]
85+ work_dir = " ."
86+ commands = [' python scripts/write_version.py' ]
87+ artifacts = [
88+ " bqplot_gl/_version.py"
89+ ]
90+
7491[tool .hatch .build .hooks .jupyter-builder .build-kwargs ]
7592path = " ."
7693build_cmd = " build:prod"
7794npm = [
7895 " jlpm" ,
7996]
80-
81- [tool .tbump ]
82- field = [
83- { name = " channel" , default = " " },
84- { name = " release" , default = " " },
85- ]
86-
87- [tool .tbump .version ]
88- current = " 0.1.0a0"
89- regex = " (?P<major>\\ d+)\\ .(?P<minor>\\ d+)\\ .(?P<patch>\\ d+)((?P<channel>a|b|rc|.dev)(?P<release>\\ d+))?"
90-
91- [tool .tbump .git ]
92- message_template = " Bump to {new_version}"
93- tag_template = " v{new_version}"
94-
95- [[tool .tbump .file ]]
96- src = " pyproject.toml"
97- version_template = " version = \" {major}.{minor}.{patch}{channel}{release}\" "
98-
99- [[tool .tbump .file ]]
100- src = " bqplot_gl/_version.py"
101-
102- [[tool .tbump .file ]]
103- src = " package.json"
104- version_template = " \" version\" : \" {major}.{minor}.{patch}{channel}{release}\" "
0 commit comments