Skip to content

Commit

Permalink
added env
Browse files Browse the repository at this point in the history
  • Loading branch information
beliaev-maksim committed Jul 27, 2023
1 parent 96755a5 commit 7e68137
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charms/argo-controller/requirements-fmt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements-fmt.in
# pip-compile requirements-fmt.in
#
black==23.7.0
# via -r requirements-fmt.in
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-controller/requirements-integration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements-integration.in
# pip-compile requirements-integration.in
#
aiohttp==3.8.5
# via -r requirements-integration.in
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-controller/requirements-lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements-lint.in
# pip-compile requirements-lint.in
#
black==23.7.0
# via -r requirements-lint.in
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-controller/requirements-unit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements-unit.in
# pip-compile requirements-unit.in
#
attrs==23.1.0
# via jsonschema
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-controller/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements.in
# pip-compile requirements.in
#
attrs==23.1.0
# via jsonschema
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-server/requirements-fmt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements-fmt.in
# pip-compile requirements-fmt.in
#
black==23.7.0
# via -r requirements-fmt.in
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-server/requirements-lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements-lint.in
# pip-compile requirements-lint.in
#
black==23.7.0
# via -r requirements-lint.in
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-server/requirements-unit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements-unit.in
# pip-compile requirements-unit.in
#
coverage==7.2.7
# via -r requirements-unit.in
Expand Down
2 changes: 1 addition & 1 deletion charms/argo-server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking requirements.in
# pip-compile requirements.in
#
oci-image==1.0.0
# via -r requirements.in
Expand Down
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ setenv =
update-requirements: TYPE = update-requirements
commands =
tox -vve {env:TYPE} -c {toxinidir}/charms/{env:CHARM}

[testenv:update-requirements]
allowlist_externals =
bash
find
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
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.

0 comments on commit 7e68137

Please sign in to comment.