gitops 0.10.6__tar.gz → 0.10.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gitops
3
- Version: 0.10.6
3
+ Version: 0.10.7
4
4
  Summary: Manage multiple apps across one or more k8s clusters.
5
5
  License: BSD
6
6
  Author: Jarek Głowacki
@@ -5,7 +5,7 @@ from pathlib import Path
5
5
  from . import monkeypatches # NOQA
6
6
  from .utils.cli import success, warning
7
7
 
8
- __version__ = "0.10.6"
8
+ __version__ = "0.10.7"
9
9
 
10
10
 
11
11
  # Checking gitops version matches cluster repo version.
@@ -13,13 +13,13 @@ versions_path = Path(os.environ.get("GITOPS_APPS_DIRECTORY", "apps")).parent.abs
13
13
  if versions_path.exists():
14
14
  import configparser
15
15
 
16
- from pkg_resources.extern.packaging.version import parse as parse_version
16
+ from packaging.version import parse
17
17
 
18
18
  config = configparser.RawConfigParser()
19
19
  config.read(versions_path)
20
20
  if "gitops.versions" in config:
21
21
  min_gitops_version = config.get("gitops.versions", "gitops")
22
- if parse_version(__version__) < parse_version(min_gitops_version):
22
+ if parse(__version__) < parse(min_gitops_version):
23
23
  print(warning("Please upgrade Gitops."), file=sys.stderr)
24
24
  print(
25
25
  f"Your current version {success(__version__)} is less than the clusters minimum"
@@ -1,9 +1,8 @@
1
- import pkg_resources
2
1
  from invoke import Collection, Program, Task
3
2
 
4
- from . import core, db, shorthands
3
+ from . import __version__, core, db, shorthands
5
4
 
6
- version = pkg_resources.require("gitops")[0].version
5
+ version = __version__
7
6
 
8
7
  namespace = Collection()
9
8
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "gitops"
3
- version = "0.10.6"
3
+ version = "0.10.7"
4
4
  description = "Manage multiple apps across one or more k8s clusters."
5
5
  authors = ["Jarek Głowacki <jarekwg@gmail.com>"]
6
6
  license = "BSD"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes