c2cciutils 1.4.26.dev3__py3-none-any.whl → 1.4.26.dev5__py3-none-any.whl

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.
@@ -5,8 +5,8 @@ The main function of some utilities.
5
5
  """
6
6
 
7
7
  import argparse
8
+ from importlib.metadata import version
8
9
 
9
- import pkg_resources
10
10
  import yaml
11
11
 
12
12
  import c2cciutils
@@ -29,8 +29,8 @@ def main() -> None:
29
29
  if args.version:
30
30
  for pkg in ("c2cciutils", "black", "isort", "codespell"):
31
31
  try:
32
- print(f"{pkg} {pkg_resources.get_distribution(pkg).version}")
33
- except pkg_resources.DistributionNotFound:
32
+ print(f"{pkg} {version(pkg)}")
33
+ except Exception: # pylint: disable=broad-except
34
34
  print(f"{pkg} missing")
35
35
 
36
36
  if args.ls_files_mime:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cciutils
3
- Version: 1.4.26.dev3
3
+ Version: 1.4.26.dev5
4
4
  Summary: Common utilities for Camptocamp CI
5
5
  Home-page: https://github.com/camptocamp/c2cciutils
6
6
  License: FreeBSD
@@ -739,14 +739,14 @@ c2cciutils/scripts/k8s/db.py,sha256=LLpDpSLywMsf1j8wmgirZUk7vvJ6GOseMCbeIU87Nws,
739
739
  c2cciutils/scripts/k8s/install.py,sha256=dP6uECuNp8eUAOb3lEtVYrD5IK8v_assEQloJBHnHc8,921
740
740
  c2cciutils/scripts/k8s/logs.py,sha256=-xJYu8BBUmSmMrPEwiTBKZjJBRyIlMp1depCB04_NWs,2655
741
741
  c2cciutils/scripts/k8s/wait.py,sha256=qzQn6hbB9p1CX4bUxrkukPnbu_p6oRNem29WiMtplNk,5661
742
- c2cciutils/scripts/main.py,sha256=prnGuq1JBrQsDKzd6YNMhEWETOmF3lWU3Z3oH1udZkg,1175
742
+ c2cciutils/scripts/main.py,sha256=mbFa2ZxjSJYBdIS868TLEFaACaJN1q57KaSX5axtuYo,1169
743
743
  c2cciutils/scripts/pin_pipenv.py,sha256=jBTwlolcEL0MUyq6VYzO-adkcL1gqN7B3kBb3UjTo2k,2150
744
744
  c2cciutils/scripts/pr_checks.py,sha256=asZVohDyk0yGeCDVH2G36qaUPVwtvepSpwAipZPr6SM,2113
745
745
  c2cciutils/scripts/publish.py,sha256=me22IthKtJZKvtKvAdX8FK71x95JGiP2aoNWSxZfnC8,15557
746
746
  c2cciutils/scripts/trigger_image_update.py,sha256=yYa0BLn-LGrQ1GXlvI5ok8qbV-yCJ12UObS857SuXcc,2804
747
747
  c2cciutils/security.py,sha256=k5piTZf6HWIPEAf63vbE06vZKJ62CSS7e_6WXHf4o7Q,1517
748
- c2cciutils-1.4.26.dev3.dist-info/LICENSE.txt,sha256=LhyHWfYtFF6MLo5fMaABBHNFmU4Sb3HwWC_qpvo-2QQ,1668
749
- c2cciutils-1.4.26.dev3.dist-info/METADATA,sha256=WDvHBAiAhOXE55TQgGB1t3ytGm_MV6ONLVWkTOv7bE0,17319
750
- c2cciutils-1.4.26.dev3.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
751
- c2cciutils-1.4.26.dev3.dist-info/entry_points.txt,sha256=HahcOZlCfYF4B95pG1CRD_noaFmhDzEoN5YqxLyucyE,939
752
- c2cciutils-1.4.26.dev3.dist-info/RECORD,,
748
+ c2cciutils-1.4.26.dev5.dist-info/LICENSE.txt,sha256=LhyHWfYtFF6MLo5fMaABBHNFmU4Sb3HwWC_qpvo-2QQ,1668
749
+ c2cciutils-1.4.26.dev5.dist-info/METADATA,sha256=bQ8VcM2qVtrIsXQN9kaRz24JN9B06BhjDnRxVKBLbaA,17319
750
+ c2cciutils-1.4.26.dev5.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
751
+ c2cciutils-1.4.26.dev5.dist-info/entry_points.txt,sha256=HahcOZlCfYF4B95pG1CRD_noaFmhDzEoN5YqxLyucyE,939
752
+ c2cciutils-1.4.26.dev5.dist-info/RECORD,,