|
 |
f55398 |
From 2b489ff604701fad6cde1a1df817398f0c4a8bee Mon Sep 17 00:00:00 2001
|
|
 |
f55398 |
From: Min RK <benjaminrk@gmail.com>
|
|
 |
f55398 |
Date: Wed, 27 Nov 2024 13:02:47 +0100
|
|
 |
f55398 |
Subject: [PATCH] fix handling of tornado Apache license
|
|
 |
f55398 |
|
|
 |
f55398 |
- clarify correct license for the derivative work
|
|
 |
f55398 |
- redistribute apache license file
|
|
 |
f55398 |
---
|
|
 |
f55398 |
.gitignore | 3 +-
|
|
 |
f55398 |
CONTRIBUTING.md | 2 +-
|
|
 |
f55398 |
licenses/LICENSE.tornado.txt | 202 +++++++++++++++++++++++++++++++++++
|
|
 |
f55398 |
zmq/eventloop/zmqstream.py | 17 +--
|
|
 |
f55398 |
4 files changed, 209 insertions(+), 15 deletions(-)
|
|
 |
f55398 |
create mode 100644 licenses/LICENSE.tornado.txt
|
|
 |
f55398 |
|
|
 |
f55398 |
diff --git a/.gitignore b/.gitignore
|
|
 |
f55398 |
index 735266120..da9c96809 100644
|
|
 |
f55398 |
--- a/.gitignore
|
|
 |
f55398 |
+++ b/.gitignore
|
|
 |
f55398 |
@@ -47,7 +47,8 @@ cmake_install.cmake
|
|
 |
f55398 |
_deps
|
|
 |
f55398 |
/Makefile
|
|
 |
f55398 |
_src
|
|
 |
f55398 |
-licenses
|
|
 |
