diff --git a/CHANGELOG.md b/CHANGELOG.md index 837a1cb..b8a9ad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Code quality and styling tooling is unified and configs compatibility is ensured ([#167]) - CI configurations updated and added macOS and Windows tests ([#169]) +- Copyright is unified with the other SDKs and updated/added where needed. ([#170]) ### Removed - `docs` folder and related unused tooling ([#168]) @@ -153,3 +154,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#167]: https://github.com/cloudevents/sdk-python/pull/167 [#168]: https://github.com/cloudevents/sdk-python/pull/168 [#169]: https://github.com/cloudevents/sdk-python/pull/169 +[#170]: https://github.com/cloudevents/sdk-python/pull/170 diff --git a/cloudevents/__init__.py b/cloudevents/__init__.py index 67bc602..c9162a5 100644 --- a/cloudevents/__init__.py +++ b/cloudevents/__init__.py @@ -1 +1,15 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + __version__ = "1.3.0" diff --git a/cloudevents/exceptions.py b/cloudevents/exceptions.py index e33b320..0cd1caf 100644 --- a/cloudevents/exceptions.py +++ b/cloudevents/exceptions.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,8 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + + class GenericException(Exception): pass diff --git a/cloudevents/http/__init__.py b/cloudevents/http/__init__.py index fde5b52..98ee279 100644 --- a/cloudevents/http/__init__.py +++ b/cloudevents/http/__init__.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/http/event.py b/cloudevents/http/event.py index 83adf39..e867f44 100644 --- a/cloudevents/http/event.py +++ b/cloudevents/http/event.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/http/event_type.py b/cloudevents/http/event_type.py index 0df43f4..bc4b335 100644 --- a/cloudevents/http/event_type.py +++ b/cloudevents/http/event_type.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import typing from cloudevents.sdk.converters import binary, structured diff --git a/cloudevents/http/http_methods.py b/cloudevents/http/http_methods.py index 8ae9baa..e403611 100644 --- a/cloudevents/http/http_methods.py +++ b/cloudevents/http/http_methods.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import json import typing diff --git a/cloudevents/http/json_methods.py b/cloudevents/http/json_methods.py index 7dce14e..728516e 100644 --- a/cloudevents/http/json_methods.py +++ b/cloudevents/http/json_methods.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import typing from cloudevents.http.event import CloudEvent diff --git a/cloudevents/http/mappings.py b/cloudevents/http/mappings.py index 4a85175..fdf13db 100644 --- a/cloudevents/http/mappings.py +++ b/cloudevents/http/mappings.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from cloudevents.http.util import default_marshaller from cloudevents.sdk import converters from cloudevents.sdk.event import v1, v03 diff --git a/cloudevents/http/util.py b/cloudevents/http/util.py index e3c2c82..337505f 100644 --- a/cloudevents/http/util.py +++ b/cloudevents/http/util.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import json import typing diff --git a/cloudevents/sdk/__init__.py b/cloudevents/sdk/__init__.py index e69de29..8043675 100644 --- a/cloudevents/sdk/__init__.py +++ b/cloudevents/sdk/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. diff --git a/cloudevents/sdk/converters/__init__.py b/cloudevents/sdk/converters/__init__.py index 936e808..053ea1b 100644 --- a/cloudevents/sdk/converters/__init__.py +++ b/cloudevents/sdk/converters/__init__.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + from cloudevents.sdk.converters import binary, structured TypeBinary = binary.BinaryHTTPCloudEventConverter.TYPE diff --git a/cloudevents/sdk/converters/base.py b/cloudevents/sdk/converters/base.py index aa75f7c..3394e04 100644 --- a/cloudevents/sdk/converters/base.py +++ b/cloudevents/sdk/converters/base.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/converters/binary.py b/cloudevents/sdk/converters/binary.py index 154e00a..098815e 100644 --- a/cloudevents/sdk/converters/binary.py +++ b/cloudevents/sdk/converters/binary.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/converters/structured.py b/cloudevents/sdk/converters/structured.py index d63c60a..63dd88a 100644 --- a/cloudevents/sdk/converters/structured.py +++ b/cloudevents/sdk/converters/structured.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/converters/util.py b/cloudevents/sdk/converters/util.py index b31c39c..8dad733 100644 --- a/cloudevents/sdk/converters/util.py +++ b/cloudevents/sdk/converters/util.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import typing diff --git a/cloudevents/sdk/event/__init__.py b/cloudevents/sdk/event/__init__.py index e69de29..8043675 100644 --- a/cloudevents/sdk/event/__init__.py +++ b/cloudevents/sdk/event/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. diff --git a/cloudevents/sdk/event/base.py b/cloudevents/sdk/event/base.py index 6d84330..f4464cb 100644 --- a/cloudevents/sdk/event/base.py +++ b/cloudevents/sdk/event/base.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/event/opt.py b/cloudevents/sdk/event/opt.py index e28d84f..a64b345 100644 --- a/cloudevents/sdk/event/opt.py +++ b/cloudevents/sdk/event/opt.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/event/v03.py b/cloudevents/sdk/event/v03.py index 8e56d56..029dc29 100644 --- a/cloudevents/sdk/event/v03.py +++ b/cloudevents/sdk/event/v03.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/event/v1.py b/cloudevents/sdk/event/v1.py index 95a6791..84c8aae 100644 --- a/cloudevents/sdk/event/v1.py +++ b/cloudevents/sdk/event/v1.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/exceptions.py b/cloudevents/sdk/exceptions.py index 3195f90..878bc70 100644 --- a/cloudevents/sdk/exceptions.py +++ b/cloudevents/sdk/exceptions.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/marshaller.py b/cloudevents/sdk/marshaller.py index ed9e02a..8f49594 100644 --- a/cloudevents/sdk/marshaller.py +++ b/cloudevents/sdk/marshaller.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/sdk/types.py b/cloudevents/sdk/types.py index 1a302ea..52412f6 100644 --- a/cloudevents/sdk/types.py +++ b/cloudevents/sdk/types.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/__init__.py b/cloudevents/tests/__init__.py index e69de29..8043675 100644 --- a/cloudevents/tests/__init__.py +++ b/cloudevents/tests/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. diff --git a/cloudevents/tests/data.py b/cloudevents/tests/data.py index 353aac5..db77aaf 100644 --- a/cloudevents/tests/data.py +++ b/cloudevents/tests/data.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_base_events.py b/cloudevents/tests/test_base_events.py index ee03fee..8eb83d4 100644 --- a/cloudevents/tests/test_base_events.py +++ b/cloudevents/tests/test_base_events.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import pytest import cloudevents.exceptions as cloud_exceptions diff --git a/cloudevents/tests/test_converters.py b/cloudevents/tests/test_converters.py index 48c8614..b91d6b3 100644 --- a/cloudevents/tests/test_converters.py +++ b/cloudevents/tests/test_converters.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import pytest from cloudevents.sdk import exceptions diff --git a/cloudevents/tests/test_data_encaps_refs.py b/cloudevents/tests/test_data_encaps_refs.py index 3390bdd..3f33263 100644 --- a/cloudevents/tests/test_data_encaps_refs.py +++ b/cloudevents/tests/test_data_encaps_refs.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_deprecated_functions.py b/cloudevents/tests/test_deprecated_functions.py index 49cfffd..a99f624 100644 --- a/cloudevents/tests/test_deprecated_functions.py +++ b/cloudevents/tests/test_deprecated_functions.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import pytest from cloudevents.http import ( diff --git a/cloudevents/tests/test_event_extensions.py b/cloudevents/tests/test_event_extensions.py index b2bffb2..eea8edf 100644 --- a/cloudevents/tests/test_event_extensions.py +++ b/cloudevents/tests/test_event_extensions.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import json import pytest diff --git a/cloudevents/tests/test_event_from_request_converter.py b/cloudevents/tests/test_event_from_request_converter.py index 26ccc21..8e8a80b 100644 --- a/cloudevents/tests/test_event_from_request_converter.py +++ b/cloudevents/tests/test_event_from_request_converter.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_event_pipeline.py b/cloudevents/tests/test_event_pipeline.py index a452c7f..a956a19 100644 --- a/cloudevents/tests/test_event_pipeline.py +++ b/cloudevents/tests/test_event_pipeline.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_event_to_request_converter.py b/cloudevents/tests/test_event_to_request_converter.py index f7c3858..6e58601 100644 --- a/cloudevents/tests/test_event_to_request_converter.py +++ b/cloudevents/tests/test_event_to_request_converter.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_http_cloudevent.py b/cloudevents/tests/test_http_cloudevent.py index 19bbbb5..3737ea6 100644 --- a/cloudevents/tests/test_http_cloudevent.py +++ b/cloudevents/tests/test_http_cloudevent.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import pytest import cloudevents.exceptions as cloud_exceptions diff --git a/cloudevents/tests/test_http_events.py b/cloudevents/tests/test_http_events.py index bc9f0bc..79b5fb8 100644 --- a/cloudevents/tests/test_http_events.py +++ b/cloudevents/tests/test_http_events.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_http_json_methods.py b/cloudevents/tests/test_http_json_methods.py index 71074b1..d95a58d 100644 --- a/cloudevents/tests/test_http_json_methods.py +++ b/cloudevents/tests/test_http_json_methods.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import base64 import json diff --git a/cloudevents/tests/test_marshaller.py b/cloudevents/tests/test_marshaller.py index 8922b7b..1c32fb4 100644 --- a/cloudevents/tests/test_marshaller.py +++ b/cloudevents/tests/test_marshaller.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_options.py b/cloudevents/tests/test_options.py index 1992862..aba812b 100644 --- a/cloudevents/tests/test_options.py +++ b/cloudevents/tests/test_options.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_v03_event.py b/cloudevents/tests/test_v03_event.py index ba26e6e..a475531 100644 --- a/cloudevents/tests/test_v03_event.py +++ b/cloudevents/tests/test_v03_event.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + from cloudevents.sdk.event import v03 diff --git a/cloudevents/tests/test_v1_event.py b/cloudevents/tests/test_v1_event.py index 0ff8772..de900b0 100644 --- a/cloudevents/tests/test_v1_event.py +++ b/cloudevents/tests/test_v1_event.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/cloudevents/tests/test_with_sanic.py b/cloudevents/tests/test_with_sanic.py index 7e3487d..026f55b 100644 --- a/cloudevents/tests/test_with_sanic.py +++ b/cloudevents/tests/test_with_sanic.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain diff --git a/pypi_packaging.py b/pypi_packaging.py index bf02797..1aa7ae9 100644 --- a/pypi_packaging.py +++ b/pypi_packaging.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import os import pkg_resources diff --git a/samples/http-image-cloudevents/client.py b/samples/http-image-cloudevents/client.py index 48cca62..70a3477 100644 --- a/samples/http-image-cloudevents/client.py +++ b/samples/http-image-cloudevents/client.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import sys import requests diff --git a/samples/http-image-cloudevents/image_sample_server.py b/samples/http-image-cloudevents/image_sample_server.py index d5c8256..da30302 100644 --- a/samples/http-image-cloudevents/image_sample_server.py +++ b/samples/http-image-cloudevents/image_sample_server.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import io from flask import Flask, request diff --git a/samples/http-image-cloudevents/image_sample_test.py b/samples/http-image-cloudevents/image_sample_test.py index 2ca47b9..ace9f1c 100644 --- a/samples/http-image-cloudevents/image_sample_test.py +++ b/samples/http-image-cloudevents/image_sample_test.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import base64 import io import json diff --git a/samples/http-json-cloudevents/client.py b/samples/http-json-cloudevents/client.py index a198540..0bc7d27 100644 --- a/samples/http-json-cloudevents/client.py +++ b/samples/http-json-cloudevents/client.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import sys import requests diff --git a/samples/http-json-cloudevents/json_sample_server.py b/samples/http-json-cloudevents/json_sample_server.py index 920324d..c3a399e 100644 --- a/samples/http-json-cloudevents/json_sample_server.py +++ b/samples/http-json-cloudevents/json_sample_server.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + from flask import Flask, request from cloudevents.http import from_http diff --git a/samples/http-json-cloudevents/json_sample_test.py b/samples/http-json-cloudevents/json_sample_test.py index 94f88e1..4f01acb 100644 --- a/samples/http-json-cloudevents/json_sample_test.py +++ b/samples/http-json-cloudevents/json_sample_test.py @@ -1,3 +1,17 @@ +# Copyright 2018-Present The CloudEvents Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import pytest from json_sample_server import app diff --git a/setup.py b/setup.py index 02c5654..81d710c 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -# All Rights Reserved. +# Copyright 2018-Present The CloudEvents Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import codecs import os import pathlib