From 1af0cf507fae2b4b0c33b51a67269b351298e74d Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Fri, 23 Feb 2024 15:14:24 -0500 Subject: [PATCH] chore: freeze python dependencies (#85) --- .github/dependabot.yml | 15 +++ renovate.json | 18 ---- requirements.in | 9 ++ requirements.txt | 106 +++++++++++++++++-- test-requirements.in | 15 +++ test-requirements.txt | 228 ++++++++++++++++++++++++++++++++++++++--- 6 files changed, 350 insertions(+), 41 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 renovate.json create mode 100644 requirements.in create mode 100644 test-requirements.in diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8d0d095 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + commit-message: + prefix: "chore: " + + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" + commit-message: + prefix: "chore: " diff --git a/renovate.json b/renovate.json deleted file mode 100644 index dda61e2..0000000 --- a/renovate.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ], - "pip_requirements": { - "fileMatch": [ - "^tox.ini$" - ] - }, - "packageRules": [ - { - "matchUpdateTypes": ["minor", "patch"], - "automerge": true - } - ], - "platformAutomerge": true -} diff --git a/requirements.in b/requirements.in new file mode 100644 index 0000000..2a91e02 --- /dev/null +++ b/requirements.in @@ -0,0 +1,9 @@ +ops +lightkube +lightkube-models +pydantic<2.0 +pytest-interface-tester +jinja2 +jsonschema +cryptography +cosl # Required by prometheus_k8s.v0.prometheus_scrape diff --git a/requirements.txt b/requirements.txt index c7f881e..55450a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,97 @@ -ops -lightkube -lightkube-models -pydantic -pytest-interface-tester -jinja2 -jsonschema -cryptography -cosl # Required by prometheus_k8s.v0.prometheus_scrape +# +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: +# +# pip-compile requirements.in +# +anyio==4.3.0 + # via httpx +attrs==23.2.0 + # via + # jsonschema + # referencing +certifi==2024.2.2 + # via + # httpcore + # httpx +cffi==1.16.0 + # via cryptography +click==8.1.7 + # via typer +cosl==0.0.8 + # via -r requirements.in +cryptography==42.0.4 + # via -r requirements.in +h11==0.14.0 + # via httpcore +httpcore==1.0.4 + # via httpx +httpx==0.27.0 + # via lightkube +idna==3.6 + # via + # anyio + # httpx +iniconfig==2.0.0 + # via pytest +jinja2==3.1.3 + # via -r requirements.in +jsonschema==4.21.1 + # via -r requirements.in +jsonschema-specifications==2023.12.1 + # via jsonschema +lightkube==0.15.2 + # via -r requirements.in +lightkube-models==1.29.0.7 + # via + # -r requirements.in + # lightkube +markupsafe==2.1.5 + # via jinja2 +ops==2.10.0 + # via + # -r requirements.in + # cosl + # ops-scenario +ops-scenario==6.0.1 + # via pytest-interface-tester +packaging==23.2 + # via pytest +pluggy==1.4.0 + # via pytest +pycparser==2.21 + # via cffi +pydantic==1.10.14 + # via + # -r requirements.in + # pytest-interface-tester +pytest==8.0.1 + # via pytest-interface-tester +pytest-interface-tester==2.0.1 + # via -r requirements.in +pyyaml==6.0.1 + # via + # cosl + # lightkube + # ops + # ops-scenario +referencing==0.33.0 + # via + # jsonschema + # jsonschema-specifications +rpds-py==0.18.0 + # via + # jsonschema + # referencing +sniffio==1.3.0 + # via + # anyio + # httpx +typer==0.7.0 + # via pytest-interface-tester +typing-extensions==4.9.0 + # via + # cosl + # pydantic +websocket-client==1.7.0 + # via ops diff --git a/test-requirements.in b/test-requirements.in new file mode 100644 index 0000000..1468c6c --- /dev/null +++ b/test-requirements.in @@ -0,0 +1,15 @@ +black +coverage[toml] +flake8-docstrings +flake8-builtins +isort +juju==3.3.1.1 +macaroonbakery==1.3.4 # https://protobuf.dev/news/2022-05-06/#python-updates +mypy +pep8-naming +pyproject-flake8 +pytest +pytest-operator +types-PyYAML +types-setuptools +types-toml diff --git a/test-requirements.txt b/test-requirements.txt index 1468c6c..beb6275 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,15 +1,215 @@ -black -coverage[toml] -flake8-docstrings -flake8-builtins -isort +# +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: +# +# pip-compile test-requirements.in +# +asttokens==2.4.1 + # via stack-data +bcrypt==4.1.2 + # via paramiko +black==24.2.0 + # via -r test-requirements.in +cachetools==5.3.2 + # via google-auth +certifi==2024.2.2 + # via + # kubernetes + # requests +cffi==1.16.0 + # via + # cryptography + # pynacl +charset-normalizer==3.3.2 + # via requests +click==8.1.7 + # via black +coverage[toml]==7.4.2 + # via -r test-requirements.in +cryptography==42.0.4 + # via paramiko +decorator==5.1.1 + # via + # ipdb + # ipython +executing==2.0.1 + # via stack-data +flake8==6.1.0 + # via + # flake8-builtins + # flake8-docstrings + # pep8-naming + # pyproject-flake8 +flake8-builtins==2.2.0 + # via -r test-requirements.in +flake8-docstrings==1.7.0 + # via -r test-requirements.in +google-auth==2.28.1 + # via kubernetes +hvac==2.1.0 + # via juju +idna==3.6 + # via requests +iniconfig==2.0.0 + # via pytest +ipdb==0.13.13 + # via pytest-operator +ipython==8.22.1 + # via ipdb +isort==5.13.2 + # via -r test-requirements.in +jedi==0.19.1 + # via ipython +jinja2==3.1.3 + # via pytest-operator juju==3.3.1.1 -macaroonbakery==1.3.4 # https://protobuf.dev/news/2022-05-06/#python-updates -mypy -pep8-naming -pyproject-flake8 -pytest -pytest-operator -types-PyYAML -types-setuptools -types-toml + # via + # -r test-requirements.in + # pytest-operator +kubernetes==29.0.0 + # via juju +macaroonbakery==1.3.4 + # via + # -r test-requirements.in + # juju +markupsafe==2.1.5 + # via jinja2 +matplotlib-inline==0.1.6 + # via ipython +mccabe==0.7.0 + # via flake8 +mypy==1.8.0 + # via -r test-requirements.in +mypy-extensions==1.0.0 + # via + # black + # mypy + # typing-inspect +oauthlib==3.2.2 + # via + # kubernetes + # requests-oauthlib +packaging==23.2 + # via + # black + # juju + # pytest +paramiko==3.4.0 + # via juju +parso==0.8.3 + # via jedi +pathspec==0.12.1 + # via black +pep8-naming==0.13.3 + # via -r test-requirements.in +pexpect==4.9.0 + # via ipython +platformdirs==4.2.0 + # via black +pluggy==1.4.0 + # via pytest +prompt-toolkit==3.0.43 + # via ipython +protobuf==4.25.3 + # via macaroonbakery +ptyprocess==0.7.0 + # via pexpect +pure-eval==0.2.2 + # via stack-data +pyasn1==0.5.1 + # via + # juju + # pyasn1-modules + # rsa +pyasn1-modules==0.3.0 + # via google-auth +pycodestyle==2.11.1 + # via flake8 +pycparser==2.21 + # via cffi +pydocstyle==6.3.0 + # via flake8-docstrings +pyflakes==3.1.0 + # via flake8 +pygments==2.17.2 + # via ipython +pymacaroons==0.13.0 + # via macaroonbakery +pynacl==1.5.0 + # via + # macaroonbakery + # paramiko + # pymacaroons +pyproject-flake8==6.1.0 + # via -r test-requirements.in +pyrfc3339==1.1 + # via + # juju + # macaroonbakery +pytest==8.0.1 + # via + # -r test-requirements.in + # pytest-asyncio + # pytest-operator +pytest-asyncio==0.21.1 + # via pytest-operator +pytest-operator==0.32.0 + # via -r test-requirements.in +python-dateutil==2.8.2 + # via kubernetes +pytz==2024.1 + # via pyrfc3339 +pyyaml==6.0.1 + # via + # juju + # kubernetes + # pytest-operator +requests==2.31.0 + # via + # hvac + # kubernetes + # macaroonbakery + # requests-oauthlib +requests-oauthlib==1.3.1 + # via kubernetes +rsa==4.9 + # via google-auth +six==1.16.0 + # via + # asttokens + # kubernetes + # macaroonbakery + # pymacaroons + # python-dateutil +snowballstemmer==2.2.0 + # via pydocstyle +stack-data==0.6.3 + # via ipython +toposort==1.10 + # via juju +traitlets==5.14.1 + # via + # ipython + # matplotlib-inline +types-pyyaml==6.0.12.12 + # via -r test-requirements.in +types-setuptools==69.1.0.20240223 + # via -r test-requirements.in +types-toml==0.10.8.7 + # via -r test-requirements.in +typing-extensions==4.9.0 + # via + # mypy + # typing-inspect +typing-inspect==0.9.0 + # via juju +urllib3==2.2.1 + # via + # kubernetes + # requests +wcwidth==0.2.13 + # via prompt-toolkit +websocket-client==1.7.0 + # via kubernetes +websockets==12.0 + # via juju