Skip to content

Commit

Permalink
rearrange: fix python package
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmiguel committed Feb 3, 2024
1 parent fa676ec commit 91aca98
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions jupyterlab_simpledark/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
}]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 91aca98

Please sign in to comment.