Skip to content

Commit

Permalink
update tox.ini's update-requirements
Browse files Browse the repository at this point in the history
Updates tox.ini's `update-requirements` as described in canonical/argo-operators#100
  • Loading branch information
ca-scribner committed Aug 4, 2023
1 parent ea82ef0 commit 9e0f5eb
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 25 deletions.
8 changes: 5 additions & 3 deletions charms/kfp-api/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ allowlist_externals =
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c 'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile -U --resolver=backtracking \{\}'
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
Expand Down
8 changes: 5 additions & 3 deletions charms/kfp-persistence/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ allowlist_externals =
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c 'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile -U --resolver=backtracking \{\}'
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
Expand Down
8 changes: 5 additions & 3 deletions charms/kfp-profile-controller/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ allowlist_externals =
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c 'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile -U --resolver=backtracking \{\}'
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
Expand Down
8 changes: 5 additions & 3 deletions charms/kfp-schedwf/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ allowlist_externals =
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c 'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile -U --resolver=backtracking \{\}'
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
Expand Down
8 changes: 5 additions & 3 deletions charms/kfp-ui/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ allowlist_externals =
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c 'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile -U --resolver=backtracking \{\}'
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
Expand Down
6 changes: 3 additions & 3 deletions charms/kfp-viewer/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ allowlist_externals =
pip-compile
xargs
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
Expand Down
8 changes: 5 additions & 3 deletions charms/kfp-viz/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ allowlist_externals =
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c 'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile -U --resolver=backtracking \{\}'
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
Expand Down
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ allowlist_externals =
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c 'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile -U --resolver=backtracking \{\}'
commands =
; we must preserve the order of compilation, since each *.in file depends on some *.txt file.
; For example, requirements-unit.in depends on requirements.txt and we must compile first
; requirements.txt to ensure that requirements-unit.txt get the same dependency as the requirements.txt
bash -c 'for pattern in "requirements.in" "requirements-fmt.in" "requirements*.in"; do find . -type f -name "$pattern" -exec bash -c "cd \$(dirname "{}") && pip-compile --resolver=backtracking \$(basename "{}")" \;; done'
deps =
pip-tools
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.

[testenv:bundle-integration]
Expand Down

0 comments on commit 9e0f5eb

Please sign in to comment.