Skip to content

Commit

Permalink
chore: Replace bumpversion with bumpver
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc committed Jul 19, 2023
1 parent 093cfa2 commit 667367e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 36 deletions.
20 changes: 0 additions & 20 deletions .bumpversion.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion anta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import importlib.metadata
import os

__version__ = importlib.metadata.version("anta")
__version__ = f"v{importlib.metadata.version('anta')}"
__credits__ = [
"Angélique Phillipps",
"Colin MacGiollaEáin",
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements-and-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ which anta

# Chck ANTA version
anta --version
anta, version 0.6.0
anta, version v0.6.0
```

## EOS Requirements
Expand Down
32 changes: 18 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ requires-python = ">=3.8"

[project.optional-dependencies]
dev = [
"bump2version==1.0.1",
"bumpver==2023.1125",
"black==23.3.0",
"flake8==6.0.0",
"isort==5.10.1",
Expand All @@ -71,19 +71,6 @@ dev = [
"typing-extensions",
"yamllint",
]
doc = [
"mkdocs>=1.3.1",
"mkdocs-autorefs>=0.4.1",
"mkdocs-bootswatch>=1.1",
"mkdocs-git-revision-date-localized-plugin>=1.1.0",
"mkdocs-git-revision-date-plugin>=0.3.2",
"mkdocs-material>=8.3.9",
"mkdocs-material-extensions>=1.0.3",
"mkdocstrings[python]>=0.20.0",
"mdx_truly_sane_lists",
"fontawesome_markdown",
"mike==1.1.2",
]

[project.urls]
Homepage = "https://www.anta.ninja"
Expand All @@ -101,6 +88,23 @@ anta = "anta.cli:cli"
include = ["anta*"]
namespaces = false

################################
# Version
################################
[tool.bumpver]
current_version = "0.6.0"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump: Version {old_version} -> {new_version}"
commit = true
# No tag
tag = false
push = false

[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"', 'version = "v{version}"']
"docs/contribution.md" = ["anta {version}"]
"docs/requirements-and-installation.md " = ["anta, version v{version}"]

################################
# Linting
################################
Expand Down

0 comments on commit 667367e

Please sign in to comment.