Mercurial > code > home > repos > rdfdb
changeset 108:a4a060241c73
add a pydeps task. `inv pydeps`
author | drewp@bigasterisk.com |
---|---|
date | Mon, 30 May 2022 22:44:50 -0700 |
parents | 19100db34354 |
children | bc643d61bb7c |
files | pdm.lock pyproject.toml tasks.py |
diffstat | 3 files changed, 28 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pdm.lock Mon May 30 22:44:10 2022 -0700 +++ b/pdm.lock Mon May 30 22:44:50 2022 -0700 @@ -198,6 +198,14 @@ summary = "C parser in Python" [[package]] +name = "pydeps" +version = "1.10.18" +summary = "Display module dependencies" +dependencies = [ + "stdlib-list", +] + +[[package]] name = "pyflakes" version = "2.4.0" requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" @@ -292,6 +300,11 @@ ] [[package]] +name = "stdlib-list" +version = "0.8.0" +summary = "A list of Python Standard Libraries (2.6-7, 3.2-9)." + +[[package]] name = "tomli" version = "2.0.1" requires_python = ">=3.7" @@ -332,7 +345,7 @@ [metadata] lock_version = "3.1" -content_hash = "sha256:cef022432db4c419831024aff2c532332973a2336a9cbb7ad079e8d15e0970f1" +content_hash = "sha256:b3bc2e6406e415151d6e765f6bb07d29ec3b7ecb89b957d308a79569ae383f45" [metadata.files] "aiohttp 3.8.1" = [ @@ -692,6 +705,10 @@ {file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"}, {file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"}, ] +"pydeps 1.10.18" = [ + {file = "pydeps-1.10.18-py3-none-any.whl", hash = "sha256:865b5361e8c99c492ee1625da21776854f4c5eeeb09ebe3fa2384a134b4d457a"}, + {file = "pydeps-1.10.18.tar.gz", hash = "sha256:d512f6f0984947a45553598798cdf229a4a23a2c1389eaf60139416a68fcec5f"}, +] "pyflakes 2.4.0" = [ {file = "pyflakes-2.4.0-py2.py3-none-any.whl", hash = "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e"}, {file = "pyflakes-2.4.0.tar.gz", hash = "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"}, @@ -737,6 +754,10 @@ {file = "starlette_exporter-0.12.0-py3-none-any.whl", hash = "sha256:8d9537e94edef0a2afc396dfdc37687aa95dd594d00dbdab72bdd9dba6c28222"}, {file = "starlette_exporter-0.12.0.tar.gz", hash = "sha256:18d95d09cfb45427e6f54ae591982b5ef900aa150ce9b41e717675b18c5bdb74"}, ] +"stdlib-list 0.8.0" = [ + {file = "stdlib_list-0.8.0-py3-none-any.whl", hash = "sha256:2ae0712a55b68f3fbbc9e58d6fa1b646a062188f49745b495f94d3310a9fdd3e"}, + {file = "stdlib-list-0.8.0.tar.gz", hash = "sha256:a1e503719720d71e2ed70ed809b385c60cd3fb555ba7ec046b96360d30b16d9f"}, +] "tomli 2.0.1" = [ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
--- a/pyproject.toml Mon May 30 22:44:10 2022 -0700 +++ b/pyproject.toml Mon May 30 22:44:50 2022 -0700 @@ -30,6 +30,7 @@ "pytest-watcher>=0.2.3", "mock", "pytest-asyncio>=0.18.3", + "pydeps>=1.10.18", ] [build-system]
--- a/tasks.py Mon May 30 22:44:10 2022 -0700 +++ b/tasks.py Mon May 30 22:44:50 2022 -0700 @@ -27,3 +27,8 @@ @task def demo(ctx): ctx.run('PYTHONPATH=. pdm run uvicorn --reload --port 8082 demo:app', pty=True) + + +@task +def pydeps(ctx): + ctx.run("pdm run pydeps --reverse --max-bacon=2 --rankdir BT --cluster ./rdfdb")