Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
prozorro-sale
Prozorro metrics
Commits
d0f1e7b8
Commit
d0f1e7b8
authored
Mar 12, 2021
by
Pavel Kuzmenko
Browse files
fix:
#4
add release candidate version
parent
717faa54
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
d0f1e7b8
...
...
@@ -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'
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment