From 91aca982cc66828550f41aa0464e4a6fb8961d7d Mon Sep 17 00:00:00 2001 From: ericmiguel Date: Sat, 3 Feb 2024 12:21:43 -0300 Subject: [PATCH] rearrange: fix python package --- jupyterlab_simpledark/__init__.py | 16 ++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 jupyterlab_simpledark/__init__.py diff --git a/jupyterlab_simpledark/__init__.py b/jupyterlab_simpledark/__init__.py new file mode 100644 index 0000000..d06b268 --- /dev/null +++ b/jupyterlab_simpledark/__init__.py @@ -0,0 +1,16 @@ +try: + from ._version import __version__ +except ImportError: + # Fallback when using the package in dev mode without installing + # in editable mode with pip. It is highly recommended to install + # the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs + import warnings + warnings.warn("Importing 'jupyterlab_simpledark' outside a proper installation.") + __version__ = "dev" + + +def _jupyter_labextension_paths(): + return [{ + "src": "labextension", + "dest": "jupyterlab_simpledark" + }] diff --git a/pyproject.toml b/pyproject.toml index ab4dc60..59953fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "hatch-nodejs-version>=0 build-backend = "hatchling.build" [project] -name = "jupyterlab-simpledark" +name = "jupyterlab_simpledark" readme = "README.md" license = { file = "LICENSE" } requires-python = ">=3.8"