From 0e6757d9ff4fcd50e0201c846ce7069942a67ae3 Mon Sep 17 00:00:00 2001 From: Andrew Quirke Date: Thu, 18 Apr 2024 09:30:26 -0400 Subject: [PATCH 1/2] Adding support for MIT license on client --- polaris/utils/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polaris/utils/types.py b/polaris/utils/types.py index 4cabb194..b8093450 100644 --- a/polaris/utils/types.py +++ b/polaris/utils/types.py @@ -93,7 +93,7 @@ """ SupportedLicenseType: TypeAlias = Literal[ - "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-NC-SA-4.0", "CC0-1.0" + "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-NC-SA-4.0", "CC0-1.0", "MIT" ] """ Supported license types for dataset uploads to Polaris Hub From bceb9ee347254d8f39901a68538903c359853fd8 Mon Sep 17 00:00:00 2001 From: Andrew Quirke Date: Mon, 22 Apr 2024 14:20:20 -0400 Subject: [PATCH 2/2] Updating license help message --- polaris/hub/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polaris/hub/client.py b/polaris/hub/client.py index d53768f2..3b597c3b 100644 --- a/polaris/hub/client.py +++ b/polaris/hub/client.py @@ -534,7 +534,7 @@ def upload_dataset( # Check if a dataset license was specified prior to upload if not dataset.license: raise InvalidDatasetError( - f"\nPlease specify a supported license for this dataset prior to uploading to the Polaris Hub.\nOnly some Creative Commons licenses are supported - {get_args(SupportedLicenseType)}. For more information, see https://creativecommons.org/share-your-work/cclicenses/" + f"\nPlease specify a supported license for this dataset prior to uploading to the Polaris Hub.\nOnly some licenses are supported - {get_args(SupportedLicenseType)}." ) # Normalize timeout