Skip to content

Commit 5ccc41e

Browse files
removing hard-coded version
1 parent ed258e8 commit 5ccc41e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

PMJPL/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
from .PMJPL import *
2+
from .version import __version__
23

3-
from os.path import join, abspath, dirname
4-
5-
with open(join(abspath(dirname(__file__)), "version.txt")) as f:
6-
version = f.read()
7-
8-
__version__ = version
94
__author__ = "Gregory H. Halverson"

PMJPL/version.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from os.path import join, abspath, dirname
2+
3+
from importlib.metadata import version
4+
__version__ = version("PMJPL")

PMJPL/version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)