shellfoundry 1.2.25__tar.gz → 1.2.26__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.
- {shellfoundry-1.2.25/shellfoundry.egg-info → shellfoundry-1.2.26}/PKG-INFO +1 -1
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/__init__.py +13 -23
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/template_retriever.py +5 -1
- {shellfoundry-1.2.25 → shellfoundry-1.2.26/shellfoundry.egg-info}/PKG-INFO +1 -1
- shellfoundry-1.2.26/version.txt +1 -0
- shellfoundry-1.2.25/version.txt +0 -1
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/HISTORY.rst +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/LICENSE +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/MANIFEST.in +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/README.rst +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/dev_requirements.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/requirements.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/setup.cfg +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/setup.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/__main__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/bootstrap.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/config_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/delete_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/dist_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/extend_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/generate_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/get_templates_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/install_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/list_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/new_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/pack_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/commands/show_command.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/data/standards.json +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/data/templates.yml +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/decorators/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/decorators/standards.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/decorators/version_check.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/exceptions.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/models/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/models/install_config.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/models/shell_template.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/models/shellfoundry_settings.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/archive_creator.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/cloudshell_api/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/cloudshell_api/client_wrapper.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config/config_context.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config/config_file_creation.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config/config_providers.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config/config_record.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config_reader.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/constants.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/cookiecutter_integration.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/driver_generator.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/filters.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/installer.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/modifiers/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/modifiers/configuration/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/modifiers/configuration/aggregated_modifiers.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/modifiers/configuration/password_modification.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/modifiers/definition/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/modifiers/definition/definition_modification.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/package_builder.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/python_dependencies_packager.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/repository_downloader.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/shell_config_reader.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/shell_datamodel_merger.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/shell_package.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/shell_package_builder.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/shell_package_installer.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/standards/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/standards/consts.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/standards/standards_retriever.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/standards/standards_versions.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/temp_dir_context.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/template_url.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/template_versions.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/validations/__init__.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/validations/shell_generation_validation.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/validations/shell_name_validations.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/version_utilities.py +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry.egg-info/SOURCES.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry.egg-info/dependency_links.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry.egg-info/entry_points.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry.egg-info/not-zip-safe +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry.egg-info/requires.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry.egg-info/top_level.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/test_requirements.txt +0 -0
- {shellfoundry-1.2.25 → shellfoundry-1.2.26}/tests/test_bootstrap.py +0 -0
|
@@ -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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
"
|
|
90
|
-
"Error: {}
|
|
79
|
+
"Cannot retrieve latest shellfoundry version, "
|
|
80
|
+
"are you offline? Error: {}".format(err.message)
|
|
91
81
|
)
|
|
92
82
|
|
|
93
83
|
|
|
@@ -11,7 +11,11 @@ import click
|
|
|
11
11
|
import requests
|
|
12
12
|
import yaml
|
|
13
13
|
from pkg_resources import parse_version
|
|
14
|
-
|
|
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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2.26
|
shellfoundry-1.2.25/version.txt
DELETED
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/cloudshell_api/__init__.py
RENAMED
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/cloudshell_api/client_wrapper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config/config_file_creation.py
RENAMED
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/config/config_providers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/cookiecutter_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/modifiers/definition/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/python_dependencies_packager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/shell_datamodel_merger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/shell_package_installer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/standards/standards_retriever.py
RENAMED
|
File without changes
|
{shellfoundry-1.2.25 → shellfoundry-1.2.26}/shellfoundry/utilities/standards/standards_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|