Skip to content

Commit

Permalink
Dev: unify version string used in setup.py and autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Dec 1, 2023
1 parent 576a86e commit ef418e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Expand Up @@ -2,9 +2,16 @@
# Note that this script only installs the python modules,
# the other parts of crmsh are installed by autotools
from setuptools import setup
import contextlib

VERSION = '0.0.1'

with contextlib.suppress(Exception):
with open('version', 'r', encoding='ascii') as f:
VERSION = f.read().strip()

setup(name='crmsh',
version='4.5.0',
version=VERSION,
description='Command-line interface for High-Availability cluster management',
author='Kristoffer Gronlund, Xin Liang',
author_email='XLiang@suse.com',
Expand Down

0 comments on commit ef418e1

Please sign in to comment.