Commit d0f1e7b8 authored by Pavel Kuzmenko's avatar Pavel Kuzmenko
Browse files

fix: #4 add release candidate version

parent 717faa54
......@@ -2,7 +2,7 @@
import os
from setuptools import find_packages, setup
from subprocess import check_output
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
requirements = ''
......@@ -11,9 +11,16 @@ with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
requirements += line
def version_format():
branch = check_output('git branch --show-current'.split()).decode('utf-8').strip()
if branch == 'master':
return '{tag}.dev{commitcount}'
return '{tag}'
setup(
name='prozorro-metrics',
version_format='{tag}',
version_format=version_format(),
setup_requires=['setuptools-git-version'],
packages=find_packages('src'),
package_dir={'': 'src'},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment