From dcc009937a227bab6fcc60690825dce8b4307040 Mon Sep 17 00:00:00 2001 From: Chris Hacker Date: Wed, 24 Jul 2024 17:03:04 -0500 Subject: [PATCH] restructure package --- Makefile | 2 +- .../__init__.py | 0 .../cli.py | 0 .../enforce_notebook_run_order.py | 0 .../utils.py | 0 pyproject.toml | 5 +++++ 6 files changed, 6 insertions(+), 1 deletion(-) rename {src/enforce_notebook_run_order => enforce_notebook_run_order}/__init__.py (100%) rename {src/enforce_notebook_run_order => enforce_notebook_run_order}/cli.py (100%) rename {src/enforce_notebook_run_order => enforce_notebook_run_order}/enforce_notebook_run_order.py (100%) rename {src/enforce_notebook_run_order => enforce_notebook_run_order}/utils.py (100%) diff --git a/Makefile b/Makefile index 5c10683..a549978 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ setup: pre-commit install test: - poetry run pytest --cov + poetry run pytest --cov test poetry run coverage html docs: diff --git a/src/enforce_notebook_run_order/__init__.py b/enforce_notebook_run_order/__init__.py similarity index 100% rename from src/enforce_notebook_run_order/__init__.py rename to enforce_notebook_run_order/__init__.py diff --git a/src/enforce_notebook_run_order/cli.py b/enforce_notebook_run_order/cli.py similarity index 100% rename from src/enforce_notebook_run_order/cli.py rename to enforce_notebook_run_order/cli.py diff --git a/src/enforce_notebook_run_order/enforce_notebook_run_order.py b/enforce_notebook_run_order/enforce_notebook_run_order.py similarity index 100% rename from src/enforce_notebook_run_order/enforce_notebook_run_order.py rename to enforce_notebook_run_order/enforce_notebook_run_order.py diff --git a/src/enforce_notebook_run_order/utils.py b/enforce_notebook_run_order/utils.py similarity index 100% rename from src/enforce_notebook_run_order/utils.py rename to enforce_notebook_run_order/utils.py diff --git a/pyproject.toml b/pyproject.toml index 8af9905..6b89326 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,11 @@ description = "Don't let notebook cells run out of order" authors = ["Chris Hacker "] license = "MIT" readme = "README.md" +packages = [{ include = "enforce_notebook_run_order" }] + +[tool.poetry.scripts] +enforce-notebook-run-order = "enforce_notebook_run_order.cli:cli" +nbcheck = "enforce_notebook_run_order.cli:cli" [tool.poetry.dependencies] python = "^3.9"