Skip to content

Commit

Permalink
make: Prepare version management (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 authored Sep 21, 2022
1 parent 8cb5017 commit 39f80e4
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[bumpversion]
current_version = 0.3.0
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}

[bumpversion:part:build]
first_value = 1

[bumpversion:file:anta/__init__.py]

[bumpversion:part:release]
optional_value = gamma
values =
dev
beta
gamma
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,6 @@ venv.bak/

# mkdocs documentation
/site

# vscode settings
.vscode/
19 changes: 16 additions & 3 deletions anta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
anta init
"""

__version__ = '0.1.0'
__author__ = 'Khelil Sator'
__author_email__ = '[email protected]'
__version__ = "0.3.0"
__author__ = "Khelil Sator"
__email__ = "[email protected]"
__maintainer__ = "Khelil Sator"
__credits__ = [
"Angélique Phillipps",
"Colin MacGiollaEáin",
"Khelil Sator",
"Matthieu Tache",
"Onur Gashi",
"Paul Lavelle",
"Guillaume Mulocher",
"Thomas Grimonet"
]
__copyright__ = "Copyright 2022, Arista EMEA AS"
__license__ = "Apache"
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lazydocs
bump2version==1.0.1
pytest
pylint
pytest-cov>=2.11.1
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
install_requires=required,
include_package_data=True,
url="https://github.com/arista-netdevops-community/network-test-automation",
license="APACHE",
license=f"{anta.__license__.upper()}",
author=f"{anta.__author__}",
author_email=f"{anta.__author_email__}",
author_email=f"{anta.__email__}",
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
Expand Down

0 comments on commit 39f80e4

Please sign in to comment.