mantis-cli 13.2.0__tar.gz → 13.3.1__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 (27) hide show
  1. {mantis-cli-13.2.0/mantis_cli.egg-info → mantis-cli-13.3.1}/PKG-INFO +5 -4
  2. mantis-cli-13.3.1/mantis/__init__.py +1 -0
  3. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/helpers.py +19 -2
  4. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/managers.py +3 -1
  5. {mantis-cli-13.2.0 → mantis-cli-13.3.1/mantis_cli.egg-info}/PKG-INFO +5 -4
  6. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis_cli.egg-info/entry_points.txt +0 -1
  7. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis_cli.egg-info/requires.txt +1 -0
  8. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/setup.py +1 -1
  9. mantis-cli-13.2.0/mantis/__init__.py +0 -1
  10. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/.gitignore +0 -0
  11. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/LICENSE +0 -0
  12. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/MANIFEST.in +0 -0
  13. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/README.md +0 -0
  14. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/TODO +0 -0
  15. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/__main__.py +0 -0
  16. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/command_line.py +0 -0
  17. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/crypto.py +0 -0
  18. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/environment.py +0 -0
  19. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/extensions/__init__.py +0 -0
  20. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/extensions/django.py +0 -0
  21. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/extensions/nginx.py +0 -0
  22. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/extensions/postgres.py +0 -0
  23. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis/logic.py +0 -0
  24. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis_cli.egg-info/SOURCES.txt +0 -0
  25. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis_cli.egg-info/dependency_links.txt +0 -0
  26. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/mantis_cli.egg-info/top_level.txt +0 -0
  27. {mantis-cli-13.2.0 → mantis-cli-13.3.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 1.2
1
+ Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 13.2.0
3
+ Version: 13.3.1
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ý
@@ -8,9 +8,7 @@ Author-email: info@pragmaticmates.com
8
8
  Maintainer: Pragmatic Mates
9
9
  Maintainer-email: info@pragmaticmates.com
10
10
  License: GNU General Public License (GPL)
11
- Description: # mantis-cli
12
11
  Keywords: management deployment docker command
13
- Platform: UNKNOWN
14
12
  Classifier: Programming Language :: Python
15
13
  Classifier: Operating System :: OS Independent
16
14
  Classifier: Environment :: Web Environment
@@ -18,3 +16,6 @@ Classifier: Intended Audience :: Developers
18
16
  Classifier: Framework :: Django
19
17
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
20
18
  Classifier: Development Status :: 5 - Production/Stable
19
+ License-File: LICENSE
20
+
21
+ # mantis-cli
@@ -0,0 +1 @@
1
+ VERSION = '13.3.1'
@@ -108,8 +108,25 @@ def find_config():
108
108
  return paths[0]
109
109
 
110
110
  paths_per_line = "\n".join(paths)
111
- CLI.error(f'Found {total_mantis_files} mantis.json files: \n{paths_per_line}\n\nDefine which one to use using $MANTIS_CONFIG environment variable!')
112
-
111
+ CLI.warning(f'Found {total_mantis_files} mantis.json files:')
112
+
113
+ for index, path in enumerate(paths):
114
+ CLI.info(f'[{index+1}] {path}')
115
+ CLI.danger(f'[0] Exit now and define $MANTIS_CONFIG environment variable')
116
+
117
+ path_index = None
118
+ while path_index is None:
119
+ path_index = input('Define which one to use: ')
120
+ if not path_index.isdigit() or int(path_index) > len(paths):
121
+ path_index = None
122
+ else:
123
+ path_index = int(path_index)
124
+
125
+ if path_index == 0:
126
+ exit()
127
+
128
+ return paths[path_index-1]
129
+
113
130
 
114
131
  def load_config(config_file):
115
132
  with open(config_file) as config:
@@ -106,6 +106,8 @@ class BaseManager(object):
106
106
  return ''
107
107
 
108
108
  if self.mode == 'remote':
109
+ if self.connection is None:
110
+ CLI.error(f'Connection for environment {self.env.id} not defined!')
109
111
  if self.connection.startswith('ssh://'):
110
112
  return f'DOCKER_HOST="{self.connection}"'
111
113
  elif self.connection.startswith('context://'):
@@ -654,7 +656,7 @@ class BaseManager(object):
654
656
  CLI.info(f'Removing old container [{old_container}]...')
655
657
  self.docker(f'container rm {old_container}')
656
658
  else:
657
- CLI.info(f'{container} was not running')
659
+ CLI.info(f'{old_container} was not running')
658
660
 
659
661
  # rename new container
660
662
  CLI.info(f'Renaming new container [{new_container}]...')
@@ -1,6 +1,6 @@
1
- Metadata-Version: 1.2
1
+ Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 13.2.0
3
+ Version: 13.3.1
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ý
@@ -8,9 +8,7 @@ Author-email: info@pragmaticmates.com
8
8
  Maintainer: Pragmatic Mates
9
9
  Maintainer-email: info@pragmaticmates.com
10
10
  License: GNU General Public License (GPL)
11
- Description: # mantis-cli
12
11
  Keywords: management deployment docker command
13
- Platform: UNKNOWN
14
12
  Classifier: Programming Language :: Python
15
13
  Classifier: Operating System :: OS Independent
16
14
  Classifier: Environment :: Web Environment
@@ -18,3 +16,6 @@ Classifier: Intended Audience :: Developers
18
16
  Classifier: Framework :: Django
19
17
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
20
18
  Classifier: Development Status :: 5 - Production/Stable
19
+ License-File: LICENSE
20
+
21
+ # mantis-cli
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  mantis = mantis.command_line:run
3
-
@@ -1,3 +1,4 @@
1
+ cffi
1
2
  cryptography
2
3
  pycryptodome
3
4
  PyYAML
@@ -15,7 +15,7 @@ setup(
15
15
  url='https://github.com/PragmaticMates/mantis-cli',
16
16
  packages=find_packages(),
17
17
  include_package_data=True,
18
- install_requires=['cryptography', 'pycryptodome', 'PyYAML'],
18
+ install_requires=['cffi', 'cryptography', 'pycryptodome', 'PyYAML'],
19
19
  entry_points={
20
20
  'console_scripts': ['mantis=mantis.command_line:run'],
21
21
  },
@@ -1 +0,0 @@
1
- VERSION = '13.2.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes