Skip to content

Commit

Permalink
Replace pipdeptree and pip-tools with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Jan 29, 2025
1 parent 45db06d commit 4bfa2af
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .config/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,12 @@ mkdocstrings-python==1.13.0 # via mkdocs-ansible
mypy==1.14.1 # via molecule (pyproject.toml)
mypy-extensions==1.0.0 # via black, mypy
nodeenv==1.9.1 # via pre-commit
packaging==24.2 # via ansible-compat, ansible-core, ansible-lint, black, build, mkdocs, mkdocs-macros-plugin, pipdeptree, pyproject-api, pytest, tox, molecule (pyproject.toml)
packaging==24.2 # via ansible-compat, ansible-core, ansible-lint, black, build, mkdocs, mkdocs-macros-plugin, pyproject-api, pytest, tox, molecule (pyproject.toml)
paginate==0.5.7 # via mkdocs-material
pathspec==0.12.1 # via ansible-lint, black, mkdocs, mkdocs-macros-plugin, yamllint
pexpect==4.9.0 # via molecule (pyproject.toml)
pillow==11.1.0 # via cairosvg, mkdocs-ansible
pip-tools==7.4.1 # via molecule (pyproject.toml)
pipdeptree==2.24.0 # via molecule (pyproject.toml)
platformdirs==4.3.6 # via black, mkdocs-get-deps, mkdocstrings, pylint, tox, virtualenv
pluggy==1.5.0 # via pytest, tox, molecule (pyproject.toml)
pre-commit==4.1.0 # via molecule (pyproject.toml)
Expand Down
1 change: 0 additions & 1 deletion .config/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
mkdocs-ansible>=24.3.0
pipdeptree>=2.4.0
linkchecker>=10.4.0
1 change: 0 additions & 1 deletion .config/requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ docker >= 7.1.0 # testing
filelock >= 3.9.0
mypy
pexpect >= 4.9.0, < 5
pip-tools
pre-commit
pydoclint
pylint
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repos:
- prettier-plugin-sort-json

- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black

Expand Down Expand Up @@ -83,7 +83,7 @@ repos:
pass_filenames: false

- repo: https://github.com/pycqa/pylint.git
rev: v3.3.3
rev: v3.3.4
hooks:
- id: pylint
args:
Expand Down Expand Up @@ -145,7 +145,7 @@ repos:
additional_dependencies:
- uv>=0.5.21
- repo: https://github.com/ansible/ansible-lint
rev: v25.1.0
rev: v25.1.1
hooks:
- id: ansible-lint
stages: [manual]
2 changes: 1 addition & 1 deletion tests/unit/model/v2/test_provisioner_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _model_provisioner_allows_ansible_section_data(): # type: ignore[no-untyped

@pytest.mark.parametrize(
"config",
[("_model_provisioner_allows_ansible_section_data")], # noqa: PT007
["_model_provisioner_allows_ansible_section_data"], # noqa: PT007
indirect=True,
)
def test_provisioner_allows_name(config): # type: ignore[no-untyped-def] # noqa: ANN201, D103
Expand Down
2 changes: 1 addition & 1 deletion tools/smoketest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

ANSIBLE=$(pipdeptree --reverse -p ansible)
ANSIBLE=$(uv pip tree --invert --package ansible-core --strict)

if [ -z "$ANSIBLE" ]; then
echo "Ansible dependency not detected."
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ package = editable
pip_pre = true
deps =
molecule-plugins[azure,containers,docker,ec2,gce,podman,vagrant]>=23
pipdeptree>=2
tox-ansible>=1.5.1
uv
extras =
test
commands_pre =
commands =
pip check
pipdeptree --reverse -e pip,pbr,six,setuptools,toml,urllib3
uv pip tree --invert
molecule --version
molecule drivers
sh -c ./tools/smoketest.sh

0 comments on commit 4bfa2af

Please sign in to comment.