Skip to content

Commit 832b837

Browse files
committedMay 10, 2017
Build: use X.XX.X.devXXXXX pattern for versions
To be compliant with pep 0440 https://www.python.org/dev/peps/pep-0440/
1 parent 423f7fa commit 832b837

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎itools/pkg/build.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,15 @@ def make_version(worktree):
117117
# Try to get the branch
118118
branch = worktree.get_branch_name()
119119
branch = branch or 'nobranch'
120-
121120
if tag and tag.startswith(branch):
122121
branch = tag
123-
124122
# Get the timestamp
125123
head = worktree.get_metadata()
126124
timestamp = head['committer_date']
127125
timestamp = timestamp.strftime('%Y%m%d%H%M')
128126

129127
# Build a version from the branch and the timestamp
130-
return '{}-{}'.format(branch, timestamp)
128+
return '{}.dev{}'.format(branch, timestamp)
131129

132130

133131
def build(path, config, environment):

0 commit comments

Comments
 (0)