Skip to content

Commit

Permalink
Update Python dependencies (canonical#236)
Browse files Browse the repository at this point in the history
* Update Python dependencies

* Spelling

* Bump lock

---------

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 Oct 9, 2023
1 parent ffe666c commit df2d564
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 365 deletions.
2 changes: 1 addition & 1 deletion charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ parts:
- cargo
- pkg-config
charm-binary-python-packages:
- psycopg2-binary==2.9.7 # renovate
- psycopg2-binary==2.9.8 # renovate
672 changes: 327 additions & 345 deletions poetry.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,41 @@ repository = "https://github.com/canonical/postgresql-operator"

[tool.poetry.dependencies]
python = "^3.10.6"
ops = "2.6.0"
ops = "2.7.0"
cryptography = "41.0.4"
boto3 = "1.28.53"
boto3 = "1.28.59"
pgconnstr = "1.0.1"
requests = "2.31.0"
tenacity = "8.2.3"
pyOpenSSL = "23.2.0"
# psycopg2 = "2.9.5" # Injected in charmcraft.yaml
cosl = "0.0.7"
packaging = "23.1"
pydantic = "1.10.12"
packaging = "23.2"
pydantic = "1.10.13"
poetry-core = "1.7.0"

[tool.poetry.group.format]
optional = true

[tool.poetry.group.format.dependencies]
black = "23.9.1"
ruff = "0.0.291"
ruff = "0.0.292"

[tool.poetry.group.lint]
optional = true

[tool.poetry.group.lint.dependencies]
codespell = "2.2.5"
codespell = "2.2.6"

[tool.poetry.group.unit]
optional = true

[tool.poetry.group.unit.dependencies]
coverage = {extras = ["toml"], version = "7.3.1"}
coverage = {extras = ["toml"], version = "7.3.2"}
pytest = "7.4.2"
pytest-asyncio = "0.21.1"
jsonschema = "4.19.1"
psycopg2 = {version = "2.9.7", extras = ["binary"]}
psycopg2 = {version = "2.9.8", extras = ["binary"]}
jinja2 = "3.1.2"

[tool.poetry.group.integration]
Expand Down
18 changes: 9 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
boto3==1.28.53 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
botocore==1.31.53 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
boto3==1.28.59 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
botocore==1.31.59 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
certifi==2023.7.22 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
cffi==1.15.1 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
charset-normalizer==3.2.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
cffi==1.16.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
charset-normalizer==3.3.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
cosl==0.0.7 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
cryptography==41.0.4 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
idna==3.4 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
jmespath==1.0.1 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
ops==2.6.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
packaging==23.1 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
ops==2.7.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
packaging==23.2 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
pgconnstr==1.0.1 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
poetry-core==1.7.0 ; python_full_version >= "3.10.6" and python_version < "4.0"
pycparser==2.21 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
pydantic==1.10.12 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
pydantic==1.10.13 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
pyopenssl==23.2.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
python-dateutil==2.8.2 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
pyyaml==6.0.1 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
requests==2.31.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
s3transfer==0.6.2 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
s3transfer==0.7.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
six==1.16.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
tenacity==8.2.3 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
typing-extensions==4.8.0 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
urllib3==1.26.16 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
urllib3==1.26.17 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
websocket-client==1.6.3 ; python_full_version >= "3.10.6" and python_full_version < "4.0.0"
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def _juju_secret_set(self, scope: str, key: str, value: str) -> str:

secret = self.secrets[scope].get(SECRET_LABEL)

# It's not the first secret for the scope, we can re-use the existing one
# It's not the first secret for the scope, we can reuse the existing one
# that was fetched in the previous call
if secret:
secret_cache = self.secrets[scope][SECRET_CACHE_LABEL]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/ha_tests/test_self_healing.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def test_storage_re_use(ops_test, continuous_writes):
app = await app_name(ops_test)
if storage_type(ops_test, app) == "rootfs":
pytest.skip(
"re-use of storage can only be used on deployments with persistent storage not on rootfs deployments"
"reuse of storage can only be used on deployments with persistent storage not on rootfs deployments"
)

# removing the only replica can be disastrous
Expand Down

0 comments on commit df2d564

Please sign in to comment.