commons-metrics 0.0.21__py3-none-any.whl → 0.0.23__py3-none-any.whl
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.
- commons_metrics/__init__.py +1 -1
- commons_metrics/azure_devops_client.py +3 -3
- commons_metrics/cache_manager.py +2 -3
- commons_metrics/github_api_client.py +3 -3
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.23.dist-info}/METADATA +1 -1
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.23.dist-info}/RECORD +9 -9
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.23.dist-info}/WHEEL +0 -0
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.23.dist-info}/licenses/LICENSE +0 -0
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.23.dist-info}/top_level.txt +0 -0
commons_metrics/__init__.py
CHANGED
|
@@ -12,4 +12,4 @@ from .text_simplifier import TextSimplifier
|
|
|
12
12
|
from .variable_finder import VariableFinder
|
|
13
13
|
|
|
14
14
|
__all__ = ['Util', 'DatabaseConnection', 'ComponentRepository', 'UpdateDesignSystemComponents', 'GitHubAPIClient', 'AzureDevOpsClient', 'S3FileManager', 'CacheManager', 'CommonsReposClient', 'DateUtils', 'TextSimplifier', 'VariableFinder']
|
|
15
|
-
__version__ = '0.0.
|
|
15
|
+
__version__ = '0.0.23'
|
|
@@ -5,7 +5,7 @@ import re
|
|
|
5
5
|
from typing import List, Dict, Optional
|
|
6
6
|
from requests.exceptions import HTTPError, Timeout, ConnectionError
|
|
7
7
|
import urllib3
|
|
8
|
-
from .commons_repos_client import
|
|
8
|
+
from .commons_repos_client import CommonsReposClient
|
|
9
9
|
|
|
10
10
|
# Suprimir warnings de SSL para Azure DevOps con certificados corporativos
|
|
11
11
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
@@ -383,11 +383,11 @@ class AzureDevOpsClient:
|
|
|
383
383
|
if platform == 'mobile':
|
|
384
384
|
config_file = 'pubspec.yaml'
|
|
385
385
|
default_package_name = 'bds_mobile'
|
|
386
|
-
extract_version_method = extract_package_version_from_pubspec
|
|
386
|
+
extract_version_method = CommonsReposClient.extract_package_version_from_pubspec
|
|
387
387
|
else: # web
|
|
388
388
|
config_file = 'package.json'
|
|
389
389
|
default_package_name = '@bancolombia/design-system-web'
|
|
390
|
-
extract_version_method = extract_package_version_from_package_json
|
|
390
|
+
extract_version_method = CommonsReposClient.extract_package_version_from_package_json
|
|
391
391
|
|
|
392
392
|
# Usar nombre de paquete por defecto si no se proporciona
|
|
393
393
|
package_name = design_system_name or default_package_name
|
commons_metrics/cache_manager.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import requests
|
|
2
2
|
import urllib3
|
|
3
|
-
|
|
4
3
|
from .s3_file_manager import S3FileManager
|
|
5
4
|
|
|
6
5
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
@@ -9,8 +8,8 @@ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
|
9
8
|
class CacheManager:
|
|
10
9
|
"""Manager for caching data in S3 and making API requests"""
|
|
11
10
|
|
|
12
|
-
def __init__(self):
|
|
13
|
-
self.s3 = S3FileManager()
|
|
11
|
+
def __init__(self, bucket: str, aws_region: str):
|
|
12
|
+
self.s3 = S3FileManager(bucket=bucket, aws_region=aws_region)
|
|
14
13
|
|
|
15
14
|
def load_cache_or_fetch(self, path: str, fetch_fn, clear_cache: bool = False):
|
|
16
15
|
"""
|
|
@@ -2,7 +2,7 @@ import requests
|
|
|
2
2
|
import base64
|
|
3
3
|
from typing import List, Dict, Optional
|
|
4
4
|
import os
|
|
5
|
-
from .commons_repos_client import
|
|
5
|
+
from .commons_repos_client import CommonsReposClient
|
|
6
6
|
|
|
7
7
|
class GitHubAPIClient:
|
|
8
8
|
"""
|
|
@@ -207,11 +207,11 @@ class GitHubAPIClient:
|
|
|
207
207
|
if platform == 'mobile':
|
|
208
208
|
config_file = 'pubspec.yaml'
|
|
209
209
|
default_package_name = 'bds_mobile'
|
|
210
|
-
extract_version_method = extract_package_version_from_pubspec
|
|
210
|
+
extract_version_method = CommonsReposClient.extract_package_version_from_pubspec
|
|
211
211
|
else: # web
|
|
212
212
|
config_file = 'package.json'
|
|
213
213
|
default_package_name = '@bancolombia/design-system-web'
|
|
214
|
-
extract_version_method = extract_package_version_from_package_json
|
|
214
|
+
extract_version_method = CommonsReposClient.extract_package_version_from_package_json
|
|
215
215
|
|
|
216
216
|
# Usar nombre de paquete por defecto si no se proporciona
|
|
217
217
|
package_name = design_system_name or default_package_name
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
commons_metrics/__init__.py,sha256=
|
|
2
|
-
commons_metrics/azure_devops_client.py,sha256=
|
|
3
|
-
commons_metrics/cache_manager.py,sha256=
|
|
1
|
+
commons_metrics/__init__.py,sha256=oag-3Hgq5mcgLmEtYNzLqfUpioGJQVPjRSGzgWCfMLY,796
|
|
2
|
+
commons_metrics/azure_devops_client.py,sha256=XrGqhr4voFUtGkdB27tnzsMSiNdpfY4stQUU51e1a0U,16755
|
|
3
|
+
commons_metrics/cache_manager.py,sha256=HOeup9twUizjJAbh1MNXdPT8BMVeLFoolOWlAzMTXkE,2651
|
|
4
4
|
commons_metrics/commons_repos_client.py,sha256=PiAMLWuDnI8AlZzE3sfQ3s2P23UrYbbqaq63AFRroHc,4695
|
|
5
5
|
commons_metrics/database.py,sha256=wzcrK8q09J28NMLExkhWy8w7N2fQPkckrGf62C9rdQ0,1989
|
|
6
6
|
commons_metrics/date_utils.py,sha256=8465712QJDGcshqry97Gi90lbMEbvbX3uiuHRVwGHbE,2654
|
|
7
|
-
commons_metrics/github_api_client.py,sha256=
|
|
7
|
+
commons_metrics/github_api_client.py,sha256=hd8WH2mhuYBd6MHv06RdVv3uGKRlk9wfSTijahOakJ0,11442
|
|
8
8
|
commons_metrics/repositories.py,sha256=47JK9rhcpx_X6RWRkM3768qTwk39ODm8LLvi6QzZDdQ,9480
|
|
9
9
|
commons_metrics/s3_file_manager.py,sha256=Mm7vlPJeXB46LnCXFs9oz7PQezcIcgYLlSJqMzVf72g,3384
|
|
10
10
|
commons_metrics/text_simplifier.py,sha256=jRYckQ5APR0A3wY4hg70kOHxHUFuGzd6D-CJC3__j78,1518
|
|
11
11
|
commons_metrics/update_design_components.py,sha256=QpY0GCCCMjdYOZ7b8oNigU9iTpiGx91CYsyWwN8WVDA,7660
|
|
12
12
|
commons_metrics/util.py,sha256=98zuynalXumQRh-BB0Bcjyoh6vS2BTOUM8tVgr7iS9Q,1225
|
|
13
13
|
commons_metrics/variable_finder.py,sha256=pxI_XSd-lq_AiUjDbcUC4knIZhWZwt7HQrQOa-F0ud4,8061
|
|
14
|
-
commons_metrics-0.0.
|
|
15
|
-
commons_metrics-0.0.
|
|
16
|
-
commons_metrics-0.0.
|
|
17
|
-
commons_metrics-0.0.
|
|
18
|
-
commons_metrics-0.0.
|
|
14
|
+
commons_metrics-0.0.23.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
|
|
15
|
+
commons_metrics-0.0.23.dist-info/METADATA,sha256=Gk9umfg9S2nBPiVtkSgQqUjvE7Q4JnCAVVnpxdcYap8,402
|
|
16
|
+
commons_metrics-0.0.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
commons_metrics-0.0.23.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
|
|
18
|
+
commons_metrics-0.0.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|