-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[setup.py] Updating versioning strategy to consider the master branch…
… 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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', | ||
|
@@ -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+)", | ||
], | ||
) |