Skip to content

Commit 30156d9

Browse files
committed
add attribution for unasync, add copyright notices
1 parent 313af8f commit 30156d9

File tree

6 files changed

+76
-6
lines changed

6 files changed

+76
-6
lines changed

LICENSE

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,3 +652,36 @@ For the files wingetopt.c wingetopt.h downloaded from https://github.com/alex85k
652652
*/
653653

654654

655+
656+
LICENSE.unasync
657+
--------------------------------------------------------------
658+
For unasync code in setup.py, derived from
659+
https://github.com/encode/httpcore/blob/ae46dfbd4330eefaa9cd6ab1560dec18a1d0bcb8/scripts/unasync.py
660+
661+
Copyright © 2020, [Encode OSS Ltd](https://www.encode.io/).
662+
All rights reserved.
663+
664+
Redistribution and use in source and binary forms, with or without
665+
modification, are permitted provided that the following conditions are met:
666+
667+
* Redistributions of source code must retain the above copyright notice, this
668+
list of conditions and the following disclaimer.
669+
670+
* Redistributions in binary form must reproduce the above copyright notice,
671+
this list of conditions and the following disclaimer in the documentation
672+
and/or other materials provided with the distribution.
673+
674+
* Neither the name of the copyright holder nor the names of its
675+
contributors may be used to endorse or promote products derived from
676+
this software without specific prior written permission.
677+
678+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
679+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
680+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
681+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
682+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
683+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
684+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
685+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
686+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
687+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

src/confluent_kafka/schema_registry/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@
3030
RuleSet,
3131
Schema,
3232
SchemaRegistryClient,
33+
SchemaRegistryError,
3334
AsyncSchemaRegistryClient,
3435
SchemaReference,
3536
ServerConfig
3637
)
3738

38-
from .error import SchemaRegistryError
39-
4039
_MAGIC_BYTE = 0
4140

4241
__all__ = [

src/confluent_kafka/schema_registry/protobuf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2020 Confluent Inc.
4+
# Copyright 2020-2022 Confluent Inc.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -15,5 +15,5 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
from ._async.protobuf import *
19-
from ._sync.protobuf import *
18+
from ._async.protobuf import AsyncProtobufSerializer, AsyncProtobufDeserializer
19+
from ._sync.protobuf import ProtobufSerializer, ProtobufDeserializer

src/confluent_kafka/schema_registry/schema_registry_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2025 Confluent Inc.
4+
# Copyright 2020 Confluent Inc.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -31,5 +31,7 @@
3131
ServerConfig
3232
)
3333

34+
from .error import SchemaRegistryError
35+
3436
from ._async.schema_registry_client import AsyncSchemaRegistryClient
3537
from ._sync.schema_registry_client import SchemaRegistryClient

tests/common/_async/consumer.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright 2025 Confluent Inc.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
119
import asyncio
220

321
from confluent_kafka.cimpl import Consumer

tests/common/_async/producer.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright 2025 Confluent Inc.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
119
from confluent_kafka.cimpl import Producer
220
import inspect
321
import asyncio

0 commit comments

Comments
 (0)