awspub 0.0.2__py3-none-any.whl → 0.0.4__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.
awspub/cli/__init__.py CHANGED
@@ -57,7 +57,7 @@ def _parser():
57
57
  parser = argparse.ArgumentParser(description="AWS EC2 publication tool")
58
58
  parser.add_argument("--log-level", choices=["info", "debug"], default="info")
59
59
  parser.add_argument("--log-file", type=pathlib.Path, help="write log to given file instead of stdout")
60
- parser.add_argument("--log-console", action=argparse.BooleanOptionalAction, help="write log to stdout")
60
+ parser.add_argument("--log-console", action="store_true", help="write log to stdout")
61
61
  p_sub = parser.add_subparsers(help="sub-command help")
62
62
 
63
63
  # create
awspub/image.py CHANGED
@@ -493,6 +493,10 @@ class Image:
493
493
  else:
494
494
  logger.info(f"image {self.image_name} not marked as public. do not publish")
495
495
 
496
+ # handle SSM parameter store
497
+ if self.conf["ssm_parameter"]:
498
+ self._put_ssm_parameters()
499
+
496
500
  # handle marketplace publication
497
501
  if self.conf["marketplace"]:
498
502
  # the "marketplace" configuration is only valid in the "aws" partition
@@ -515,10 +519,6 @@ class Image:
515
519
  f"currently using partition {partition}. Ignoring marketplace config."
516
520
  )
517
521
 
518
- # handle SSM parameter store
519
- if self.conf["ssm_parameter"]:
520
- self._put_ssm_parameters()
521
-
522
522
  def _verify(self, region: str) -> List[ImageVerificationErrors]:
523
523
  """
524
524
  Verify (but don't modify or create anything) the image in a single region
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: awspub
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: Publish images to AWS EC2
5
5
  Home-page: https://github.com/canonical/awspub
6
6
  License: GPL-3.0-or-later
7
7
  Keywords: AWS,EC2,publication
8
8
  Author: Thomas Bechtold
9
9
  Author-email: thomasbechtold@jpberlin.de
10
- Requires-Python: >=3.9,<4.0
10
+ Requires-Python: >=3.8.1,<4.0.0
11
11
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3.9
@@ -1,10 +1,10 @@
1
1
  awspub/__init__.py,sha256=7hgLrq6k53yaJrjFe7X5Cm45z3SIc1Vxocb5k3G8xPc,124
2
2
  awspub/api.py,sha256=d1gx9LdqdYXRLf8yZ_spIz_93WhB2GNnCG_x3ABrMkI,6497
3
- awspub/cli/__init__.py,sha256=f4lnuDQpUgOgw2xFm2AwahRbXAhnaXNQZJBCTbY9NfQ,5639
3
+ awspub/cli/__init__.py,sha256=-zCBEbnt5zbvSZ8PxQALpPAy0CiQUf-qZnikJ7U4Sf0,5621
4
4
  awspub/configmodels.py,sha256=8JV_fh9VTCSTRcwoqdxXoNFUurn5Q1iTfp-r3u-OLUQ,6869
5
5
  awspub/context.py,sha256=LDkp9Sz5AqRxQq70ICgFIJn5g2qrc5qiVawTyS_rXZE,4064
6
6
  awspub/exceptions.py,sha256=SbGf9XyiGlj6estlraAwWAKLtuEfzwEuAbHXYiCiJD0,447
7
- awspub/image.py,sha256=zVmf_g3JU1CJ2kQCLtRxFumxxmt2vyKDn_NYwINt8B0,25763
7
+ awspub/image.py,sha256=FRw8CyYo0RBh-ik4I9W4TmaF0LJ2TpgeddwalidlQKA,25763
8
8
  awspub/image_marketplace.py,sha256=oiD7yNU5quG5CQG9Ql5Ut9hLWA1yewg6qVwTbyadGwc,5314
9
9
  awspub/s3.py,sha256=vnel5UtASHK_mkGuZDnA1IydWCLD_TCZ_WyWwAds9F8,11271
10
10
  awspub/snapshot.py,sha256=V5e_07SnmCwEPjRmwZh43spWparhH8X4ugG16uQfGuo,10040
@@ -24,8 +24,8 @@ awspub/tests/test_image.py,sha256=4z7UmcUhFBXCFX-iGz4FbHp7mgm_JNTTJsHSONMbwi0,16
24
24
  awspub/tests/test_image_marketplace.py,sha256=JP7PrFjix1AyQg7eEaQ-wCROVoIOb873koseniOqGQQ,1456
25
25
  awspub/tests/test_s3.py,sha256=UJL8CQDEvhA42MwPGeSvSbQFj8h86c1LrLFDvcMcRws,2857
26
26
  awspub/tests/test_snapshot.py,sha256=8KPTqGVyzrpivWuq3HE7ZhgtLllcr3rA_3hZcxu2xjg,4123
27
- awspub-0.0.2.dist-info/LICENSE,sha256=9GbrzFQ3rWjVKj-IZnX1kGDsIGIdjc25KGRmAp03Jn0,35150
28
- awspub-0.0.2.dist-info/METADATA,sha256=eU7ji4JSlU1OKOdZz-09_K63uMwn3P1cLwFPcxFiIOQ,1769
29
- awspub-0.0.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- awspub-0.0.2.dist-info/entry_points.txt,sha256=hrQzy9P5yO58nj6W0UDPdQPUTqEkQLpMvuyDDRu7LRQ,42
31
- awspub-0.0.2.dist-info/RECORD,,
27
+ awspub-0.0.4.dist-info/LICENSE,sha256=9GbrzFQ3rWjVKj-IZnX1kGDsIGIdjc25KGRmAp03Jn0,35150
28
+ awspub-0.0.4.dist-info/METADATA,sha256=FnuoxZOfvW7AtbWTySouXFSiQ_FkcMbvd8mtKkczj-s,1773
29
+ awspub-0.0.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ awspub-0.0.4.dist-info/entry_points.txt,sha256=hrQzy9P5yO58nj6W0UDPdQPUTqEkQLpMvuyDDRu7LRQ,42
31
+ awspub-0.0.4.dist-info/RECORD,,
File without changes