Skip to content

Commit

Permalink
Lock file maintenance Python dependencies (canonical#709)
Browse files Browse the repository at this point in the history
* Lock file maintenance Python dependencies

* Fix lib check flow

* Fix lib release

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dragomir Penev <[email protected]>
  • Loading branch information
renovate[bot] and dragomirp authored Sep 26, 2024
1 parent 612240e commit f63df7a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 64 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/lib-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up environment
run: |
pipx install tox
pipx install poetry
pipx inject poetry poetry-plugin-export
# TODO: Remove after https://github.com/python-poetry/poetry/pull/5980 is closed
poetry config warnings.export false
- name: Generate requirements
run: |
tox run -e build-wrapper
mv requirements-last-build.txt requirements.txt
- name: Check libs
uses: canonical/charming-actions/[email protected]
with:
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up environment
run: |
pipx install tox
pipx install poetry
pipx inject poetry poetry-plugin-export
# TODO: Remove after https://github.com/python-poetry/poetry/pull/5980 is closed
poetry config warnings.export false
- name: Generate requirements
run: |
tox run -e build-wrapper
mv requirements-last-build.txt requirements.txt
- name: Release charm libraries
uses: canonical/charming-actions/[email protected]
with:
Expand Down
75 changes: 38 additions & 37 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package-mode = false

[tool.poetry.dependencies]
python = "^3.10"
ops = "^2.16.1"
ops = "^2.17.0"
cryptography = "^43.0.1"
boto3 = "^1.35.25"
boto3 = "^1.35.27"
pgconnstr = "^1.0.1"
requests = "^2.32.3"
tenacity = "^9.0.0"
Expand Down Expand Up @@ -39,7 +39,7 @@ opentelemetry-exporter-otlp-proto-http = "1.21.0"
optional = true

[tool.poetry.group.format.dependencies]
ruff = "^0.6.7"
ruff = "^0.6.8"

[tool.poetry.group.lint]
optional = true
Expand All @@ -65,14 +65,14 @@ optional = true
lightkube = "^0.15.4"
pytest = "^8.3.3"
pytest-github-secrets = {git = "https://github.com/canonical/data-platform-workflows", tag = "v22.0.0", subdirectory = "python/pytest_plugins/github_secrets"}
pytest-operator = "^0.36.0"
pytest-operator = "^0.37.0"
pytest-operator-cache = {git = "https://github.com/canonical/data-platform-workflows", tag = "v22.0.0", subdirectory = "python/pytest_plugins/pytest_operator_cache"}
pytest-operator-groups = {git = "https://github.com/canonical/data-platform-workflows", tag = "v22.0.0", subdirectory = "python/pytest_plugins/pytest_operator_groups"}
allure-pytest-collection-report = {git = "https://github.com/canonical/data-platform-workflows", tag = "v22.0.0", subdirectory = "python/pytest_plugins/allure_pytest_collection_report"}
# renovate caret doesn't work: https://github.com/renovatebot/renovate/issues/26940
juju = "<=3.5.2.0"
psycopg2-binary = "^2.9.9"
boto3 = "^1.35.25"
boto3 = "^1.35.27"
tenacity = "^9.0.0"
allure-pytest = "^2.13.5"

Expand Down

0 comments on commit f63df7a

Please sign in to comment.