Skip to content
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 = 2.2.2
current_version = 2.2.3
commit = False
tag = False

Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
on:
workflow_dispatch: # Allow manual triggering
pull_request:
push:
branches:
- main

jobs:
versiontag:
runs-on: arc-runner-set
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v5
Expand All @@ -19,7 +16,8 @@ jobs:
diff /tmp/main_version.txt /tmp/version.txt && exit 1 || exit 0

lint:
runs-on: arc-runner-set
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tag_release:
runs-on: arc-runner-set
runs-on: ubuntu-latest
permissions:
contents: write
steps:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install poetry
python3 -m pip install poetry
- name: Parse tag to ENV
run: |
echo RELEASE_TAG=$(poetry version --short) >> ${GITHUB_ENV}
Expand All @@ -30,7 +30,7 @@ jobs:
tag_exists_error: false

publish:
runs-on: arc-runner-set
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.11
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "libpvarki"
version = "2.2.2"
version = "2.2.3"
description = "Common helpers like standard logging init"
authors = ["Eero af Heurlin <eero.afheurlin@iki.fi>"]
homepage = "https://github.com/pvarki/python-libpvarki/"
Expand Down
2 changes: 1 addition & 1 deletion src/libpvarki/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Common helpers like standard logging init"""

__version__ = "2.2.2" # NOTE Use `bump2version --config-file patch` to bump versions correctly
__version__ = "2.2.3" # NOTE Use `bump2version --config-file patch` to bump versions correctly
3 changes: 3 additions & 0 deletions src/libpvarki/mtlshelp/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import ssl
from pathlib import Path
import logging
import functools

from starlette.config import Config

Expand All @@ -14,6 +15,7 @@
# https://github.com/miguelgrinberg/python-socketio/discussions/1040 was very helpful


@functools.cache
def get_ca_context(
purpose: ssl.Purpose,
extra_ca_certs_path: Optional[Path] = None,
Expand All @@ -32,6 +34,7 @@ def get_ca_context(
return ssl_ctx


@functools.cache
def get_ssl_context(
purpose: ssl.Purpose,
client_cert_paths: Optional[Tuple[Path, Path]] = None,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_libpvarki.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

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