From e2f88fb5088818731b03e7b5404d6b9edc883ee4 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 25 Jun 2024 22:52:36 +0300 Subject: [PATCH 1/2] Replace hardcoded and outdated __version__ --- LICENSE.txt | 1 - src/blurb/__init__.py | 3 +++ src/blurb/blurb.py | 5 ++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index cb9d831..bbf4299 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,3 @@ -blurb version 1.0 Part of the blurb package. Copyright 2015-2018 by Larry Hastings diff --git a/src/blurb/__init__.py b/src/blurb/__init__.py index e69de29..63dfcac 100644 --- a/src/blurb/__init__.py +++ b/src/blurb/__init__.py @@ -0,0 +1,3 @@ +import importlib.metadata + +__version__ = importlib.metadata.version(__name__) diff --git a/src/blurb/blurb.py b/src/blurb/blurb.py index cb1c4c8..4930bb4 100755 --- a/src/blurb/blurb.py +++ b/src/blurb/blurb.py @@ -1,9 +1,6 @@ #!/usr/bin/env python3 """Command-line tool to manage CPython Misc/NEWS.d entries.""" -__version__ = "1.1.0" - ## -## blurb version 1.0 ## Part of the blurb package. ## Copyright 2015-2018 by Larry Hastings ## @@ -62,6 +59,8 @@ import time import unittest +from . import __version__ + # # This template is the canonical list of acceptable section names! From 245cb3642eba4064ea82d4f4ae96a08ddf8f318a Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 25 Jun 2024 12:57:54 +0300 Subject: [PATCH 2/2] Temporarily remove 3.13 from CI pending pytest-dev/pyfakefs#1017 --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 388811d..5c2d790 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,9 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + # Temporarily remove 3.13 pending: + # https://github.com/pytest-dev/pyfakefs/issues/1017 + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4