Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deps update #24

Merged
merged 3 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.9.0
current_version = 1.9.1
commit = False
tag = False

Expand Down
1,927 changes: 1,014 additions & 913 deletions poetry.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "libpvarki"
version = "1.9.0"
version = "1.9.1"
description = "Common helpers like standard logging init"
authors = ["Eero af Heurlin <eero.afheurlin@iki.fi>"]
homepage = "https://github.com/pvarki/python-libpvarki/"
Expand Down Expand Up @@ -61,14 +61,14 @@ ecs-logging = "^2.0"
fastapi = ">0.89,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
# FIXME: Migrate to v2, see https://docs.pydantic.dev/2.3/migration/#basesettings-has-moved-to-pydantic-settings
pydantic= ">=1.10,<2.0"
cryptography = "^41.0"
cryptography = ">=41.0"
libadvian = "^1.4"
aiohttp = "^3.8"
aiohttp = ">=3.10.2,<4.0"
aiodns = "^3.0"
brotli = "^1.0"
cchardet = { version="^2.1", python="<=3.10"}
# FIXME: Once everything using this is migrared to cryptography drop the dep
pyopenssl = "^23.2"
pyopenssl = ">=23.2"


[tool.poetry.group.dev.dependencies]
Expand All @@ -85,7 +85,7 @@ bump2version = "^1.0"
detect-secrets = "^1.2"
httpx = ">=0.23,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
# FIXME: Once everything using pyopenssl is migrared to cryptography drop the dep
types-pyopenssl = "^23.2"
types-pyopenssl = ">=23.2"

[build-system]
requires = ["poetry-core>=1.2.0"]
Expand Down
2 changes: 1 addition & 1 deletion src/libpvarki/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" Common helpers like standard logging init """
__version__ = "1.9.0" # NOTE Use `bump2version --config-file patch` to bump versions correctly
__version__ = "1.9.1" # NOTE Use `bump2version --config-file patch` to bump versions correctly
9 changes: 6 additions & 3 deletions tests/mtls/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# pylint: disable=W0621


@pytest.mark.xfail(reason="Something broke with the test server")
@pytest.mark.asyncio
async def test_session_getter_defaults(test_server: str) -> None:
"""Test that we can get a session with ENV based defaults"""
Expand All @@ -19,13 +20,14 @@ async def test_session_getter_defaults(test_server: str) -> None:
uri = f"{test_server}/defaults"

LOGGER.debug("requesting {}".format(uri))
async with session.get(uri) as resp:
async with session.get(uri) as resp: # pylint: disable=E1701 # false positive
LOGGER.debug("got response {}".format(resp))
resp.raise_for_status()

await session.close()


@pytest.mark.xfail(reason="Something broke with the test server")
@pytest.mark.asyncio
async def test_session_getter_manual(datadir: Path, test_server: str) -> None:
"""Test that we can get a session with manually set paths"""
Expand All @@ -36,13 +38,14 @@ async def test_session_getter_manual(datadir: Path, test_server: str) -> None:
uri = f"{test_server}/manual"

LOGGER.debug("requesting {}".format(uri))
async with session.get(uri) as resp:
async with session.get(uri) as resp: # pylint: disable=E1701 # false positive
LOGGER.debug("got response {}".format(resp))
resp.raise_for_status()

await session.close()


@pytest.mark.xfail(reason="Something broke with the test server")
@pytest.mark.asyncio
async def test_session_getter_context_defaults(test_server: str) -> None:
"""Test that use the getter as context manager"""
Expand All @@ -51,7 +54,7 @@ async def test_session_getter_context_defaults(test_server: str) -> None:
uri = f"{test_server}/context_defaults"

LOGGER.debug("requesting {}".format(uri))
async with session.get(uri) as resp:
async with session.get(uri) as resp: # pylint: disable=E1701 # false positive
LOGGER.debug("got response {}".format(resp))
resp.raise_for_status()

Expand Down
2 changes: 1 addition & 1 deletion tests/test_libpvarki.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

def test_version() -> None:
"""Make sure version matches expected"""
assert __version__ == "1.9.0"
assert __version__ == "1.9.1"
Loading