From 7dbe796264694f019758dbe3550a18c677684494 Mon Sep 17 00:00:00 2001 From: AndrewJGaut Date: Mon, 9 Oct 2023 23:11:12 -0700 Subject: [PATCH 1/2] bump version --- codalab/common.py | 2 +- docs/REST-API-Reference.md | 2 +- frontend/src/constants.js | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codalab/common.py b/codalab/common.py index f644f1367..151f57b9a 100644 --- a/codalab/common.py +++ b/codalab/common.py @@ -29,7 +29,7 @@ # Increment this on master when ready to cut a release. # http://semver.org/ -CODALAB_VERSION = '1.7.1' +CODALAB_VERSION = '1.7.2' BINARY_PLACEHOLDER = '' URLOPEN_TIMEOUT_SECONDS = int(os.environ.get('CODALAB_URLOPEN_TIMEOUT_SECONDS', 5 * 60)) diff --git a/docs/REST-API-Reference.md b/docs/REST-API-Reference.md index 3ff2381e2..fee7047c4 100644 --- a/docs/REST-API-Reference.md +++ b/docs/REST-API-Reference.md @@ -1,6 +1,6 @@ # REST API Reference -_version 1.7.1_ +_version 1.7.2_ This reference and the REST API itself is still under heavy development and is subject to change at any time. Feedback through our GitHub issues is appreciated! diff --git a/frontend/src/constants.js b/frontend/src/constants.js index 9d7bf6542..9403bf0a4 100644 --- a/frontend/src/constants.js +++ b/frontend/src/constants.js @@ -1,5 +1,5 @@ // Should match codalab/common.py#CODALAB_VERSION -export const CODALAB_VERSION = '1.7.1'; +export const CODALAB_VERSION = '1.7.2'; // Name Regex to match the backend in spec_utils.py export const NAME_REGEX = /^[a-zA-Z_][a-zA-Z0-9_.-]*$/i; diff --git a/setup.py b/setup.py index 66fdcddad..a1535fda3 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ # should match codalab/common.py#CODALAB_VERSION -CODALAB_VERSION = "1.7.1" +CODALAB_VERSION = "1.7.2" class Install(install): From 8ce15c55586bf915796a1daa99b5b4de5cc9f0ba Mon Sep 17 00:00:00 2001 From: AndrewJGaut Date: Mon, 9 Oct 2023 23:26:52 -0700 Subject: [PATCH 2/2] fmt --- codalab/migration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codalab/migration.py b/codalab/migration.py index f8721e723..980809eb0 100644 --- a/codalab/migration.py +++ b/codalab/migration.py @@ -2,6 +2,7 @@ import multiprocessing from functools import partial import time +from typing import Dict, List from collections import defaultdict import json import numpy as np @@ -48,7 +49,7 @@ def __init__(self, target_store_name, change_db, delete) -> None: ) = ( self.skipped_delete_path_dne ) = self.path_exception_cnt = self.error_cnt = self.success_cnt = 0 - self.times = defaultdict(list) + self.times: Dict[str, List[float]] = defaultdict(list) def setUp(self): self.codalab_manager = CodaLabManager()