diff --git a/jupyter_server_proxy/__init__.py b/jupyter_server_proxy/__init__.py index bb3d0f00..cbce0d5f 100644 --- a/jupyter_server_proxy/__init__.py +++ b/jupyter_server_proxy/__init__.py @@ -1,5 +1,6 @@ from jupyter_server.utils import url_path_join as ujoin +from ._version import __version__ # noqa from .api import IconHandler, ServersInfoHandler from .config import ServerProxy as ServerProxyConfig from .config import get_entrypoint_server_processes, make_handlers, make_server_process diff --git a/jupyter_server_proxy/_version.py b/jupyter_server_proxy/_version.py new file mode 100644 index 00000000..87af4adc --- /dev/null +++ b/jupyter_server_proxy/_version.py @@ -0,0 +1,4 @@ +# __version__ should be updated using tbump, based on configuration in +# pyproject.toml, according to instructions in RELEASE.md. +# +__version__ = "4.1.1-0.dev" diff --git a/pyproject.toml b/pyproject.toml index 4a4d35ec..37fe1119 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,9 +4,8 @@ [build-system] build-backend = "hatchling.build" requires = [ - "hatch-jupyter-builder >=0.5", - "hatch-nodejs-version", - "hatchling >=1.4.0", + "hatch-jupyter-builder >=0.8.3", + "hatchling >=1.18.0", "jupyterlab >=4.0.6,<5.0.0a0", ] @@ -17,12 +16,13 @@ requires = [ # [project] name = "jupyter_server_proxy" -dynamic = [ - "authors", - "description", - "keywords", - "urls", - "version", +version = "4.1.1-0.dev" +description = "A Jupyter server extension to run additional processes and proxy to them that comes bundled JupyterLab extension to launch pre-defined processes." +keywords = ["jupyter", "jupyterlab", "jupyterlab-extension"] +authors = [ + { name = "Ryan Lovett", email = "rylo@berkeley.edu" }, + { name = "Yuvi Panda", email = "yuvipanda@gmail.com" }, + { name = "Jupyter Development Team", email = "jupyter@googlegroups.com" }, ] readme = "README.md" license = { file = "LICENSE" } @@ -75,10 +75,14 @@ lab = [ "notebook >=7", ] -[tool.hatch.version] -source = "nodejs" -path = "labextension/package.json" +[project.urls] +Documentation = "https://jupyter-server-proxy.readthedocs.io" +Source = "https://github.com/jupyterhub/jupyter-server-proxy" +Tracker = "https://github.com/jupyterhub/jupyter-server-proxy/issues" + +# hatch ref: https://hatch.pypa.io/latest/ +# [tool.hatch.build.targets.sdist] artifacts = [ "jupyter_server_proxy/labextension", @@ -101,10 +105,6 @@ exclude = [ # Set to true to allow testing of git+https://github.com/user/repo@sha dependencies allow-direct-references = false -[tool.hatch.metadata.hooks.nodejs] -path = "labextension/package.json" -fields = ["description", "authors", "urls"] - [tool.hatch.build.hooks.jupyter-builder] build-function = "hatch_jupyter_builder.npm_builder" ensured-targets = [ @@ -187,6 +187,9 @@ regex = ''' message_template = "Bump to {new_version}" tag_template = "v{new_version}" +[[tool.tbump.file]] +src = "pyproject.toml" + [[tool.tbump.file]] src = "labextension/package.json"