f55398 |
+licenses/*
|
|
 |
f55398 |
+!licenses/LICENSE.tornado.txt
|
|
 |
f55398 |
.virtual_documents
|
|
 |
f55398 |
/libsodium-*
|
|
 |
f55398 |
/zeromq-*
|
|
 |
f55398 |
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
|
|
 |
f55398 |
index e0b23ebd2..1519e471a 100644
|
|
 |
f55398 |
--- a/CONTRIBUTING.md
|
|
 |
f55398 |
+++ b/CONTRIBUTING.md
|
|
 |
f55398 |
@@ -65,7 +65,7 @@ specified by the author.
|
|
 |
f55398 |
Some code outside the core is taken from other open-source projects, and
|
|
 |
f55398 |
inherits that project's license.
|
|
 |
f55398 |
|
|
 |
f55398 |
-- zmq/eventloop contains files inherited and adapted from [tornado], and inherits the Apache license
|
|
 |
f55398 |
+- zmq/eventloop contains some code derived from [tornado], used under the Apache 2.0 license
|
|
 |
f55398 |
|
|
 |
f55398 |
- zmq/ssh/forward.py is from [paramiko], and inherits LGPL
|
|
 |
f55398 |
|
|
 |
f55398 |
diff --git a/licenses/LICENSE.tornado.txt b/licenses/LICENSE.tornado.txt
|
|
 |
f55398 |
new file mode 100644
|
|
 |
f55398 |
index 000000000..d64569567
|
|
 |
f55398 |
--- /dev/null
|
|
 |
f55398 |
+++ b/licenses/LICENSE.tornado.txt
|
|
 |
f55398 |
@@ -0,0 +1,202 @@
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ Apache License
|
|
 |
f55398 |
+ Version 2.0, January 2004
|
|
 |
f55398 |
+ http://www.apache.org/licenses/
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 1. Definitions.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "License" shall mean the terms and conditions for use, reproduction,
|
|
 |
f55398 |
+ and distribution as defined by Sections 1 through 9 of this document.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Licensor" shall mean the copyright owner or entity authorized by
|
|
 |
f55398 |
+ the copyright owner that is granting the License.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Legal Entity" shall mean the union of the acting entity and all
|
|
 |
f55398 |
+ other entities that control, are controlled by, or are under common
|
|
 |
f55398 |
+ control with that entity. For the purposes of this definition,
|
|
 |
f55398 |
+ "control" means (i) the power, direct or indirect, to cause the
|
|
 |
f55398 |
+ direction or management of such entity, whether by contract or
|
|
 |
f55398 |
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
 |
f55398 |
+ outstanding shares, or (iii) beneficial ownership of such entity.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "You" (or "Your") shall mean an individual or Legal Entity
|
|
 |
f55398 |
+ exercising permissions granted by this License.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Source" form shall mean the preferred form for making modifications,
|
|
 |
f55398 |
+ including but not limited to software source code, documentation
|
|
 |
f55398 |
+ source, and configuration files.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Object" form shall mean any form resulting from mechanical
|
|
 |
f55398 |
+ transformation or translation of a Source form, including but
|
|
 |
f55398 |
+ not limited to compiled object code, generated documentation,
|
|
 |
f55398 |
+ and conversions to other media types.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Work" shall mean the work of authorship, whether in Source or
|
|
 |
f55398 |
+ Object form, made available under the License, as indicated by a
|
|
 |
f55398 |
+ copyright notice that is included in or attached to the work
|
|
 |
f55398 |
+ (an example is provided in the Appendix below).
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Derivative Works" shall mean any work, whether in Source or Object
|
|
 |
f55398 |
+ form, that is based on (or derived from) the Work and for which the
|
|
 |
f55398 |
+ editorial revisions, annotations, elaborations, or other modifications
|
|
 |
f55398 |
+ represent, as a whole, an original work of authorship. For the purposes
|
|
 |
f55398 |
+ of this License, Derivative Works shall not include works that remain
|
|
 |
f55398 |
+ separable from, or merely link (or bind by name) to the interfaces of,
|
|
 |
f55398 |
+ the Work and Derivative Works thereof.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Contribution" shall mean any work of authorship, including
|
|
 |
f55398 |
+ the original version of the Work and any modifications or additions
|
|
 |
f55398 |
+ to that Work or Derivative Works thereof, that is intentionally
|
|
 |
f55398 |
+ submitted to Licensor for inclusion in the Work by the copyright owner
|
|
 |
f55398 |
+ or by an individual or Legal Entity authorized to submit on behalf of
|
|
 |
f55398 |
+ the copyright owner. For the purposes of this definition, "submitted"
|
|
 |
f55398 |
+ means any form of electronic, verbal, or written communication sent
|
|
 |
f55398 |
+ to the Licensor or its representatives, including but not limited to
|
|
 |
f55398 |
+ communication on electronic mailing lists, source code control systems,
|
|
 |
f55398 |
+ and issue tracking systems that are managed by, or on behalf of, the
|
|
 |
f55398 |
+ Licensor for the purpose of discussing and improving the Work, but
|
|
 |
f55398 |
+ excluding communication that is conspicuously marked or otherwise
|
|
 |
f55398 |
+ designated in writing by the copyright owner as "Not a Contribution."
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ "Contributor" shall mean Licensor and any individual or Legal Entity
|
|
 |
f55398 |
+ on behalf of whom a Contribution has been received by Licensor and
|
|
 |
f55398 |
+ subsequently incorporated within the Work.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 2. Grant of Copyright License. Subject to the terms and conditions of
|
|
 |
f55398 |
+ this License, each Contributor hereby grants to You a perpetual,
|
|
 |
f55398 |
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
 |
f55398 |
+ copyright license to reproduce, prepare Derivative Works of,
|
|
 |
f55398 |
+ publicly display, publicly perform, sublicense, and distribute the
|
|
 |
f55398 |
+ Work and such Derivative Works in Source or Object form.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 3. Grant of Patent License. Subject to the terms and conditions of
|
|
 |
f55398 |
+ this License, each Contributor hereby grants to You a perpetual,
|
|
 |
f55398 |
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
 |
f55398 |
+ (except as stated in this section) patent license to make, have made,
|
|
 |
f55398 |
+ use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
 |
f55398 |
+ where such license applies only to those patent claims licensable
|
|
 |
f55398 |
+ by such Contributor that are necessarily infringed by their
|
|
 |
f55398 |
+ Contribution(s) alone or by combination of their Contribution(s)
|
|
 |
f55398 |
+ with the Work to which such Contribution(s) was submitted. If You
|
|
 |
f55398 |
+ institute patent litigation against any entity (including a
|
|
 |
f55398 |
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
 |
f55398 |
+ or a Contribution incorporated within the Work constitutes direct
|
|
 |
f55398 |
+ or contributory patent infringement, then any patent licenses
|
|
 |
f55398 |
+ granted to You under this License for that Work shall terminate
|
|
 |
f55398 |
+ as of the date such litigation is filed.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 4. Redistribution. You may reproduce and distribute copies of the
|
|
 |
f55398 |
+ Work or Derivative Works thereof in any medium, with or without
|
|
 |
f55398 |
+ modifications, and in Source or Object form, provided that You
|
|
 |
f55398 |
+ meet the following conditions:
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ (a) You must give any other recipients of the Work or
|
|
 |
f55398 |
+ Derivative Works a copy of this License; and
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ (b) You must cause any modified files to carry prominent notices
|
|
 |
f55398 |
+ stating that You changed the files; and
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ (c) You must retain, in the Source form of any Derivative Works
|
|
 |
f55398 |
+ that You distribute, all copyright, patent, trademark, and
|
|
 |
f55398 |
+ attribution notices from the Source form of the Work,
|
|
 |
f55398 |
+ excluding those notices that do not pertain to any part of
|
|
 |
f55398 |
+ the Derivative Works; and
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ (d) If the Work includes a "NOTICE" text file as part of its
|
|
 |
f55398 |
+ distribution, then any Derivative Works that You distribute must
|
|
 |
f55398 |
+ include a readable copy of the attribution notices contained
|
|
 |
f55398 |
+ within such NOTICE file, excluding those notices that do not
|
|
 |
f55398 |
+ pertain to any part of the Derivative Works, in at least one
|
|
 |
f55398 |
+ of the following places: within a NOTICE text file distributed
|
|
 |
f55398 |
+ as part of the Derivative Works; within the Source form or
|
|
 |
f55398 |
+ documentation, if provided along with the Derivative Works; or,
|
|
 |
f55398 |
+ within a display generated by the Derivative Works, if and
|
|
 |
f55398 |
+ wherever such third-party notices normally appear. The contents
|
|
 |
f55398 |
+ of the NOTICE file are for informational purposes only and
|
|
 |
f55398 |
+ do not modify the License. You may add Your own attribution
|
|
 |
f55398 |
+ notices within Derivative Works that You distribute, alongside
|
|
 |
f55398 |
+ or as an addendum to the NOTICE text from the Work, provided
|
|
 |
f55398 |
+ that such additional attribution notices cannot be construed
|
|
 |
f55398 |
+ as modifying the License.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ You may add Your own copyright statement to Your modifications and
|
|
 |
f55398 |
+ may provide additional or different license terms and conditions
|
|
 |
f55398 |
+ for use, reproduction, or distribution of Your modifications, or
|
|
 |
f55398 |
+ for any such Derivative Works as a whole, provided Your use,
|
|
 |
f55398 |
+ reproduction, and distribution of the Work otherwise complies with
|
|
 |
f55398 |
+ the conditions stated in this License.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
 |
f55398 |
+ any Contribution intentionally submitted for inclusion in the Work
|
|
 |
f55398 |
+ by You to the Licensor shall be under the terms and conditions of
|
|
 |
f55398 |
+ this License, without any additional terms or conditions.
|
|
 |
f55398 |
+ Notwithstanding the above, nothing herein shall supersede or modify
|
|
 |
f55398 |
+ the terms of any separate license agreement you may have executed
|
|
 |
f55398 |
+ with Licensor regarding such Contributions.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 6. Trademarks. This License does not grant permission to use the trade
|
|
 |
f55398 |
+ names, trademarks, service marks, or product names of the Licensor,
|
|
 |
f55398 |
+ except as required for reasonable and customary use in describing the
|
|
 |
f55398 |
+ origin of the Work and reproducing the content of the NOTICE file.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 7. Disclaimer of Warranty. Unless required by applicable law or
|
|
 |
f55398 |
+ agreed to in writing, Licensor provides the Work (and each
|
|
 |
f55398 |
+ Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
 |
f55398 |
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
 |
f55398 |
+ implied, including, without limitation, any warranties or conditions
|
|
 |
f55398 |
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
 |
f55398 |
+ PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
 |
f55398 |
+ appropriateness of using or redistributing the Work and assume any
|
|
 |
f55398 |
+ risks associated with Your exercise of permissions under this License.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 8. Limitation of Liability. In no event and under no legal theory,
|
|
 |
f55398 |
+ whether in tort (including negligence), contract, or otherwise,
|
|
 |
f55398 |
+ unless required by applicable law (such as deliberate and grossly
|
|
 |
f55398 |
+ negligent acts) or agreed to in writing, shall any Contributor be
|
|
 |
f55398 |
+ liable to You for damages, including any direct, indirect, special,
|
|
 |
f55398 |
+ incidental, or consequential damages of any character arising as a
|
|
 |
f55398 |
+ result of this License or out of the use or inability to use the
|
|
 |
f55398 |
+ Work (including but not limited to damages for loss of goodwill,
|
|
 |
f55398 |
+ work stoppage, computer failure or malfunction, or any and all
|
|
 |
f55398 |
+ other commercial damages or losses), even if such Contributor
|
|
 |
f55398 |
+ has been advised of the possibility of such damages.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ 9. Accepting Warranty or Additional Liability. While redistributing
|
|
 |
f55398 |
+ the Work or Derivative Works thereof, You may choose to offer,
|
|
 |
f55398 |
+ and charge a fee for, acceptance of support, warranty, indemnity,
|
|
 |
f55398 |
+ or other liability obligations and/or rights consistent with this
|
|
 |
f55398 |
+ License. However, in accepting such obligations, You may act only
|
|
 |
f55398 |
+ on Your own behalf and on Your sole responsibility, not on behalf
|
|
 |
f55398 |
+ of any other Contributor, and only if You agree to indemnify,
|
|
 |
f55398 |
+ defend, and hold each Contributor harmless for any liability
|
|
 |
f55398 |
+ incurred by, or claims asserted against, such Contributor by reason
|
|
 |
f55398 |
+ of your accepting any such warranty or additional liability.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ END OF TERMS AND CONDITIONS
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ APPENDIX: How to apply the Apache License to your work.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ To apply the Apache License to your work, attach the following
|
|
 |
f55398 |
+ boilerplate notice, with the fields enclosed by brackets "[]"
|
|
 |
f55398 |
+ replaced with your own identifying information. (Don't include
|
|
 |
f55398 |
+ the brackets!) The text should be enclosed in the appropriate
|
|
 |
f55398 |
+ comment syntax for the file format. We also recommend that a
|
|
 |
f55398 |
+ file or class name and description of purpose be included on the
|
|
 |
f55398 |
+ same "printed page" as the copyright notice for easier
|
|
 |
f55398 |
+ identification within third-party archives.
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ Copyright [yyyy] [name of copyright owner]
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ Licensed under the Apache License, Version 2.0 (the "License");
|
|
 |
f55398 |
+ you may not use this file except in compliance with the License.
|
|
 |
f55398 |
+ You may obtain a copy of the License at
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ http://www.apache.org/licenses/LICENSE-2.0
|
|
 |
f55398 |
+
|
|
 |
f55398 |
+ Unless required by applicable law or agreed to in writing, software
|
|
 |
f55398 |
+ distributed under the License is distributed on an "AS IS" BASIS,
|
|
 |
f55398 |
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
 |
f55398 |
+ See the License for the specific language governing permissions and
|
|
 |
f55398 |
+ limitations under the License.
|
|
 |
f55398 |
diff --git a/zmq/eventloop/zmqstream.py b/zmq/eventloop/zmqstream.py
|
|
 |
f55398 |
index c7138a7c7..3291f1579 100644
|
|
 |
f55398 |
--- a/zmq/eventloop/zmqstream.py
|
|
 |
f55398 |
+++ b/zmq/eventloop/zmqstream.py
|
|
 |
f55398 |
@@ -1,17 +1,8 @@
|
|
 |
f55398 |
+# Derived from iostream.py from tornado 1.0, Copyright 2009 Facebook
|
|
 |
f55398 |
+# Used under Apache License Version 2.0
|
|
 |
f55398 |
#
|
|
 |
f55398 |
-# Copyright 2009 Facebook
|
|
 |
f55398 |
-#
|
|
 |
f55398 |
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
 |
f55398 |
-# not use this file except in compliance with the License. You may obtain
|
|
 |
f55398 |
-# a copy of the License at
|
|
 |
f55398 |
-#
|
|
 |
f55398 |
-# http://www.apache.org/licenses/LICENSE-2.0
|
|
 |
f55398 |
-#
|
|
 |
f55398 |
-# Unless required by applicable law or agreed to in writing, software
|
|
 |
f55398 |
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
 |
f55398 |
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
 |
f55398 |
-# License for the specific language governing permissions and limitations
|
|
 |
f55398 |
-# under the License.
|
|
 |
f55398 |
+# Modifications are Copyright (C) PyZMQ Developers
|
|
 |
f55398 |
+# Distributed under the terms of the Modified BSD License.
|
|
 |
f55398 |
"""A utility class for event-based messaging on a zmq socket using tornado.
|
|
 |
f55398 |
|
|
 |
f55398 |
.. seealso::
|