shellfoundry 1.2.25__tar.gz → 1.2.27__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 (86) hide show
  1. {shellfoundry-1.2.25/shellfoundry.egg-info → shellfoundry-1.2.27}/PKG-INFO +1 -1
  2. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/list_command.py +1 -1
  3. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/__init__.py +13 -23
  4. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/driver_generator.py +1 -1
  5. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/template_retriever.py +5 -1
  6. {shellfoundry-1.2.25 → shellfoundry-1.2.27/shellfoundry.egg-info}/PKG-INFO +1 -1
  7. shellfoundry-1.2.27/version.txt +1 -0
  8. shellfoundry-1.2.25/version.txt +0 -1
  9. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/HISTORY.rst +0 -0
  10. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/LICENSE +0 -0
  11. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/MANIFEST.in +0 -0
  12. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/README.rst +0 -0
  13. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/dev_requirements.txt +0 -0
  14. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/requirements.txt +0 -0
  15. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/setup.cfg +0 -0
  16. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/setup.py +0 -0
  17. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/__init__.py +0 -0
  18. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/__main__.py +0 -0
  19. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/bootstrap.py +0 -0
  20. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/__init__.py +0 -0
  21. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/config_command.py +0 -0
  22. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/delete_command.py +0 -0
  23. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/dist_command.py +0 -0
  24. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/extend_command.py +0 -0
  25. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/generate_command.py +0 -0
  26. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/get_templates_command.py +0 -0
  27. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/install_command.py +0 -0
  28. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/new_command.py +0 -0
  29. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/pack_command.py +0 -0
  30. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/commands/show_command.py +0 -0
  31. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/data/standards.json +0 -0
  32. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/data/templates.yml +0 -0
  33. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/decorators/__init__.py +0 -0
  34. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/decorators/standards.py +0 -0
  35. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/decorators/version_check.py +0 -0
  36. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/exceptions.py +0 -0
  37. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/models/__init__.py +0 -0
  38. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/models/install_config.py +0 -0
  39. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/models/shell_template.py +0 -0
  40. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/models/shellfoundry_settings.py +0 -0
  41. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/archive_creator.py +0 -0
  42. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/cloudshell_api/__init__.py +0 -0
  43. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/cloudshell_api/client_wrapper.py +0 -0
  44. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/config/__init__.py +0 -0
  45. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/config/config_context.py +0 -0
  46. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/config/config_file_creation.py +0 -0
  47. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/config/config_providers.py +0 -0
  48. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/config/config_record.py +0 -0
  49. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/config_reader.py +0 -0
  50. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/constants.py +0 -0
  51. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/cookiecutter_integration.py +0 -0
  52. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/filters.py +0 -0
  53. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/installer.py +0 -0
  54. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/modifiers/__init__.py +0 -0
  55. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/modifiers/configuration/__init__.py +0 -0
  56. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/modifiers/configuration/aggregated_modifiers.py +0 -0
  57. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/modifiers/configuration/password_modification.py +0 -0
  58. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/modifiers/definition/__init__.py +0 -0
  59. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/modifiers/definition/definition_modification.py +0 -0
  60. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/package_builder.py +0 -0
  61. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/python_dependencies_packager.py +0 -0
  62. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/repository_downloader.py +0 -0
  63. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/shell_config_reader.py +0 -0
  64. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/shell_datamodel_merger.py +0 -0
  65. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/shell_package.py +0 -0
  66. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/shell_package_builder.py +0 -0
  67. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/shell_package_installer.py +0 -0
  68. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/standards/__init__.py +0 -0
  69. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/standards/consts.py +0 -0
  70. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/standards/standards_retriever.py +0 -0
  71. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/standards/standards_versions.py +0 -0
  72. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/temp_dir_context.py +0 -0
  73. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/template_url.py +0 -0
  74. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/template_versions.py +0 -0
  75. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/validations/__init__.py +0 -0
  76. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/validations/shell_generation_validation.py +0 -0
  77. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/validations/shell_name_validations.py +0 -0
  78. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry/utilities/version_utilities.py +0 -0
  79. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry.egg-info/SOURCES.txt +0 -0
  80. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry.egg-info/dependency_links.txt +0 -0
  81. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry.egg-info/entry_points.txt +0 -0
  82. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry.egg-info/not-zip-safe +0 -0
  83. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry.egg-info/requires.txt +0 -0
  84. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/shellfoundry.egg-info/top_level.txt +0 -0
  85. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/test_requirements.txt +0 -0
  86. {shellfoundry-1.2.25 → shellfoundry-1.2.27}/tests/test_bootstrap.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: shellfoundry
