Skip to content

Commit

Permalink
[setup.py] Updating versioning strategy to consider the master branch…
Browse files Browse the repository at this point in the history
… as alpha releases.
  • Loading branch information
Murilo Marinho authored and Murilo Marinho committed Nov 29, 2021
1 parent ef7da34 commit 510e57c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
# Automatic name branching
def format_branch_name(name):
if name == "master":
return "dev"
# The master branch is considered an Alpha release
return "a"
elif name == "release":
return ""
else:
Expand Down Expand Up @@ -72,10 +73,12 @@ def build_extension(self, ext):
setup(
name='dqrobotics',
version_config={
"template": "{tag}.{branch}{ccount}",
"dev_template": "{tag}.{branch}{ccount}",
"dirty_template": "{tag}.{branch}{ccount}",
"branch_formatter": format_branch_name,
},
version_format='{tag}.{branch}{commitcount}',
setup_requires=['setuptools-git-version'],
setup_requires=['setuptools-git-versioning'],
author='Murilo Marinho',
author_email='[email protected]',
description='DQRobotics python',
Expand Down Expand Up @@ -105,6 +108,6 @@ def build_extension(self, ext):
"Programming Language :: C++",
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
],
)

0 comments on commit 510e57c

Please sign in to comment.