Use Version from spec file in setup.py

- If envvar PODMAN_VERSION not set use default version of 0.0.0

Signed-off-by: Jhon Honce <jhonce@redhat.com>

Closes: #807
Approved by: rhatdan
This commit is contained in:
Jhon Honce
2018-05-18 11:43:22 -07:00
committed by Atomic Bot
parent 2446ebc70f
commit 727ecfeadf
2 changed files with 3 additions and 2 deletions

View File

@ -11,9 +11,10 @@ with open(os.path.join(root, 'README.md')) as me:
with open(os.path.join(root, 'requirements.txt')) as r:
requirements = r.read().splitlines()
setup(
name='podman',
version='0.1.0',
version=os.environ.get('PODMAN_VERSION', '0.0.0'),
description='A client for communicating with a Podman server',
long_description=readme,
author='Jhon Honce',