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.1.0
current_version = 2.1.1
commit = False
tag = False

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

jobs:
versiontag:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Check version tag
run: |
curl -f https://raw.githubusercontent.com/pvarki/python-libpvarki/main/pyproject.toml -o /tmp/main_pyproject.toml || touch /tmp/main_pyproject.toml
Expand All @@ -20,7 +21,7 @@ jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: "3.11" # TODO: the current pylint version fails on py3.12
Expand All @@ -38,7 +39,7 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
30 changes: 28 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create tag for release
name: Tag release and publish to Nexus

on:
workflow_dispatch: # Allow manual triggering
Expand All @@ -13,7 +13,7 @@ jobs:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -28,3 +28,29 @@ jobs:
with:
tag: ${{ env.RELEASE_TAG }}
tag_exists_error: false

publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry twine
- name: build dist
run: |
poetry build -f sdist
poetry build -f wheel
- name: Upload
if: ${{ !env.ACT }}
env:
TWINE_REPOSITORY_URL: https://nexus.dev.pvarki.fi/repository/pypilocal/
TWINE_USERNAME: nexusbot
TWINE_PASSWORD: ${{ secrets.NEXUSBOT_PAT }}
TWINE_NON_INTERACTIVE: 1
run: |
twine upload dist/*
220 changes: 147 additions & 73 deletions poetry.lock

Large diffs are not rendered by default.

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.1.0"
version = "2.1.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
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.1.0" # NOTE Use `bump2version --config-file patch` to bump versions correctly
__version__ = "2.1.1" # NOTE Use `bump2version --config-file patch` to bump versions correctly
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.1.0"
assert __version__ == "2.1.1"
Loading