Skip to content

Commit

Permalink
chore: bump to version 0.10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
uptickmetachu committed Jul 18, 2024
1 parent 950048f commit b5abbcc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/gitops/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: GitOps Server Helm chart.
name: gitops
version: 0.10.6
version: 0.10.7
6 changes: 3 additions & 3 deletions gitops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
from . import monkeypatches # NOQA
from .utils.cli import success, warning

__version__ = "0.10.6"
__version__ = "0.10.7"


# Checking gitops version matches cluster repo version.
versions_path = Path(os.environ.get("GITOPS_APPS_DIRECTORY", "apps")).parent.absolute() / "setup.cfg"
if versions_path.exists():
import configparser

from pkg_resources.extern.packaging.version import parse as parse_version
from packaging.version import parse

config = configparser.RawConfigParser()
config.read(versions_path)
if "gitops.versions" in config:
min_gitops_version = config.get("gitops.versions", "gitops")
if parse_version(__version__) < parse_version(min_gitops_version):
if parse(__version__) < parse(min_gitops_version):
print(warning("Please upgrade Gitops."), file=sys.stderr)
print(
f"Your current version {success(__version__)} is less than the clusters minimum"
Expand Down
5 changes: 2 additions & 3 deletions gitops/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import pkg_resources
from invoke import Collection, Program, Task

from . import core, db, shorthands
from . import __version__, core, db, shorthands

version = pkg_resources.require("gitops")[0].version
version = __version__

namespace = Collection()

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gitops"
version = "0.10.6"
version = "0.10.7"
description = "Manage multiple apps across one or more k8s clusters."
authors = ["Jarek Głowacki <[email protected]>"]
license = "BSD"
Expand Down

0 comments on commit b5abbcc

Please sign in to comment.