Skip to content

Commit cbf51cf

Browse files
authored
Merge pull request #123 from ComputerScienceHouse/version-bump
Use setup.cfg as version source of truth
2 parents 95a8b76 + 4410d01 commit cbf51cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gallery/_version.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from os import environ as env
2+
from setuptools.config.setupcfg import read_configuration
23

3-
__version__ = "2.2.0"
4+
config = read_configuration('setup.cfg')
5+
__version__ = config["metadata"]["version"]
46

57
BUILD_REFERENCE = env.get("OPENSHIFT_BUILD_REFERENCE")
68
COMMIT_HASH = env.get("OPENSHIFT_BUILD_COMMIT")

0 commit comments

Comments
 (0)