mantis-cli 15.2.0__tar.gz → 15.3.0__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 (26) hide show
  1. {mantis-cli-15.2.0/mantis_cli.egg-info → mantis-cli-15.3.0}/PKG-INFO +1 -1
  2. mantis-cli-15.3.0/mantis/__init__.py +1 -0
  3. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/managers.py +3 -1
  4. {mantis-cli-15.2.0 → mantis-cli-15.3.0/mantis_cli.egg-info}/PKG-INFO +1 -1
  5. mantis-cli-15.2.0/mantis/__init__.py +0 -1
  6. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/LICENSE +0 -0
  7. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/MANIFEST.in +0 -0
  8. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/README.md +0 -0
  9. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/__main__.py +0 -0
  10. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/command_line.py +0 -0
  11. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/crypto.py +0 -0
  12. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/environment.py +0 -0
  13. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/extensions/__init__.py +0 -0
  14. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/extensions/django.py +0 -0
  15. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/extensions/nginx.py +0 -0
  16. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/extensions/postgres.py +0 -0
  17. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/helpers.py +0 -0
  18. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/logic.py +0 -0
  19. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis/mantis.tpl +0 -0
  20. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis_cli.egg-info/SOURCES.txt +0 -0
  21. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis_cli.egg-info/dependency_links.txt +0 -0
  22. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis_cli.egg-info/entry_points.txt +0 -0
  23. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis_cli.egg-info/requires.txt +0 -0
  24. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/mantis_cli.egg-info/top_level.txt +0 -0
  25. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/setup.cfg +0 -0
  26. {mantis-cli-15.2.0 → mantis-cli-15.3.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 15.2.0
3
+ Version: 15.3.0
4
4
  Summary: Management command to build and deploy webapps, especially based on Django
5
5
  Home-page: https://github.com/PragmaticMates/mantis-cli
6
6
  Author: Erik Telepovský
@@ -0,0 +1 @@
1
+ VERSION = '15.3.0'
@@ -668,6 +668,7 @@ class BaseManager(AbstractManager):
668
668
  for service, info in self.services_to_build().items():
669
669
  platform = f"--platform={info['platform']}" if info['platform'] != '' else ''
670
670
  cache_from = ' '.join([f"--cache-from={cache}" for cache in info['cache_from']]) if info['cache_from'] != [] else ''
671
+ args = ' '.join([f"--build-arg {key}={value}" for key, value in info['args'].items()]) if info['args'] != {} else ''
671
672
  image = info['image'] if info['image'] != '' else f'{self.PROJECT_NAME}-{service}'.lstrip('-')
672
673
 
673
674
  # build paths for docker build command (paths in compose are relative to compose file, but paths for docker command are relative to $PWD)
@@ -675,7 +676,7 @@ class BaseManager(AbstractManager):
675
676
  dockerfile = normpath(path.join(context, info['dockerfile']))
676
677
 
677
678
  # Build service using docker
678
- self.docker(f"build {context} {build_args} {platform} {cache_from} -t {image} -f {dockerfile} {params}",
679
+ self.docker(f"build {context} {build_args} {args} {platform} {cache_from} -t {image} -f {dockerfile} {params}",
679
680
  use_connection=False)
680
681
  else:
681
682
  CLI.error(f'Unknown build tool: {build_tool}. Available tools: {", ".join(available_tools)}')
@@ -707,6 +708,7 @@ class BaseManager(AbstractManager):
707
708
  'dockerfile': build.get('dockerfile', 'Dockerfile'),
708
709
  'context': build.get('context', '.'),
709
710
  'cache_from': build.get('cache_from', []),
711
+ 'args': build.get('args', {}),
710
712
  'image': service_config.get('image', ''),
711
713
  'platform': service_config.get('platform', '')
712
714
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 15.2.0
3
+ Version: 15.3.0
4
4
  Summary: Management command to build and deploy webapps, especially based on Django
5
5
  Home-page: https://github.com/PragmaticMates/mantis-cli
6
6
  Author: Erik Telepovský
@@ -1 +0,0 @@
1
- VERSION = '15.2.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes