From 496c40933969299fe394a607102bba037360f571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 24 Jul 2024 15:51:10 +0200 Subject: [PATCH 1/3] Add smoke test to run on python 3.9-3.12 --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e659117..3a74e4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,8 +63,16 @@ jobs: name: Install the package runs-on: "ubuntu-latest" needs: build + strategy: + fail-fast: false + matrix: + python_version: ["3.9", "3.10", "3.11", "3.12"] steps: + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python_version }} + - uses: actions/download-artifact@v4 with: name: wheel From 60a8993aa370aeb38b8dd1683d96e67e1aae7bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 24 Jul 2024 15:55:31 +0200 Subject: [PATCH 2/3] Fix compatibility with Python 3.9 --- src/opensuse_distro_aliases/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/opensuse_distro_aliases/__init__.py b/src/opensuse_distro_aliases/__init__.py index 708b4fa..4b241e8 100644 --- a/src/opensuse_distro_aliases/__init__.py +++ b/src/opensuse_distro_aliases/__init__.py @@ -3,6 +3,7 @@ from typing import Dict from typing import List from typing import Literal +from typing import Optional from typing import TypedDict from typing import Union @@ -25,7 +26,7 @@ class Distro: namever: str #: main project on build.opensuse.org from which this distribution is built - obs_project_name: str | None + obs_project_name: Optional[str] class _Release(TypedDict): From 6978f7ea5985b11393476756d42ef6725fab562d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 24 Jul 2024 15:56:11 +0200 Subject: [PATCH 3/3] Bump version to 0.1.3 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fb0a022..57da0ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "opensuse-distro-aliases" -version = "0.1.2" +version = "0.1.3" description = "Aliases for active openSUSE releases" authors = ["Dan Čermák "] license = "MIT"