From 72885c7c500f9ebceee1d6d464c6d8ca118b2613 Mon Sep 17 00:00:00 2001 From: Andrew Tang Date: Fri, 26 Jun 2020 14:53:59 -0700 Subject: [PATCH] Update license to remove Copyright year. (#163) Co-authored-by: Andrew Tang --- NOTICE | 1 + awscrt/__init__.py | 14 ++------------ awscrt/auth.py | 14 ++------------ awscrt/awsiot_mqtt_connection_builder.py | 14 ++------------ awscrt/crypto.py | 14 ++------------ awscrt/exceptions.py | 14 ++------------ awscrt/http.py | 14 ++------------ awscrt/io.py | 14 ++------------ awscrt/mqtt.py | 14 ++------------ continuous-delivery/pull-pypirc.py | 14 ++------------ continuous-delivery/test-pip-install.py | 14 ++------------ elasticurl.py | 14 ++------------ mqtt_test.py | 14 ++------------ setup.py | 14 ++------------ source/auth.h | 16 +++------------- source/auth_credentials.c | 16 +++------------- source/auth_signer.c | 16 +++------------- source/auth_signing_config.c | 16 +++------------- source/crypto.c | 16 +++------------- source/crypto.h | 16 +++------------- source/http.h | 16 +++------------- source/http_connection.c | 16 +++------------- source/http_headers.c | 16 +++------------- source/http_message.c | 16 +++------------- source/http_proxy.c | 16 +++------------- source/http_stream.c | 16 +++------------- source/io.c | 16 +++------------- source/io.h | 16 +++------------- source/module.c | 16 +++------------- source/module.h | 16 +++------------- source/mqtt_client.c | 16 +++------------- source/mqtt_client.h | 16 +++------------- source/mqtt_client_connection.c | 16 +++------------- source/mqtt_client_connection.h | 16 +++------------- test/__init__.py | 14 ++------------ test/appexit_http.py | 14 ++------------ test/test_appexit.py | 14 ++------------ test/test_auth.py | 14 ++------------ test/test_exceptions.py | 14 ++------------ test/test_http_client.py | 14 ++------------ test/test_http_headers.py | 14 ++------------ test/test_io.py | 14 ++------------ test/test_mqtt.py | 14 ++------------ 43 files changed, 105 insertions(+), 524 deletions(-) diff --git a/NOTICE b/NOTICE index 20592a80f..64177a4eb 100644 --- a/NOTICE +++ b/NOTICE @@ -1,2 +1,3 @@ AWS Crt Python Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +SPDX-License-Identifier: Apache-2.0. diff --git a/awscrt/__init__.py b/awscrt/__init__.py index 183a541e6..1e7187f17 100644 --- a/awscrt/__init__.py +++ b/awscrt/__init__.py @@ -1,15 +1,5 @@ -# Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from sys import version_info from weakref import WeakSet diff --git a/awscrt/auth.py b/awscrt/auth.py index 70cd07cf3..364e4fe89 100644 --- a/awscrt/auth.py +++ b/awscrt/auth.py @@ -2,18 +2,8 @@ AWS client-side authentication: standard credentials providers and signing. """ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import import _awscrt diff --git a/awscrt/awsiot_mqtt_connection_builder.py b/awscrt/awsiot_mqtt_connection_builder.py index ba48dbb1c..45ce67947 100644 --- a/awscrt/awsiot_mqtt_connection_builder.py +++ b/awscrt/awsiot_mqtt_connection_builder.py @@ -80,18 +80,8 @@ enable_metrics_collection (bool): Whether to send the SDK version number in the CONNECT packet. Default is True. """ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. import awscrt.auth import awscrt.io diff --git a/awscrt/crypto.py b/awscrt/crypto.py index 9cf6c657d..2c3fae2cf 100644 --- a/awscrt/crypto.py +++ b/awscrt/crypto.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. import _awscrt diff --git a/awscrt/exceptions.py b/awscrt/exceptions.py index 7b61d8a52..21a55b330 100644 --- a/awscrt/exceptions.py +++ b/awscrt/exceptions.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. import _awscrt diff --git a/awscrt/http.py b/awscrt/http.py index f07632e45..1d7638de4 100644 --- a/awscrt/http.py +++ b/awscrt/http.py @@ -4,18 +4,8 @@ All network operations in `awscrt.http` are asynchronous. """ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import import _awscrt diff --git a/awscrt/io.py b/awscrt/io.py index 8d1a8e45a..322edc744 100644 --- a/awscrt/io.py +++ b/awscrt/io.py @@ -5,18 +5,8 @@ Long-running event-loop threads are used for concurrency. """ -# Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import import _awscrt diff --git a/awscrt/mqtt.py b/awscrt/mqtt.py index 3b0ac7615..03c0b898a 100644 --- a/awscrt/mqtt.py +++ b/awscrt/mqtt.py @@ -4,18 +4,8 @@ All network operations in `awscrt.mqtt` are asynchronous. """ -# Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. import _awscrt from concurrent.futures import Future diff --git a/continuous-delivery/pull-pypirc.py b/continuous-delivery/pull-pypirc.py index 5caae5332..aa0e3c58c 100644 --- a/continuous-delivery/pull-pypirc.py +++ b/continuous-delivery/pull-pypirc.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. import boto3 import base64 diff --git a/continuous-delivery/test-pip-install.py b/continuous-delivery/test-pip-install.py index 0d2bf3d37..70b522598 100644 --- a/continuous-delivery/test-pip-install.py +++ b/continuous-delivery/test-pip-install.py @@ -1,15 +1,5 @@ -# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. import awscrt.io diff --git a/elasticurl.py b/elasticurl.py index 7703dc42d..fe41dab94 100755 --- a/elasticurl.py +++ b/elasticurl.py @@ -1,15 +1,5 @@ -# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import print_function import argparse import sys diff --git a/mqtt_test.py b/mqtt_test.py index 79d220ba1..cb7493877 100644 --- a/mqtt_test.py +++ b/mqtt_test.py @@ -1,15 +1,5 @@ -# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import print_function diff --git a/setup.py b/setup.py index f3e95aad7..b26c78015 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import print_function import distutils.ccompiler diff --git a/source/auth.h b/source/auth.h index 8ec01f205..ef63a8470 100644 --- a/source/auth.h +++ b/source/auth.h @@ -1,18 +1,8 @@ #ifndef AWS_CRT_PYTHON_AUTH_H #define AWS_CRT_PYTHON_AUTH_H -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "module.h" diff --git a/source/auth_credentials.c b/source/auth_credentials.c index 5ab0e6803..767c8969c 100644 --- a/source/auth_credentials.c +++ b/source/auth_credentials.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "auth.h" diff --git a/source/auth_signer.c b/source/auth_signer.c index ca1968312..a6aa38e33 100644 --- a/source/auth_signer.c +++ b/source/auth_signer.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "auth.h" diff --git a/source/auth_signing_config.c b/source/auth_signing_config.c index cf48a3c4f..ff08f1178 100644 --- a/source/auth_signing_config.c +++ b/source/auth_signing_config.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "auth.h" diff --git a/source/crypto.c b/source/crypto.c index 2fe140818..697b87a50 100644 --- a/source/crypto.c +++ b/source/crypto.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "crypto.h" diff --git a/source/crypto.h b/source/crypto.h index 0eb8b8b80..600b74a23 100644 --- a/source/crypto.h +++ b/source/crypto.h @@ -1,18 +1,8 @@ #ifndef AWS_CRT_PYTHON_CRYPTO_H #define AWS_CRT_PYTHON_CRYPTO_H -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "module.h" diff --git a/source/http.h b/source/http.h index 2f6d479dc..cea616b8a 100644 --- a/source/http.h +++ b/source/http.h @@ -1,18 +1,8 @@ #ifndef AWS_CRT_PYTHON_HTTP_H #define AWS_CRT_PYTHON_HTTP_H -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "module.h" diff --git a/source/http_connection.c b/source/http_connection.c index b7812f396..32ab15870 100644 --- a/source/http_connection.c +++ b/source/http_connection.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "http.h" diff --git a/source/http_headers.c b/source/http_headers.c index b6ea8fc5c..9a1e7f01b 100644 --- a/source/http_headers.c +++ b/source/http_headers.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "http.h" diff --git a/source/http_message.c b/source/http_message.c index 5161e90fd..d938e6f54 100644 --- a/source/http_message.c +++ b/source/http_message.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "http.h" diff --git a/source/http_proxy.c b/source/http_proxy.c index 39c3f2fba..743affd57 100644 --- a/source/http_proxy.c +++ b/source/http_proxy.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "http.h" diff --git a/source/http_stream.c b/source/http_stream.c index b2da0ad50..c902373aa 100644 --- a/source/http_stream.c +++ b/source/http_stream.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "http.h" diff --git a/source/io.c b/source/io.c index 0d412bb5f..1a8f51c94 100644 --- a/source/io.c +++ b/source/io.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "io.h" diff --git a/source/io.h b/source/io.h index a5c0c3341..d6c81e40e 100644 --- a/source/io.h +++ b/source/io.h @@ -1,18 +1,8 @@ #ifndef AWS_CRT_PYTHON_IO_H #define AWS_CRT_PYTHON_IO_H -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ /** diff --git a/source/module.c b/source/module.c index 1320dd6ed..4fe18f370 100644 --- a/source/module.c +++ b/source/module.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "module.h" diff --git a/source/module.h b/source/module.h index a31153649..757e83621 100644 --- a/source/module.h +++ b/source/module.h @@ -1,18 +1,8 @@ #ifndef AWS_CRT_PYTHON_MODULE_H #define AWS_CRT_PYTHON_MODULE_H -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ /** diff --git a/source/mqtt_client.c b/source/mqtt_client.c index 8446498e7..5d84fe4db 100644 --- a/source/mqtt_client.c +++ b/source/mqtt_client.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "mqtt_client.h" diff --git a/source/mqtt_client.h b/source/mqtt_client.h index 35d16d02e..eb57156d2 100644 --- a/source/mqtt_client.h +++ b/source/mqtt_client.h @@ -1,18 +1,8 @@ #ifndef AWS_CRT_PYTHON_MQTT_CLIENT_H #define AWS_CRT_PYTHON_MQTT_CLIENT_H -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "module.h" diff --git a/source/mqtt_client_connection.c b/source/mqtt_client_connection.c index e25aebb05..4dd6a765f 100644 --- a/source/mqtt_client_connection.c +++ b/source/mqtt_client_connection.c @@ -1,16 +1,6 @@ -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ #include "mqtt_client_connection.h" diff --git a/source/mqtt_client_connection.h b/source/mqtt_client_connection.h index 7041567b4..fc97f6c30 100644 --- a/source/mqtt_client_connection.h +++ b/source/mqtt_client_connection.h @@ -1,18 +1,8 @@ #ifndef MQTT_CLIENT_CONNECTION_H #define MQTT_CLIENT_CONNECTION_H -/* - * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ /** diff --git a/test/__init__.py b/test/__init__.py index c68f90aaa..228b645db 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import print_function from awscrt import NativeResource diff --git a/test/appexit_http.py b/test/appexit_http.py index d30726034..95608bc41 100644 --- a/test/appexit_http.py +++ b/test/appexit_http.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import, print_function import awscrt.http diff --git a/test/test_appexit.py b/test/test_appexit.py index 820ea7a75..85cd675a5 100644 --- a/test/test_appexit.py +++ b/test/test_appexit.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import, print_function import subprocess diff --git a/test/test_auth.py b/test/test_auth.py index 7c0082d7c..0043afecb 100644 --- a/test/test_auth.py +++ b/test/test_auth.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import import awscrt.auth diff --git a/test/test_exceptions.py b/test/test_exceptions.py index 97a0005cf..4f2571019 100644 --- a/test/test_exceptions.py +++ b/test/test_exceptions.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. import awscrt.exceptions import unittest diff --git a/test/test_http_client.py b/test/test_http_client.py index 7e11f19fa..7b6ffaed0 100644 --- a/test/test_http_client.py +++ b/test/test_http_client.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import import awscrt.exceptions diff --git a/test/test_http_headers.py b/test/test_http_headers.py index aa99dbe5c..3146176ff 100644 --- a/test/test_http_headers.py +++ b/test/test_http_headers.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from awscrt.http import HttpHeaders, HttpRequest import awscrt.io diff --git a/test/test_io.py b/test/test_io.py index f8196d54a..a24fc8921 100644 --- a/test/test_io.py +++ b/test/test_io.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import from awscrt.io import ClientBootstrap, ClientTlsContext, DefaultHostResolver, EventLoopGroup, TlsConnectionOptions, TlsContextOptions diff --git a/test/test_mqtt.py b/test/test_mqtt.py index c9473dfa1..0a7d1d2b1 100644 --- a/test/test_mqtt.py +++ b/test/test_mqtt.py @@ -1,15 +1,5 @@ -# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). -# You may not use this file except in compliance with the License. -# A copy of the License is located at -# -# http://aws.amazon.com/apache2.0 -# -# or in the "license" file accompanying this file. This file 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. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0. from __future__ import absolute_import from awscrt import awsiot_mqtt_connection_builder