diff --git a/.binder/postBuild b/.binder/postBuild index 00acf5d..06472a5 100755 --- a/.binder/postBuild +++ b/.binder/postBuild @@ -4,6 +4,7 @@ curl -LsSf https://astral.sh/uv/install.sh | sh source $HOME/.cargo/env uv export \ --group jupyter \ + --group notebooks \ --no-dev \ > requirements.txt uv pip install \ diff --git a/pyproject.toml b/pyproject.toml index 9cf9667..09caa7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,16 +3,6 @@ build-backend = "setuptools.build_meta" requires = ["setuptools"] [project] -dependencies = [ - "ampform", - "ipympl", - "ipywidgets", - "ipywidgets", - "matplotlib", - "pandas", - "sympy", - "uproot", -] description = "Investigation of symbolic amplitude models for the GlueX experiment" license = {text = "BSD 3-Clause License"} name = "gluex-amplitude" @@ -29,7 +19,10 @@ dev = [ {include-group = "doc"}, {include-group = "jupyter"}, ] -doc = ["jupyter-book"] +doc = [ + "jupyter-book", + {include-group = "notebooks"}, +] jupyter = [ "jupyterlab", "jupyterlab-code-formatter", @@ -38,6 +31,16 @@ jupyter = [ "jupyterlab-myst", "python-lsp-ruff", "python-lsp-server[rope]", + {include-group = "notebooks"}, +] +notebooks = [ + "ampform", + "ipympl", + "ipywidgets", + "matplotlib", + "pandas", + "sympy", + "uproot", ] [tool.ruff] diff --git a/uv.lock b/uv.lock index d4a995c..f6f771e 100644 --- a/uv.lock +++ b/uv.lock @@ -560,43 +560,53 @@ wheels = [ name = "gluex-amplitude" version = "0.0.0" source = { editable = "." } -dependencies = [ - { name = "ampform" }, - { name = "ipympl" }, - { name = "ipywidgets" }, - { name = "matplotlib" }, - { name = "pandas" }, - { name = "sympy" }, - { name = "uproot" }, -] [package.dependency-groups] dev = [ + { name = "ampform" }, + { name = "ipympl" }, + { name = "ipywidgets" }, { name = "jupyter-book" }, { name = "jupyterlab" }, { name = "jupyterlab-code-formatter" }, { name = "jupyterlab-git" }, { name = "jupyterlab-lsp" }, { name = "jupyterlab-myst" }, + { name = "matplotlib" }, + { name = "pandas" }, { name = "python-lsp-ruff" }, { name = "python-lsp-server", extra = ["rope"] }, { name = "ruff" }, + { name = "sympy" }, + { name = "uproot" }, ] doc = [ + { name = "ampform" }, + { name = "ipympl" }, + { name = "ipywidgets" }, { name = "jupyter-book" }, + { name = "matplotlib" }, + { name = "pandas" }, + { name = "sympy" }, + { name = "uproot" }, ] jupyter = [ + { name = "ampform" }, + { name = "ipympl" }, + { name = "ipywidgets" }, { name = "jupyterlab" }, { name = "jupyterlab-code-formatter" }, { name = "jupyterlab-git" }, { name = "jupyterlab-lsp" }, { name = "jupyterlab-myst" }, + { name = "matplotlib" }, + { name = "pandas" }, { name = "python-lsp-ruff" }, { name = "python-lsp-server", extra = ["rope"] }, + { name = "sympy" }, + { name = "uproot" }, ] - -[package.metadata] -requires-dist = [ +notebooks = [ { name = "ampform" }, { name = "ipympl" }, { name = "ipywidgets" }, @@ -606,27 +616,61 @@ requires-dist = [ { name = "uproot" }, ] +[package.metadata] + [package.metadata.dependency-groups] dev = [ + { name = "ampform" }, + { name = "ipympl" }, + { name = "ipywidgets" }, { name = "jupyter-book" }, { name = "jupyterlab" }, { name = "jupyterlab-code-formatter" }, { name = "jupyterlab-git" }, { name = "jupyterlab-lsp" }, { name = "jupyterlab-myst" }, + { name = "matplotlib" }, + { name = "pandas" }, { name = "python-lsp-ruff" }, { name = "python-lsp-server", extras = ["rope"] }, { name = "ruff" }, + { name = "sympy" }, + { name = "uproot" }, +] +doc = [ + { name = "ampform" }, + { name = "ipympl" }, + { name = "ipywidgets" }, + { name = "jupyter-book" }, + { name = "matplotlib" }, + { name = "pandas" }, + { name = "sympy" }, + { name = "uproot" }, ] -doc = [{ name = "jupyter-book" }] jupyter = [ + { name = "ampform" }, + { name = "ipympl" }, + { name = "ipywidgets" }, { name = "jupyterlab" }, { name = "jupyterlab-code-formatter" }, { name = "jupyterlab-git" }, { name = "jupyterlab-lsp" }, { name = "jupyterlab-myst" }, + { name = "matplotlib" }, + { name = "pandas" }, { name = "python-lsp-ruff" }, { name = "python-lsp-server", extras = ["rope"] }, + { name = "sympy" }, + { name = "uproot" }, +] +notebooks = [ + { name = "ampform" }, + { name = "ipympl" }, + { name = "ipywidgets" }, + { name = "matplotlib" }, + { name = "pandas" }, + { name = "sympy" }, + { name = "uproot" }, ] [[package]] @@ -2573,14 +2617,14 @@ wheels = [ [[package]] name = "tqdm" -version = "4.66.5" +version = "4.66.6" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "platform_system == 'Windows'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/58/83/6ba9844a41128c62e810fddddd72473201f3eacde02046066142a2d96cc5/tqdm-4.66.5.tar.gz", hash = "sha256:e1020aef2e5096702d8a025ac7d16b1577279c9d63f8375b63083e9a5f0fcbad", size = 169504 } +sdist = { url = "https://files.pythonhosted.org/packages/e9/34/bef135b27fe1864993a5284ad001157ee9b5538e859ac90f5b0e8cc8c9ec/tqdm-4.66.6.tar.gz", hash = "sha256:4bdd694238bef1485ce839d67967ab50af8f9272aab687c0d7702a01da0be090", size = 169533 } wheels = [ - { url = "https://files.pythonhosted.org/packages/48/5d/acf5905c36149bbaec41ccf7f2b68814647347b72075ac0b1fe3022fdc73/tqdm-4.66.5-py3-none-any.whl", hash = "sha256:90279a3770753eafc9194a0364852159802111925aa30eb3f9d85b0e805ac7cd", size = 78351 }, + { url = "https://files.pythonhosted.org/packages/41/73/02342de9c2d20922115f787e101527b831c0cffd2105c946c4a4826bcfd4/tqdm-4.66.6-py3-none-any.whl", hash = "sha256:223e8b5359c2efc4b30555531f09e9f2f3589bcd7fdd389271191031b49b7a63", size = 78326 }, ] [[package]]