Skip to content

Commit d5d1111

Browse files
committed
[3.11] gh-95649: Document that asyncio contains uvloop code (GH-107536)
Some of the asyncio SSL changes in GH-31275 [1] were taken from v0.16.0 of the uvloop project [2]. In order to comply with the MIT license, we need to just need to document the copyright information. [1]: python/cpython#31275 [2]: https://github.com/MagicStack/uvloop/tree/v0.16.0 (cherry picked from commit dce30c9)
1 parent 41edd37 commit d5d1111

File tree

7 files changed

+49
-0
lines changed

7 files changed

+49
-0
lines changed

Doc/license.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,3 +1064,32 @@ The audioop module uses the code base in g771.c file of the SoX project::
10641064
distributed freely. This document may not be included in published
10651065
material or commercial packages without the written consent of its
10661066
author.
1067+
1068+
1069+
asyncio
1070+
----------
1071+
1072+
Parts of the :mod:`asyncio` module are incorporated from
1073+
`uvloop 0.16 <https://github.com/MagicStack/uvloop/tree/v0.16.0>`_,
1074+
which is distributed under the MIT license::
1075+
1076+
Copyright (c) 2015-2021 MagicStack Inc. http://magic.io
1077+
1078+
Permission is hereby granted, free of charge, to any person obtaining
1079+
a copy of this software and associated documentation files (the
1080+
"Software"), to deal in the Software without restriction, including
1081+
without limitation the rights to use, copy, modify, merge, publish,
1082+
distribute, sublicense, and/or sell copies of the Software, and to
1083+
permit persons to whom the Software is furnished to do so, subject to
1084+
the following conditions:
1085+
1086+
The above copyright notice and this permission notice shall be
1087+
included in all copies or substantial portions of the Software.
1088+
1089+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1090+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1091+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1092+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1093+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1094+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1095+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Lib/asyncio/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Contains code from https://github.com/MagicStack/uvloop/tree/v0.16.0
2+
# SPDX-License-Identifier: PSF-2.0 AND (MIT OR Apache-2.0)
3+
# SPDX-FileCopyrightText: Copyright (c) 2015-2021 MagicStack Inc. http://magic.io
4+
15
import enum
26

37
# After the connection is lost, log warnings after this many write()s.

Lib/asyncio/events.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""Event loop and event loop policy."""
22

3+
# Contains code from https://github.com/MagicStack/uvloop/tree/v0.16.0
4+
# SPDX-License-Identifier: PSF-2.0 AND (MIT OR Apache-2.0)
5+
# SPDX-FileCopyrightText: Copyright (c) 2015-2021 MagicStack Inc. http://magic.io
6+
37
__all__ = (
48
'AbstractEventLoopPolicy',
59
'AbstractEventLoop', 'AbstractServer',

Lib/asyncio/sslproto.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Contains code from https://github.com/MagicStack/uvloop/tree/v0.16.0
2+
# SPDX-License-Identifier: PSF-2.0 AND (MIT OR Apache-2.0)
3+
# SPDX-FileCopyrightText: Copyright (c) 2015-2021 MagicStack Inc. http://magic.io
4+
15
import collections
26
import enum
37
import warnings

Lib/test/test_asyncio/test_ssl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Contains code from https://github.com/MagicStack/uvloop/tree/v0.16.0
2+
# SPDX-License-Identifier: PSF-2.0 AND (MIT OR Apache-2.0)
3+
# SPDX-FileCopyrightText: Copyright (c) 2015-2021 MagicStack Inc. http://magic.io
4+
15
import asyncio
26
import asyncio.sslproto
37
import contextlib

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ Carsten Klein
944944
Bastian Kleineidam
945945
Joel Klimont
946946
Bob Kline
947+
Alois Klink
947948
Matthias Klose
948949
Jeremy Kloth
949950
Thomas Kluyver
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Document that the :mod:`asyncio` module contains code taken from `v0.16.0 of
2+
the uvloop project <https://github.com/MagicStack/uvloop/tree/v0.16.0>`_, as
3+
well as the required MIT licensing information.

0 commit comments

Comments
 (0)