awspub 0.0.2__tar.gz → 0.0.4__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.
Files changed (30) hide show
  1. {awspub-0.0.2 → awspub-0.0.4}/PKG-INFO +2 -2
  2. {awspub-0.0.2 → awspub-0.0.4}/awspub/cli/__init__.py +1 -1
  3. {awspub-0.0.2 → awspub-0.0.4}/pyproject.toml +3 -2
  4. {awspub-0.0.2 → awspub-0.0.4}/LICENSE +0 -0
  5. {awspub-0.0.2 → awspub-0.0.4}/awspub/__init__.py +0 -0
  6. {awspub-0.0.2 → awspub-0.0.4}/awspub/api.py +0 -0
  7. {awspub-0.0.2 → awspub-0.0.4}/awspub/configmodels.py +0 -0
  8. {awspub-0.0.2 → awspub-0.0.4}/awspub/context.py +0 -0
  9. {awspub-0.0.2 → awspub-0.0.4}/awspub/exceptions.py +0 -0
  10. {awspub-0.0.2 → awspub-0.0.4}/awspub/image.py +4 -4
  11. {awspub-0.0.2 → awspub-0.0.4}/awspub/image_marketplace.py +0 -0
  12. {awspub-0.0.2 → awspub-0.0.4}/awspub/s3.py +0 -0
  13. {awspub-0.0.2 → awspub-0.0.4}/awspub/snapshot.py +0 -0
  14. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/__init__.py +0 -0
  15. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config-invalid-s3-extra.yaml +0 -0
  16. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config-minimal.yaml +0 -0
  17. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config-valid-nonawspub.yaml +0 -0
  18. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config1.vmdk +0 -0
  19. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config1.yaml +0 -0
  20. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config2-mapping.yaml +0 -0
  21. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config2.yaml +0 -0
  22. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/fixtures/config3-duplicate-keys.yaml +0 -0
  23. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/test_api.py +0 -0
  24. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/test_cli.py +0 -0
  25. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/test_context.py +0 -0
  26. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/test_image.py +0 -0
  27. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/test_image_marketplace.py +0 -0
  28. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/test_s3.py +0 -0
  29. {awspub-0.0.2 → awspub-0.0.4}/awspub/tests/test_snapshot.py +0 -0
  30. {awspub-0.0.2 → awspub-0.0.4}/readme.rst +0 -0
@@ -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
@@ -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
@@ -4,7 +4,7 @@ build-backend = "poetry_dynamic_versioning.backend"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "awspub"
7
- version = "0.0.2"
7
+ version = "0.0.4"
8
8
  description = "Publish images to AWS EC2"
9
9
 
10
10
  license = "GPL-3.0-or-later"
@@ -20,7 +20,8 @@ keywords = ["AWS", "EC2", "publication"]
20
20
 
21
21
 
22
22
  [tool.poetry.dependencies]
23
- python = "^3.9"
23
+ # use 3.8.1 instead of 3.8 to get a new flake8 version which fixes problems with false positive on python 3.12
24
+ python = "^3.8.1"
24
25
  boto3 = "*"
25
26
  pydantic = "^2"
26
27
  boto3-stubs = {extras = ["essential", "marketplace-catalog", "ssm", "s3"], version = "^1.28.83"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes