Skip to content

Commit

Permalink
fix: add autoMergeType use dependancy from tox for update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
misohu committed Dec 5, 2022
1 parent e74e318 commit 2065a9b
Show file tree
Hide file tree
Showing 22 changed files with 34 additions and 119 deletions.
2 changes: 1 addition & 1 deletion charms/jupyter-controller/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ docstring-convention = "google"
# Check for properly formatted copyright header in each file
copyright-check = "True"
copyright-author = "Canonical Ltd."
copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"
copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"
4 changes: 2 additions & 2 deletions charms/jupyter-controller/requirements-fmt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-controller/requirements-fmt.in
#
Expand Down
6 changes: 3 additions & 3 deletions charms/jupyter-controller/requirements-integration.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-controller/requirements-integration.in
#
asttokens==2.2.0
asttokens==2.2.1
# via stack-data
attrs==22.1.0
# via pytest
Expand Down
4 changes: 2 additions & 2 deletions charms/jupyter-controller/requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-controller/requirements-lint.in
#
Expand Down
4 changes: 2 additions & 2 deletions charms/jupyter-controller/requirements-unit.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-controller/requirements-unit.in
#
Expand Down
1 change: 0 additions & 1 deletion charms/jupyter-controller/requirements-update-packages.in

This file was deleted.

28 changes: 0 additions & 28 deletions charms/jupyter-controller/requirements-update-packages.txt

This file was deleted.

4 changes: 2 additions & 2 deletions charms/jupyter-controller/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-controller/requirements.in
#
Expand Down
5 changes: 3 additions & 2 deletions charms/jupyter-controller/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ 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 --resolver=backtracking \{\}'
deps =
-r requirements-update-packages.txt
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.

[testenv:fmt]
Expand All @@ -52,7 +52,8 @@ commands =
# codespell {[vars]lib_path}
codespell {toxinidir}/. --skip {toxinidir}/.git --skip {toxinidir}/.tox \
--skip {toxinidir}/build --skip {toxinidir}/lib --skip {toxinidir}/venv \
--skip {toxinidir}/.mypy_cache --skip {toxinidir}/icon.svg
--skip {toxinidir}/.mypy_cache \
--skip {toxinidir}/icon.svg --skip *.json.tmpl
# pflake8 wrapper supports config from pyproject.toml
pflake8 {[vars]all_path}
isort --check-only --diff {[vars]all_path}
Expand Down
2 changes: 1 addition & 1 deletion charms/jupyter-ui/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ docstring-convention = "google"
# Check for properly formatted copyright header in each file
copyright-check = "True"
copyright-author = "Canonical Ltd."
copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"
copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"
4 changes: 2 additions & 2 deletions charms/jupyter-ui/requirements-fmt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-ui/requirements-fmt.in
#
Expand Down
4 changes: 2 additions & 2 deletions charms/jupyter-ui/requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-ui/requirements-lint.in
#
Expand Down
4 changes: 2 additions & 2 deletions charms/jupyter-ui/requirements-unit.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-ui/requirements-unit.in
#
Expand Down
1 change: 0 additions & 1 deletion charms/jupyter-ui/requirements-update-packages.in

This file was deleted.

28 changes: 0 additions & 28 deletions charms/jupyter-ui/requirements-update-packages.txt

This file was deleted.

4 changes: 2 additions & 2 deletions charms/jupyter-ui/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./charms/jupyter-ui/requirements.in
#
Expand Down
4 changes: 2 additions & 2 deletions charms/jupyter-ui/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ max-line-length = 100
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist = lint, unit, integration
envlist = fmt, lint, unit, integration

[vars]
all_path = {[vars]src_path} {[vars]tst_path}
Expand Down Expand Up @@ -35,7 +35,7 @@ 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 --resolver=backtracking \{\}'
deps =
-r requirements-update-packages.txt
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.

[testenv:fmt]
Expand Down
1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"schedule": null
}
},
"automergeType": "branch",
"packageRules": [
{
"groupName": "testing deps",
Expand Down
8 changes: 4 additions & 4 deletions requirements-integration.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./requirements-integration.in
#
anyio==3.6.2
# via httpcore
asttokens==2.2.0
asttokens==2.2.1
# via stack-data
async-generator==1.10
# via
Expand Down Expand Up @@ -204,7 +204,7 @@ rfc3986[idna2008]==1.5.0
# via httpx
rsa==4.9
# via google-auth
selenium==4.7.0
selenium==4.7.2
# via
# -r ./requirements-integration.in
# selenium-wire
Expand Down
1 change: 0 additions & 1 deletion requirements-update-packages.in

This file was deleted.

28 changes: 0 additions & 28 deletions requirements-update-packages.txt

This file was deleted.

6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ commands =
tox -c charms/jupyter-{env:CHARM} -e {env:TYPE}

[testenv:update-requirements]
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
deps =
-r requirements-update-packages.txt
allowlist_externals =
bash
find
Expand All @@ -27,6 +24,9 @@ allowlist_externals =
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 --resolver=backtracking \{\}'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.

[testenv:integration]
whitelist_externals = tox
Expand Down

0 comments on commit 2065a9b

Please sign in to comment.