Skip to content

Commit 2964e07

Browse files
authored
Replace hardcoded and outdated __version__ (#17)
2 parents 68193f0 + 245cb36 commit 2964e07

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
14+
# Temporarily remove 3.13 pending:
15+
# https://github.com/pytest-dev/pyfakefs/issues/1017
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1517

1618
steps:
1719
- uses: actions/checkout@v4

LICENSE.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
blurb version 1.0
21
Part of the blurb package.
32
Copyright 2015-2018 by Larry Hastings
43

src/blurb/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import importlib.metadata
2+
3+
__version__ = importlib.metadata.version(__name__)

src/blurb/blurb.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/usr/bin/env python3
22
"""Command-line tool to manage CPython Misc/NEWS.d entries."""
3-
__version__ = "1.1.0"
4-
53
##
6-
## blurb version 1.0
74
## Part of the blurb package.
85
## Copyright 2015-2018 by Larry Hastings
96
##
@@ -62,6 +59,8 @@
6259
import time
6360
import unittest
6461

62+
from . import __version__
63+
6564

6665
#
6766
# This template is the canonical list of acceptable section names!

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy