From 6fb81aba4e16b37eca9d75889eff6311cb7a108e Mon Sep 17 00:00:00 2001 From: Suyash Kshirsagar Date: Wed, 5 Nov 2025 15:43:09 -0800 Subject: [PATCH 1/5] Add Microsoft copyright header to all source and test files - Added standard Microsoft copyright header to all Python files in src/dataverse_sdk/ - Added copyright header to all test files in tests/ - Ensures consistent licensing information across the codebase - Header format: # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. --- CONTRIBUTING.md | 0 src/dataverse_sdk/__init__.py | 3 +++ src/dataverse_sdk/__version__.py | 3 +++ src/dataverse_sdk/auth.py | 3 +++ src/dataverse_sdk/client.py | 3 +++ src/dataverse_sdk/config.py | 3 +++ src/dataverse_sdk/error_codes.py | 3 +++ src/dataverse_sdk/errors.py | 3 +++ src/dataverse_sdk/http.py | 3 +++ src/dataverse_sdk/odata.py | 3 +++ src/dataverse_sdk/odata_pandas_wrappers.py | 3 +++ src/dataverse_sdk/odata_upload_files.py | 3 +++ tests/test_enum_optionset_payload.py | 3 +++ tests/test_http_errors.py | 3 +++ tests/test_logical_crud.py | 3 +++ tests/test_sql_parse.py | 3 +++ 16 files changed, 45 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..e69de29 diff --git a/src/dataverse_sdk/__init__.py b/src/dataverse_sdk/__init__.py index d50aaeb..6fa92f9 100644 --- a/src/dataverse_sdk/__init__.py +++ b/src/dataverse_sdk/__init__.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + """ Microsoft Dataverse SDK for Python. diff --git a/src/dataverse_sdk/__version__.py b/src/dataverse_sdk/__version__.py index d5895a7..0aacbaf 100644 --- a/src/dataverse_sdk/__version__.py +++ b/src/dataverse_sdk/__version__.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + """Version information for dataverse-client-python package.""" __version__ = "0.1.0" diff --git a/src/dataverse_sdk/auth.py b/src/dataverse_sdk/auth.py index e41f874..dcc7131 100644 --- a/src/dataverse_sdk/auth.py +++ b/src/dataverse_sdk/auth.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import annotations from dataclasses import dataclass diff --git a/src/dataverse_sdk/client.py b/src/dataverse_sdk/client.py index 21391bc..9a5795a 100644 --- a/src/dataverse_sdk/client.py +++ b/src/dataverse_sdk/client.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import annotations from typing import Any, Dict, Optional, Union, List, Iterable diff --git a/src/dataverse_sdk/config.py b/src/dataverse_sdk/config.py index 42bd051..89bf0b2 100644 --- a/src/dataverse_sdk/config.py +++ b/src/dataverse_sdk/config.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import annotations from dataclasses import dataclass diff --git a/src/dataverse_sdk/error_codes.py b/src/dataverse_sdk/error_codes.py index 12b35aa..4a09656 100644 --- a/src/dataverse_sdk/error_codes.py +++ b/src/dataverse_sdk/error_codes.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + # HTTP subcode constants HTTP_400 = "http_400" HTTP_401 = "http_401" diff --git a/src/dataverse_sdk/errors.py b/src/dataverse_sdk/errors.py index a61489b..428263f 100644 --- a/src/dataverse_sdk/errors.py +++ b/src/dataverse_sdk/errors.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import annotations from typing import Any, Dict, Optional import datetime as _dt diff --git a/src/dataverse_sdk/http.py b/src/dataverse_sdk/http.py index 223e05d..2b5924f 100644 --- a/src/dataverse_sdk/http.py +++ b/src/dataverse_sdk/http.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import annotations import time diff --git a/src/dataverse_sdk/odata.py b/src/dataverse_sdk/odata.py index 5709d51..db01305 100644 --- a/src/dataverse_sdk/odata.py +++ b/src/dataverse_sdk/odata.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import annotations from typing import Any, Dict, Optional, List, Union, Iterable diff --git a/src/dataverse_sdk/odata_pandas_wrappers.py b/src/dataverse_sdk/odata_pandas_wrappers.py index d373ba8..185a9fc 100644 --- a/src/dataverse_sdk/odata_pandas_wrappers.py +++ b/src/dataverse_sdk/odata_pandas_wrappers.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + """ Pandas-friendly wrappers for Dataverse OData operations. diff --git a/src/dataverse_sdk/odata_upload_files.py b/src/dataverse_sdk/odata_upload_files.py index 39d683b..b169fdf 100644 --- a/src/dataverse_sdk/odata_upload_files.py +++ b/src/dataverse_sdk/odata_upload_files.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + """File upload helpers separated from core OData client. Provide a mixin class `ODataFileUploadMixin` so these methods can be reused without diff --git a/tests/test_enum_optionset_payload.py b/tests/test_enum_optionset_payload.py index a359d50..5d85ddb 100644 --- a/tests/test_enum_optionset_payload.py +++ b/tests/test_enum_optionset_payload.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import pytest from enum import Enum, IntEnum diff --git a/tests/test_http_errors.py b/tests/test_http_errors.py index f3b33a6..fd08d33 100644 --- a/tests/test_http_errors.py +++ b/tests/test_http_errors.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import pytest from dataverse_sdk.errors import HttpError from dataverse_sdk import error_codes as ec diff --git a/tests/test_logical_crud.py b/tests/test_logical_crud.py index 86ce224..58ad3f6 100644 --- a/tests/test_logical_crud.py +++ b/tests/test_logical_crud.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import types import pytest from dataverse_sdk.odata import ODataClient diff --git a/tests/test_sql_parse.py b/tests/test_sql_parse.py index 8ddf71d..68049f7 100644 --- a/tests/test_sql_parse.py +++ b/tests/test_sql_parse.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import pytest from dataverse_sdk.odata import ODataClient From aebff52bdcdda199dded998ea269d5ac3a96c5e3 Mon Sep 17 00:00:00 2001 From: Suyash Kshirsagar Date: Thu, 6 Nov 2025 13:03:18 -0800 Subject: [PATCH 2/5] Update CONTRIBUTING.md and README.md files --- CONTRIBUTING.md | 11 +++++++++++ README.md | 12 +----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e69de29..8346c8b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -0,0 +1,11 @@ +This project welcomes contributions and suggestions. Most contributions require you to agree to a +Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us +the rights to use your contribution. For details, visit [Contributor License Agreements](https://cla.opensource.microsoft.com). + +When you submit a pull request, a CLA bot will automatically determine whether you need to provide +a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions +provided by the bot. You will only need to do this once across all repos using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or +contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. \ No newline at end of file diff --git a/README.md b/README.md index 3b9d98f..2e94c57 100644 --- a/README.md +++ b/README.md @@ -348,17 +348,7 @@ VS Code Tasks ## Contributing -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit [Contributor License Agreements](https://cla.opensource.microsoft.com). - -When you submit a pull request, a CLA bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines. ## Trademarks From b20868516e19932564d888e4ae83b62d0276bb8b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 21:08:51 +0000 Subject: [PATCH 3/5] Initial plan From 16f850deb15ace3315dd8d795049c4edd72fb4d7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 21:11:06 +0000 Subject: [PATCH 4/5] Add heading to CONTRIBUTING.md file Co-authored-by: suyask-msft <158708948+suyask-msft@users.noreply.github.com> --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8346c8b..7fe6e6c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,5 @@ +# Contributing + This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit [Contributor License Agreements](https://cla.opensource.microsoft.com). From 113e4c37a3190540cacf25f33176624f9e6b79c8 Mon Sep 17 00:00:00 2001 From: Suyash Kshirsagar Date: Thu, 6 Nov 2025 13:17:47 -0800 Subject: [PATCH 5/5] Add Microsoft copyright header to example files - Added copyright header to examples/quickstart.py - Added copyright header to examples/quickstart_file_upload.py - Added copyright header to examples/quickstart_pandas.py - Ensures consistent licensing information across all Python files --- examples/quickstart.py | 3 +++ examples/quickstart_file_upload.py | 3 +++ examples/quickstart_pandas.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/examples/quickstart.py b/examples/quickstart.py index 891b62a..4a86ca3 100644 --- a/examples/quickstart.py +++ b/examples/quickstart.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys from pathlib import Path import os diff --git a/examples/quickstart_file_upload.py b/examples/quickstart_file_upload.py index a6ba4d8..67f3a39 100644 --- a/examples/quickstart_file_upload.py +++ b/examples/quickstart_file_upload.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys from pathlib import Path import os diff --git a/examples/quickstart_pandas.py b/examples/quickstart_pandas.py index 08d9cf7..5f8ac8a 100644 --- a/examples/quickstart_pandas.py +++ b/examples/quickstart_pandas.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys from pathlib import Path import os