3
- Version: 1.2.25
3
+ Version: 1.2.27
4
4
  Summary: shellfoundry - Quali tool for creating, building and installing CloudShell shells
5
5
  Home-page: https://github.com/QualiSystems/shellfoundry
6
6
  Author: Quali
@@ -105,6 +105,6 @@ class ListCommandExecutor(object):
105
105
  As of CloudShell 8.0, CloudShell uses 2nd generation shells,
106
106
  to view the list of 1st generation shells use: shellfoundry list --gen1.
107
107
  For more information, please visit our devguide:
108
- https://qualisystems.github.io/devguide/
108
+ https://help.quali.com/devguide
109
109
  """
110
110
  )
@@ -2,16 +2,9 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  import json
5
- import ssl
6
5
 
7
6
  import pkg_resources
8
-
9
- try:
10
- # Python 2.x version
11
- from xmlrpclib import ProtocolError, ServerProxy
12
- except ImportError:
13
- # Python 3.x version
14
- from xmlrpc.client import ProtocolError, ServerProxy
7
+ import requests
15
8
 
16
9
  try:
17
10
  from urllib import urlopen
@@ -43,9 +36,6 @@ class Index(object):
43
36
  self.url = url
44
37
 
45
38
 
46
- PyPI = Index("https://pypi.python.org/pypi/")
47
-
48
-
49
39
  def get_installed_version(package_name):
50
40
  return pkg_resources.get_distribution(package_name).version
51
41
 
@@ -74,20 +64,20 @@ def is_index_version_greater_than_current():
74
64
 
75
65
  def max_version_from_index():
76
66
  try:
77
- ctx = ssl.SSLContext(protocol=ssl.PROTOCOL_SSLv23)
78
- proxy = ServerProxy(PyPI.url, context=ctx)
79
- releases = proxy.package_releases(PACKAGE_NAME)
80
- max_version = max(releases)
81
- return max_version
82
- except ProtocolError as err:
83
- raise ShellFoundryVersionException(
84
- "Cannot retrieve latest shellfoundry version, "
85
- "are you offline? Error: {}".format(err)
86
- )
67
+ url = "https://pypi.org/pypi/{}/json".format(PACKAGE_NAME)
68
+ r = requests.get(url)
69
+ if r.status_code != requests.codes.ok:
70
+ raise ShellFoundryVersionException(
71
+ "Cannot retrieve latest shellfoundry version, " "are you offline?"
72
+ )
73
+ else:
74
+ content = json.loads(r.content)
75
+ max_version = content["info"]["version"]
76
+ return max_version
87
77
  except Exception as err:
88
78
  raise ShellFoundryVersionException(
89
- "Unexpected error during shellfoundry version check. "
90
- "Error: {}.".format(err)
79
+ "Cannot retrieve latest shellfoundry version, "
80
+ "are you offline? Error: {}".format(err.message)
91
81
  )
92
82
 
93
83
 
@@ -67,7 +67,7 @@ class DriverGenerator(object):
67
67
  url = "http://{}:{}/API/ShellDrivers/Generate".format(
68
68
  cloudshell_config.host, cloudshell_config.port
69
69
  )
70
- token = client.token
70
+ token = client._token
71
71
  response = post(
72
72
  url,
73
73
  files={path.basename(shell_filename): open(package_full_path, "rb")},
@@ -11,7 +11,11 @@ import click
11
11
  import requests
12
12
  import yaml
13
13
  from pkg_resources import parse_version
14
- from pkg_resources._vendor.packaging.version import Version
14
+
15
+ try:
16
+ from pkg_resources._vendor.packaging.version import Version
17
+ except ImportError:
18
+ from packaging.version import Version
15
19
 
16
20
  from .filters import CompositeFilter
17
21
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: shellfoundry
3
- Version: 1.2.25
3
+ Version: 1.2.27
4
4
  Summary: shellfoundry - Quali tool for creating, building and installing CloudShell shells
5
5
  Home-page: https://github.com/QualiSystems/shellfoundry
6
6
  Author: Quali
@@ -0,0 +1 @@
1
+ 1.2.27
@@ -1 +0,0 @@
1
- 1.2.25
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes