diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..7fe6e6c --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,13 @@ +# 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. \ 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 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 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