mantis-cli 19.1.1__tar.gz → 19.1.3__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-19.1.1/mantis_cli.egg-info → mantis-cli-19.1.3}/PKG-INFO +6 -3
  2. mantis-cli-19.1.3/mantis/__init__.py +1 -0
  3. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/managers.py +5 -5
  4. {mantis-cli-19.1.1 → mantis-cli-19.1.3/mantis_cli.egg-info}/PKG-INFO +6 -3
  5. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis_cli.egg-info/entry_points.txt +0 -1
  6. mantis-cli-19.1.1/mantis/__init__.py +0 -1
  7. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/LICENSE +0 -0
  8. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/MANIFEST.in +0 -0
  9. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/README.md +0 -0
  10. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/__main__.py +0 -0
  11. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/command_line.py +0 -0
  12. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/crypto.py +0 -0
  13. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/environment.py +0 -0
  14. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/extensions/__init__.py +0 -0
  15. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/extensions/django.py +0 -0
  16. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/extensions/nginx.py +0 -0
  17. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/extensions/postgres.py +0 -0
  18. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/helpers.py +0 -0
  19. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/logic.py +0 -0
  20. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis/mantis.tpl +0 -0
  21. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis_cli.egg-info/SOURCES.txt +0 -0
  22. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis_cli.egg-info/dependency_links.txt +0 -0
  23. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis_cli.egg-info/requires.txt +0 -0
  24. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/mantis_cli.egg-info/top_level.txt +0 -0
  25. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/setup.cfg +0 -0
  26. {mantis-cli-19.1.1 → mantis-cli-19.1.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 19.1.1
3
+ Version: 19.1.3
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ý
@@ -9,7 +9,6 @@ Maintainer: Pragmatic Mates
9
9
  Maintainer-email: info@pragmaticmates.com
10
10
  License: GNU General Public License (GPL)
11
11
  Keywords: management deployment docker command
12
- Platform: UNKNOWN
13
12
  Classifier: Programming Language :: Python
14
13
  Classifier: Operating System :: OS Independent
15
14
  Classifier: Environment :: Web Environment
@@ -19,6 +18,11 @@ Classifier: License :: OSI Approved :: GNU General Public License (GPL)
19
18
  Classifier: Development Status :: 5 - Production/Stable
20
19
  Description-Content-Type: text/markdown
21
20
  License-File: LICENSE
21
+ Requires-Dist: cffi
22
+ Requires-Dist: cryptography
23
+ Requires-Dist: pycryptodome
24
+ Requires-Dist: PyYAML
25
+ Requires-Dist: prettytable
22
26
 
23
27
  # mantis-cli
24
28
 
@@ -337,4 +341,3 @@ Works as follows:
337
341
  ## Release notes
338
342
 
339
343
  Mantis uses semantic versioning. See more in [changelog](https://github.com/PragmaticMates/mantis-cli/blob/master/CHANGES.md).
340
-
@@ -0,0 +1 @@
1
+ VERSION = '19.1.3'
@@ -261,14 +261,14 @@ class AbstractManager(object):
261
261
 
262
262
  return None
263
263
 
264
- def get_containers(self, prefix='', exclude=[]):
264
+ def get_containers(self, prefix='', exclude=[], only_running=False):
265
265
  """
266
266
  Prints all project containers
267
267
  :param prefix: container prefix
268
268
  :param exclude: exclude containers
269
269
  :return: list of container names
270
270
  """
271
- containers = self.docker(f'container ls -a --format \'{{{{.Names}}}}\'', return_output=True) \
271
+ containers = self.docker(f'container ls {"" if only_running else "-a"} --format \'{{{{.Names}}}}\'', return_output=True) \
272
272
  .strip('\n').strip().split('\n')
273
273
 
274
274
  # Remove empty strings
@@ -681,7 +681,7 @@ class BaseManager(AbstractManager):
681
681
  image = info['image'] if info['image'] != '' else f"{info['project_name']}-{service}".lstrip('-')
682
682
 
683
683
  # build paths for docker build command (paths in compose are relative to compose file, but paths for docker command are relative to $PWD)
684
- context = normpath(path.join(dirname(self.compose_path), info['context']))
684
+ context = normpath(path.join(self.compose_path, info['context']))
685
685
  dockerfile = normpath(path.join(context, info['dockerfile']))
686
686
 
687
687
  # Build service using docker
@@ -858,7 +858,7 @@ class BaseManager(AbstractManager):
858
858
 
859
859
  scale_param = ' '.join([f'--scale {service}={scale}' for service, scale in scales.items()])
860
860
 
861
- self.up(f'{scale_param}')
861
+ self.up(f'--no-deps {scale_param}')
862
862
  self.remove_suffixes()
863
863
  self.try_to_reload_webserver()
864
864
 
@@ -878,7 +878,7 @@ class BaseManager(AbstractManager):
878
878
 
879
879
  container_prefix = self.get_container_name(service)
880
880
 
881
- old_containers = self.get_containers(prefix=container_prefix)
881
+ old_containers = self.get_containers(prefix=container_prefix, only_running=True)
882
882
  num_containers = len(old_containers)
883
883
 
884
884
  if num_containers == 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 19.1.1
3
+ Version: 19.1.3
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ý
@@ -9,7 +9,6 @@ Maintainer: Pragmatic Mates
9
9
  Maintainer-email: info@pragmaticmates.com
10
10
  License: GNU General Public License (GPL)
11
11
  Keywords: management deployment docker command
12
- Platform: UNKNOWN
13
12
  Classifier: Programming Language :: Python
14
13
  Classifier: Operating System :: OS Independent
15
14
  Classifier: Environment :: Web Environment
@@ -19,6 +18,11 @@ Classifier: License :: OSI Approved :: GNU General Public License (GPL)
19
18
  Classifier: Development Status :: 5 - Production/Stable
20
19
  Description-Content-Type: text/markdown
21
20
  License-File: LICENSE
21
+ Requires-Dist: cffi
22
+ Requires-Dist: cryptography
23
+ Requires-Dist: pycryptodome
24
+ Requires-Dist: PyYAML
25
+ Requires-Dist: prettytable
22
26
 
23
27
  # mantis-cli
24
28
 
@@ -337,4 +341,3 @@ Works as follows:
337
341
  ## Release notes
338
342
 
339
343
  Mantis uses semantic versioning. See more in [changelog](https://github.com/PragmaticMates/mantis-cli/blob/master/CHANGES.md).
340
-
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  mantis = mantis.command_line:run
3
-
@@ -1 +0,0 @@
1
- VERSION = '19.1.1'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes