Skip to content

Commit b9571b9

Browse files
committed
Replace pipdeptree and pip-tools with uv
1 parent d82271a commit b9571b9

7 files changed

+17
-24
lines changed

.config/constraints.txt

+8-15
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
# tox run -e deps
33
ansi2html==1.9.2 # via molecule (pyproject.toml)
44
ansible-compat==25.1.4 # via ansible-lint, molecule (pyproject.toml)
5-
ansible-lint==25.1.2 # via molecule (pyproject.toml)
5+
ansible-lint==25.1.3 # via molecule (pyproject.toml)
66
astroid==3.3.8 # via pylint
77
attrs==25.1.0 # via jsonschema, referencing
88
babel==2.17.0 # via mkdocs-material
99
beautifulsoup4==4.13.3 # via linkchecker, mkdocs-htmlproofer-plugin
1010
black==25.1.0 # via ansible-lint, molecule (pyproject.toml)
1111
bracex==2.5.post1 # via wcmatch
12-
build==1.2.2.post1 # via pip-tools
1312
cachetools==5.5.1 # via tox
1413
cairocffi==1.7.1 # via cairosvg
1514
cairosvg==2.7.1 # via mkdocs-ansible
@@ -18,7 +17,7 @@ cffi==1.17.1 # via cairocffi, cryptography
1817
cfgv==3.4.0 # via pre-commit
1918
chardet==5.2.0 # via tox
2019
charset-normalizer==3.4.1 # via requests
21-
click==8.1.8 # via black, click-help-colors, mkdocs, pip-tools, pydoclint, molecule (pyproject.toml)
20+
click==8.1.8 # via black, click-help-colors, mkdocs, pydoclint, molecule (pyproject.toml)
2221
click-help-colors==0.9.4 # via molecule (pyproject.toml)
2322
colorama==0.4.6 # via griffe, mkdocs-material, tox
2423
coverage==7.6.12 # via molecule (pyproject.toml)
@@ -58,7 +57,7 @@ mccabe==0.7.0 # via pylint
5857
mdurl==0.1.2 # via markdown-it-py
5958
mergedeep==1.3.4 # via mkdocs, mkdocs-get-deps
6059
mkdocs==1.6.1 # via mkdocs-ansible, mkdocs-autorefs, mkdocs-gen-files, mkdocs-htmlproofer-plugin, mkdocs-macros-plugin, mkdocs-material, mkdocs-minify-plugin, mkdocs-monorepo-plugin, mkdocstrings
61-
mkdocs-ansible==24.12.0 # via molecule (pyproject.toml)
60+
mkdocs-ansible==25.2.0 # via molecule (pyproject.toml)
6261
mkdocs-autorefs==1.3.1 # via mkdocstrings, mkdocstrings-python
6362
mkdocs-gen-files==0.5.0 # via mkdocs-ansible
6463
mkdocs-get-deps==0.2.0 # via mkdocs, mkdocstrings
@@ -69,28 +68,25 @@ mkdocs-material-extensions==1.3.1 # via mkdocs-ansible, mkdocs-material
6968
mkdocs-minify-plugin==0.8.0 # via mkdocs-ansible
7069
mkdocs-monorepo-plugin==1.1.0 # via mkdocs-ansible
7170
mkdocstrings==0.28.1 # via mkdocs-ansible, mkdocstrings-python
72-
mkdocstrings-python==1.15.0 # via mkdocs-ansible
71+
mkdocstrings-python==1.16.0 # via mkdocs-ansible
7372
mypy==1.15.0 # via molecule (pyproject.toml)
7473
mypy-extensions==1.0.0 # via black, mypy
7574
nodeenv==1.9.1 # via pre-commit
76-
packaging==24.2 # via ansible-compat, ansible-core, ansible-lint, black, build, mkdocs, mkdocs-macros-plugin, pipdeptree, pyproject-api, pytest, tox, molecule (pyproject.toml)
75+
packaging==24.2 # via ansible-compat, ansible-core, ansible-lint, black, mkdocs, mkdocs-macros-plugin, pyproject-api, pytest, tox, molecule (pyproject.toml)
7776
paginate==0.5.7 # via mkdocs-material
7877
pathspec==0.12.1 # via ansible-lint, black, mkdocs, mkdocs-macros-plugin, yamllint
7978
pexpect==4.9.0 # via molecule (pyproject.toml)
8079
pillow==11.1.0 # via cairosvg, mkdocs-ansible
81-
pip-tools==7.4.1 # via molecule (pyproject.toml)
82-
pipdeptree==2.25.0 # via molecule (pyproject.toml)
8380
platformdirs==4.3.6 # via black, mkdocs-get-deps, pylint, tox, virtualenv
8481
pluggy==1.5.0 # via pytest, tox, molecule (pyproject.toml)
8582
pre-commit==4.1.0 # via molecule (pyproject.toml)
8683
ptyprocess==0.7.0 # via pexpect
8784
pycparser==2.22 # via cffi
88-
pydoclint==0.6.0 # via molecule (pyproject.toml)
85+
pydoclint==0.6.2 # via molecule (pyproject.toml)
8986
pygments==2.19.1 # via mkdocs-material, rich
9087
pylint==3.3.4 # via molecule (pyproject.toml)
9188
pymdown-extensions==10.14.3 # via markdown-exec, mkdocs-ansible, mkdocs-material, mkdocstrings
9289
pyproject-api==1.9.0 # via tox
93-
pyproject-hooks==1.2.0 # via build, pip-tools
9490
pytest==8.3.4 # via pytest-instafail, pytest-mock, pytest-plus, pytest-testinfra, pytest-xdist, molecule (pyproject.toml)
9591
pytest-instafail==0.5.0 # via molecule (pyproject.toml)
9692
pytest-mock==3.14.0 # via molecule (pyproject.toml)
@@ -107,9 +103,7 @@ requests==2.32.3 # via docker, linkchecker, mkdocs-htmlproofer-plugin,
107103
rich==13.9.4 # via enrich, molecule (pyproject.toml)
108104
rpds-py==0.22.3 # via jsonschema, referencing
109105
ruamel-yaml==0.18.10 # via ansible-lint
110-
ruamel-yaml-clib==0.2.12 # via ruamel-yaml
111106
ruff==0.9.6 # via molecule (pyproject.toml)
112-
setuptools==75.8.0 # via pip-tools
113107
six==1.17.0 # via python-dateutil
114108
soupsieve==2.6 # via beautifulsoup4
115109
subprocess-tee==0.4.2 # via ansible-compat, ansible-lint
@@ -118,7 +112,7 @@ termcolor==2.5.0 # via mkdocs-macros-plugin
118112
text-unidecode==1.3 # via python-slugify
119113
tinycss2==1.4.0 # via cairosvg, cssselect2
120114
toml-sort==0.24.2 # via molecule (pyproject.toml)
121-
tomli==2.2.1 # via black, build, coverage, mypy, pip-tools, pydoclint, pylint, pyproject-api, pytest, tox
115+
tomli==2.2.1 # via black, coverage, mypy, pydoclint, pylint, pyproject-api, pytest, tox
122116
tomlkit==0.13.2 # via pylint, toml-sort
123117
tox==4.24.1 # via molecule (pyproject.toml)
124118
types-jsonschema==4.23.0.20241208 # via molecule (pyproject.toml)
@@ -129,12 +123,11 @@ virtualenv==20.29.2 # via pre-commit, tox
129123
watchdog==6.0.0 # via mkdocs
130124
wcmatch==10.0 # via ansible-lint, molecule (pyproject.toml)
131125
webencodings==0.5.1 # via cssselect2, tinycss2
132-
wheel==0.45.1 # via pip-tools
133126
yamllint==1.35.1 # via ansible-lint
134127
zipp==3.21.0 # via importlib-metadata
135128

136129
# The following packages were excluded from the output:
137130
# ansible-core
138-
# pip
139131
# resolvelib
132+
# ruamel-yaml-clib
140133
# typing-extensions

.config/requirements-docs.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
mkdocs-ansible>=24.3.0
2-
pipdeptree>=2.4.0
32
linkchecker>=10.4.0

.config/requirements-test.txt

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ docker >= 7.1.0 # testing
66
filelock >= 3.9.0
77
mypy
88
pexpect >= 4.9.0, < 5
9-
pip-tools
109
pre-commit
1110
pydoclint
1211
pylint

.pre-commit-config.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ repos:
127127
- id: pip-compile-upgrade
128128
# To run it execute: `pre-commit run pip-compile-upgrade --hook-stage manual`
129129
name: Upgrade constraints files and requirements
130-
files: ^(pyproject\.toml|requirements\.txt)$
130+
files: ^(pyproject\.toml|.config/.*)$
131+
always_run: true
131132
language: python
132133
entry: python3 -m uv pip compile -q --all-extras --output-file=.config/constraints.txt pyproject.toml --upgrade
133134
pass_filenames: false

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ no-emit-package = [
424424
"ansible-core",
425425
"pip",
426426
"resolvelib",
427+
"ruamel-yaml-clib",
427428
"typing_extensions",
428429
"uv"
429430
]

tools/smoketest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

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

55
if [ -z "$ANSIBLE" ]; then
66
echo "Ansible dependency not detected."

tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
requires =
33
tox>=4.23.2
4-
tox-uv>=1.20.1
4+
tox-uv>=1.20.2
55
env_list =
66
py
77
deps
@@ -64,8 +64,8 @@ deps =
6464
extras =
6565
commands_pre =
6666
commands =
67-
-pre-commit run --all-files --show-diff-on-failure --hook-stage manual deps
68-
-pre-commit autoupdate
67+
pre-commit run --all-files --show-diff-on-failure --hook-stage manual pip-compile-upgrade
68+
pre-commit autoupdate
6969
git diff --exit-code
7070
env_dir = {toxworkdir}/lint
7171

@@ -119,14 +119,14 @@ package = editable
119119
pip_pre = true
120120
deps =
121121
molecule-plugins[azure,containers,docker,ec2,gce,podman,vagrant]>=23
122-
pipdeptree>=2
123122
tox-ansible>=1.5.1
123+
uv
124124
extras =
125125
test
126126
commands_pre =
127127
commands =
128128
pip check
129-
pipdeptree --reverse -e pip,pbr,six,setuptools,toml,urllib3
129+
uv pip tree --invert
130130
molecule --version
131131
molecule drivers
132132
sh -c ./tools/smoketest.sh

0 commit comments

Comments
 (0)