Skip to content

Commit e2f88fb

Browse files
committed
Replace hardcoded and outdated __version__
1 parent 68193f0 commit e2f88fb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

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)