From 7fd26f9f5d63a0b2674c1a050d3e578d17e298a3 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Thu, 30 Jan 2025 10:29:46 -0800 Subject: [PATCH] Upgrade dev-cmd to pick up improved `-l` output. (#129) Now: ```console :; uvrc -l Commands: (5 commands are hidden.) check-python-version fmt check-fmt lint check-lint type-check doc: -type: The type of sphinx doc to build. One of: html, dirhtml, htmlhelp, qthelp, devhelp, text, gettext, linkcheck or xml. [default: html] Tasks: test (-- extra pytest args ...) linkcheck: Check documentation for broken links. package: Build the science scies using science from local sources. science (-- extra dist/science.pyz args ...): Runs science from local sources. checks (-- extra pytest args ...): Runs all development checks, including auto-formatting code. ci (-- extra pytest args ...): Runs all checks used for CI. ``` --- pyproject.toml | 4 ++-- uv.lock | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 515ba7f..ba85e4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -157,7 +157,7 @@ args = ["sphinx-build", "-b", "{-type:html}", "-aEW", "docs", "docs/build/{-type [tool.dev-cmd.commands.run-zipapp] env = {"SCIENCE_DOC_LOCAL" = "docs/build/html"} -args = ["python", "dist/science.pyz"] +args = ["dist/science.pyz"] accepts-extra-args = true hidden = true @@ -183,7 +183,7 @@ description = "Build the science scies using science from local sources." steps = [["doc", "create-zipapp"], ["package-thin-scie", "package-fat-scie"]] [tool.dev-cmd.tasks.science] -description = "Runs science from local sources. Accepts extra args after --." +description = "Runs science from local sources." steps = [["doc", "create-zipapp"], "run-zipapp"] [tool.dev-cmd.tasks.checks] diff --git a/uv.lock b/uv.lock index 76783f7..b3d44af 100644 --- a/uv.lock +++ b/uv.lock @@ -150,7 +150,7 @@ wheels = [ [[package]] name = "dev-cmd" -version = "0.15.0" +version = "0.16.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aioconsole" }, @@ -159,9 +159,9 @@ dependencies = [ { name = "packaging" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d4/15/9486a9383319132c3cc2005364508e8ca2ab4296c8401307f685795a0043/dev_cmd-0.15.0.tar.gz", hash = "sha256:f2ae669574c43bcf3319123679e8f98d8d9af549a81da84856a889e7c5380b55", size = 41750 } +sdist = { url = "https://files.pythonhosted.org/packages/cb/e2/b9149f9759091936de3d398e8cc6a61003876f770fc20f805b6f57dde257/dev_cmd-0.16.0.tar.gz", hash = "sha256:2ace632fe9d52c35966501a4e7acbffa3d409023426c5e056800d3e93fe21570", size = 41880 } wheels = [ - { url = "https://files.pythonhosted.org/packages/68/0e/6c3d8b6ae50f82d54cdaef99f1da5bd1147b6de78121935011dcbc212766/dev_cmd-0.15.0-py3-none-any.whl", hash = "sha256:36a72f4e8d7bca161277af33d00a828eefa759b45554ce6bed71d1cfd1fc3bc4", size = 34739 }, + { url = "https://files.pythonhosted.org/packages/74/ad/ff8827a08531f96113642e375344ceb294dd80abb7da9db77d33f3e6436e/dev_cmd-0.16.0-py3-none-any.whl", hash = "sha256:391cc1ef0bbd47f4c891967e03f640054503afe685a72ffe5ecab272fff3c375", size = 34844 }, ] [[package]] @@ -518,7 +518,6 @@ wheels = [ [[package]] name = "science" -version = "0.11.2" source = { editable = "." } dependencies = [ { name = "appdirs" },