diff --git a/pyproject.toml b/pyproject.toml index 0d542fda..9db258c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,19 +57,12 @@ dev = [ "ampform[sty]", "ampform[test]", "sphinx-autobuild", - "tox >=1.9", # for skip_install, use_develop + "tox", ] doc = [ - "Sphinx >=3", - "ampform[all]", - "black", - "ipympl", - "matplotlib <3.9.0", # https://github.com/ComPWA/ampform/issues/279 - "matplotlib", - "mpl-interactions", - "myst-nb >=0.14", # nb_ configuration prefixes - "numpy", - "rich", + "ampform[notebooks]", + "myst-nb", + "sphinx", "sphinx-api-relink >=0.0.4", "sphinx-book-theme", "sphinx-codeautolink[ipython]", @@ -91,6 +84,15 @@ jupyter = [ "python-lsp-ruff", "python-lsp-server[rope]", ] +notebooks = [ + "ampform[all]", + "ipympl", + "matplotlib <3.9.0", # https://github.com/ComPWA/ampform/issues/279 + "matplotlib", + "mpl-interactions", + "numpy", + "rich", +] scipy = ["scipy"] sty = [ "ampform[types]", diff --git a/uv.lock b/uv.lock index 6fd76bb2..397a0a28 100644 --- a/uv.lock +++ b/uv.lock @@ -38,7 +38,6 @@ all = [ { name = "scipy" }, ] dev = [ - { name = "black" }, { name = "graphviz" }, { name = "ipympl" }, { name = "ipython" }, @@ -81,7 +80,6 @@ dev = [ { name = "tox" }, ] doc = [ - { name = "black" }, { name = "graphviz" }, { name = "ipympl" }, { name = "matplotlib" }, @@ -112,6 +110,15 @@ jupyter = [ { name = "python-lsp-ruff" }, { name = "python-lsp-server", extra = ["rope"] }, ] +notebooks = [ + { name = "graphviz" }, + { name = "ipympl" }, + { name = "matplotlib" }, + { name = "mpl-interactions" }, + { name = "numpy" }, + { name = "rich" }, + { name = "scipy" }, +] scipy = [ { name = "scipy" }, ] @@ -152,9 +159,10 @@ viz = [ [package.metadata] requires-dist = [ { name = "ampform", extras = ["all"], marker = "extra == 'dev'" }, - { name = "ampform", extras = ["all"], marker = "extra == 'doc'" }, + { name = "ampform", extras = ["all"], marker = "extra == 'notebooks'" }, { name = "ampform", extras = ["doc"], marker = "extra == 'dev'" }, { name = "ampform", extras = ["jupyter"], marker = "extra == 'dev'" }, + { name = "ampform", extras = ["notebooks"], marker = "extra == 'doc'" }, { name = "ampform", extras = ["scipy"], marker = "extra == 'all'" }, { name = "ampform", extras = ["scipy"], marker = "extra == 'test'" }, { name = "ampform", extras = ["sty"], marker = "extra == 'dev'" }, @@ -162,9 +170,8 @@ requires-dist = [ { name = "ampform", extras = ["types"], marker = "extra == 'sty'" }, { name = "ampform", extras = ["viz"], marker = "extra == 'all'" }, { name = "attrs", specifier = ">=20.1.0" }, - { name = "black", marker = "extra == 'doc'" }, { name = "graphviz", marker = "extra == 'viz'" }, - { name = "ipympl", marker = "extra == 'doc'" }, + { name = "ipympl", marker = "extra == 'notebooks'" }, { name = "ipython", marker = "extra == 'types'" }, { name = "ipywidgets", marker = "extra == 'test'" }, { name = "ipywidgets", marker = "extra == 'types'" }, @@ -173,13 +180,13 @@ requires-dist = [ { name = "jupyterlab-git", marker = "extra == 'jupyter'" }, { name = "jupyterlab-lsp", marker = "extra == 'jupyter'" }, { name = "jupyterlab-myst", marker = "extra == 'jupyter'" }, - { name = "matplotlib", marker = "extra == 'doc'" }, - { name = "matplotlib", marker = "extra == 'doc'", specifier = "<3.9.0" }, - { name = "mpl-interactions", marker = "extra == 'doc'" }, + { name = "matplotlib", marker = "extra == 'notebooks'" }, + { name = "matplotlib", marker = "extra == 'notebooks'", specifier = "<3.9.0" }, + { name = "mpl-interactions", marker = "extra == 'notebooks'" }, { name = "mypy", marker = "extra == 'sty'", specifier = ">=0.730" }, - { name = "myst-nb", marker = "extra == 'doc'", specifier = ">=0.14" }, + { name = "myst-nb", marker = "extra == 'doc'" }, { name = "nbmake", marker = "extra == 'test'" }, - { name = "numpy", marker = "extra == 'doc'" }, + { name = "numpy", marker = "extra == 'notebooks'" }, { name = "numpy", marker = "extra == 'test'" }, { name = "numpy", marker = "extra == 'types'" }, { name = "pre-commit-uv", marker = "extra == 'sty'" }, @@ -193,10 +200,10 @@ requires-dist = [ { name = "python-lsp-ruff", marker = "extra == 'jupyter'" }, { name = "python-lsp-server", extras = ["rope"], marker = "extra == 'jupyter'" }, { name = "qrules", specifier = ">=0.9.6" }, - { name = "rich", marker = "extra == 'doc'" }, + { name = "rich", marker = "extra == 'notebooks'" }, { name = "ruff", marker = "extra == 'sty'" }, { name = "scipy", marker = "extra == 'scipy'" }, - { name = "sphinx", marker = "extra == 'doc'", specifier = ">=3" }, + { name = "sphinx", marker = "extra == 'doc'" }, { name = "sphinx-api-relink", marker = "extra == 'doc'", specifier = ">=0.0.4" }, { name = "sphinx-api-relink", marker = "extra == 'types'", specifier = ">=0.0.3" }, { name = "sphinx-autobuild", marker = "extra == 'dev'" }, @@ -211,7 +218,7 @@ requires-dist = [ { name = "sphinx-togglebutton", marker = "extra == 'doc'" }, { name = "sphinxcontrib-bibtex", marker = "extra == 'doc'", specifier = ">=2" }, { name = "sympy", specifier = ">=1.10" }, - { name = "tox", marker = "extra == 'dev'", specifier = ">=1.9" }, + { name = "tox", marker = "extra == 'dev'" }, ] [[package]] @@ -338,44 +345,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl", hash = "sha256:b80878c9f40111313e55da8ba20bdba06d8fa3969fc68304167741bbf9e082ed", size = 147925 }, ] -[[package]] -name = "black" -version = "24.10.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "click" }, - { name = "mypy-extensions" }, - { name = "packaging" }, - { name = "pathspec" }, - { name = "platformdirs" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/d8/0d/cc2fb42b8c50d80143221515dd7e4766995bd07c56c9a3ed30baf080b6dc/black-24.10.0.tar.gz", hash = "sha256:846ea64c97afe3bc677b761787993be4991810ecc7a4a937816dd6bddedc4875", size = 645813 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a3/f3/465c0eb5cddf7dbbfe1fecd9b875d1dcf51b88923cd2c1d7e9ab95c6336b/black-24.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e6668650ea4b685440857138e5fe40cde4d652633b1bdffc62933d0db4ed9812", size = 1623211 }, - { url = "https://files.pythonhosted.org/packages/df/57/b6d2da7d200773fdfcc224ffb87052cf283cec4d7102fab450b4a05996d8/black-24.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1c536fcf674217e87b8cc3657b81809d3c085d7bf3ef262ead700da345bfa6ea", size = 1457139 }, - { url = "https://files.pythonhosted.org/packages/6e/c5/9023b7673904a5188f9be81f5e129fff69f51f5515655fbd1d5a4e80a47b/black-24.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:649fff99a20bd06c6f727d2a27f401331dc0cc861fb69cde910fe95b01b5928f", size = 1753774 }, - { url = "https://files.pythonhosted.org/packages/e1/32/df7f18bd0e724e0d9748829765455d6643ec847b3f87e77456fc99d0edab/black-24.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:fe4d6476887de70546212c99ac9bd803d90b42fc4767f058a0baa895013fbb3e", size = 1414209 }, - { url = "https://files.pythonhosted.org/packages/c2/cc/7496bb63a9b06a954d3d0ac9fe7a73f3bf1cd92d7a58877c27f4ad1e9d41/black-24.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5a2221696a8224e335c28816a9d331a6c2ae15a2ee34ec857dcf3e45dbfa99ad", size = 1607468 }, - { url = "https://files.pythonhosted.org/packages/2b/e3/69a738fb5ba18b5422f50b4f143544c664d7da40f09c13969b2fd52900e0/black-24.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f9da3333530dbcecc1be13e69c250ed8dfa67f43c4005fb537bb426e19200d50", size = 1437270 }, - { url = "https://files.pythonhosted.org/packages/c9/9b/2db8045b45844665c720dcfe292fdaf2e49825810c0103e1191515fc101a/black-24.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4007b1393d902b48b36958a216c20c4482f601569d19ed1df294a496eb366392", size = 1737061 }, - { url = "https://files.pythonhosted.org/packages/a3/95/17d4a09a5be5f8c65aa4a361444d95edc45def0de887810f508d3f65db7a/black-24.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:394d4ddc64782e51153eadcaaca95144ac4c35e27ef9b0a42e121ae7e57a9175", size = 1423293 }, - { url = "https://files.pythonhosted.org/packages/90/04/bf74c71f592bcd761610bbf67e23e6a3cff824780761f536512437f1e655/black-24.10.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b5e39e0fae001df40f95bd8cc36b9165c5e2ea88900167bddf258bacef9bbdc3", size = 1644256 }, - { url = "https://files.pythonhosted.org/packages/4c/ea/a77bab4cf1887f4b2e0bce5516ea0b3ff7d04ba96af21d65024629afedb6/black-24.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d37d422772111794b26757c5b55a3eade028aa3fde43121ab7b673d050949d65", size = 1448534 }, - { url = "https://files.pythonhosted.org/packages/4e/3e/443ef8bc1fbda78e61f79157f303893f3fddf19ca3c8989b163eb3469a12/black-24.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:14b3502784f09ce2443830e3133dacf2c0110d45191ed470ecb04d0f5f6fcb0f", size = 1761892 }, - { url = "https://files.pythonhosted.org/packages/52/93/eac95ff229049a6901bc84fec6908a5124b8a0b7c26ea766b3b8a5debd22/black-24.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:30d2c30dc5139211dda799758559d1b049f7f14c580c409d6ad925b74a4208a8", size = 1434796 }, - { url = "https://files.pythonhosted.org/packages/d0/a0/a993f58d4ecfba035e61fca4e9f64a2ecae838fc9f33ab798c62173ed75c/black-24.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1cbacacb19e922a1d75ef2b6ccaefcd6e93a2c05ede32f06a21386a04cedb981", size = 1643986 }, - { url = "https://files.pythonhosted.org/packages/37/d5/602d0ef5dfcace3fb4f79c436762f130abd9ee8d950fa2abdbf8bbc555e0/black-24.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1f93102e0c5bb3907451063e08b9876dbeac810e7da5a8bfb7aeb5a9ef89066b", size = 1448085 }, - { url = "https://files.pythonhosted.org/packages/47/6d/a3a239e938960df1a662b93d6230d4f3e9b4a22982d060fc38c42f45a56b/black-24.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ddacb691cdcdf77b96f549cf9591701d8db36b2f19519373d60d31746068dbf2", size = 1760928 }, - { url = "https://files.pythonhosted.org/packages/dd/cf/af018e13b0eddfb434df4d9cd1b2b7892bab119f7a20123e93f6910982e8/black-24.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:680359d932801c76d2e9c9068d05c6b107f2584b2a5b88831c83962eb9984c1b", size = 1436875 }, - { url = "https://files.pythonhosted.org/packages/fe/02/f408c804e0ee78c367dcea0a01aedde4f1712af93b8b6e60df981e0228c7/black-24.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:17374989640fbca88b6a448129cd1745c5eb8d9547b464f281b251dd00155ccd", size = 1622516 }, - { url = "https://files.pythonhosted.org/packages/f8/b9/9b706ed2f55bfb28b436225a9c57da35990c9005b90b8c91f03924454ad7/black-24.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:63f626344343083322233f175aaf372d326de8436f5928c042639a4afbbf1d3f", size = 1456181 }, - { url = "https://files.pythonhosted.org/packages/0a/1c/314d7f17434a5375682ad097f6f4cc0e3f414f3c95a9b1bb4df14a0f11f9/black-24.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ccfa1d0cb6200857f1923b602f978386a3a2758a65b52e0950299ea014be6800", size = 1752801 }, - { url = "https://files.pythonhosted.org/packages/39/a7/20e5cd9237d28ad0b31438de5d9f01c8b99814576f4c0cda1edd62caf4b0/black-24.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:2cd9c95431d94adc56600710f8813ee27eea544dd118d45896bb734e9d7a0dc7", size = 1413626 }, - { url = "https://files.pythonhosted.org/packages/8d/a7/4b27c50537ebca8bec139b872861f9d2bf501c5ec51fcf897cb924d9e264/black-24.10.0-py3-none-any.whl", hash = "sha256:3bb2b7a1f7b685f85b11fed1ef10f8a9148bceb49853e47a294a3dd963c1dd7d", size = 206898 }, -] - [[package]] name = "bleach" version = "6.1.0" @@ -2227,15 +2196,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/67/6e/7477258cd4dc56f81fa47d3a7d81c3bd2c3f44e632f72714fc46e90faa79/particle-0.25.2-py3-none-any.whl", hash = "sha256:7181ce6112d0a6d6a3cdda4a789d86e67fdfdc4f08246b8b9037fa2048dbc64e", size = 290492 }, ] -[[package]] -name = "pathspec" -version = "0.12.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191 }, -] - [[package]] name = "pexpect" version = "4.9.0"