diff --git a/.gitignore b/.gitignore index 335b3214..3cdd4c4a 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ htmcov/ nosetests.xml coverage.xml *.cover +*.profraw .hypothesis/ .pytest_cache/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..dcdadd6e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Cloudflare, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 5c0c544f..bd77ebf0 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,4 @@ Tags: ## License -MIT +All packages in this repository are licensed under the [MIT License](./LICENSE). diff --git a/packages/cli/LICENSE b/packages/cli/LICENSE new file mode 100644 index 00000000..dcdadd6e --- /dev/null +++ b/packages/cli/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Cloudflare, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/cli/pyproject.toml b/packages/cli/pyproject.toml index c3e0904d..e08a72a7 100644 --- a/packages/cli/pyproject.toml +++ b/packages/cli/pyproject.toml @@ -7,6 +7,8 @@ name = "workers-py" version = "1.17.5" description = "A set of libraries and tools for Python Workers" readme = "README.md" +license = "MIT" +license-files = ["LICENSE"] requires-python = ">=3.11" classifiers = [ "Programming Language :: Python :: 3", diff --git a/packages/django-cf/LICENSE b/packages/django-cf/LICENSE index c84b6181..cea2e89f 100644 --- a/packages/django-cf/LICENSE +++ b/packages/django-cf/LICENSE @@ -1,6 +1,7 @@ MIT License Copyright (c) 2024 Gabriel Massadas +Copyright (c) 2026 Cloudflare, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/django-cf/pyproject.toml b/packages/django-cf/pyproject.toml index ff9c51f1..54d14498 100644 --- a/packages/django-cf/pyproject.toml +++ b/packages/django-cf/pyproject.toml @@ -15,6 +15,7 @@ dependencies = [ description = "django-cf is a package that integrates Django with Cloudflare products" readme = "README.md" license = "MIT" +license-files = ["LICENSE"] requires-python = ">=3.12" classifiers = [ "Development Status :: 3 - Alpha", diff --git a/packages/runtime-sdk/LICENSE b/packages/runtime-sdk/LICENSE new file mode 100644 index 00000000..dcdadd6e --- /dev/null +++ b/packages/runtime-sdk/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Cloudflare, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/runtime-sdk/pyproject.toml b/packages/runtime-sdk/pyproject.toml index 5c22adaf..b570e732 100644 --- a/packages/runtime-sdk/pyproject.toml +++ b/packages/runtime-sdk/pyproject.toml @@ -7,6 +7,8 @@ name = "workers-runtime-sdk" version = "1.9.2" description = "Python SDK for Cloudflare Workers" readme = "README.md" +license = "MIT" +license-files = ["LICENSE"] requires-python = ">=3.11" classifiers = [ "Programming Language :: Python :: 3", diff --git a/packages/runtime-sdk/tests/workerd-test/durable-object-abort/worker.py b/packages/runtime-sdk/tests/workerd-test/durable-object-abort/worker.py index 6aac47df..71bbb9c8 100644 --- a/packages/runtime-sdk/tests/workerd-test/durable-object-abort/worker.py +++ b/packages/runtime-sdk/tests/workerd-test/durable-object-abort/worker.py @@ -1,6 +1,3 @@ -# Copyright (c) 2026 Cloudflare, Inc. -# Licensed under the Apache 2.0 license found in the LICENSE file or at: -# https://opensource.org/licenses/Apache-2.0 from unittest import TestCase from workers import DurableObject, Response, WorkerEntrypoint diff --git a/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/tester.js b/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/tester.js index 361721d4..e74080c9 100644 --- a/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/tester.js +++ b/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/tester.js @@ -1,6 +1,3 @@ -// Copyright (c) 2025 Cloudflare, Inc. -// Licensed under the Apache 2.0 license found in the LICENSE file or at: -// https://opensource.org/licenses/Apache-2.0 export default { async test(ctrl, env, ctx) { const resp = await env.PYTHON.fetch('http://example.com/websocket', { diff --git a/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/worker.py b/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/worker.py index 073c77bb..5d40f178 100644 --- a/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/worker.py +++ b/packages/runtime-sdk/tests/workerd-test/durable-object-websocket/worker.py @@ -1,7 +1,3 @@ -# Copyright (c) 2023 Cloudflare, Inc. -# Licensed under the Apache 2.0 license found in the LICENSE file or at: -# https://opensource.org/licenses/Apache-2.0 - # Copied from: https://github.com/cloudflare/workerd/tree/main/src/workerd/server/tests/python/durable-object-websocket from js import WebSocketPair diff --git a/packages/runtime-sdk/tests/workerd-test/durable-object/worker.py b/packages/runtime-sdk/tests/workerd-test/durable-object/worker.py index b2f5854f..2c2e65a2 100644 --- a/packages/runtime-sdk/tests/workerd-test/durable-object/worker.py +++ b/packages/runtime-sdk/tests/workerd-test/durable-object/worker.py @@ -1,7 +1,3 @@ -# Copyright (c) 2023 Cloudflare, Inc. -# Licensed under the Apache 2.0 license found in the LICENSE file or at: -# https://opensource.org/licenses/Apache-2.0 - # Copied from: https://github.com/cloudflare/workerd/tree/main/src/workerd/server/tests/python/durable-object from asyncio import sleep diff --git a/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.js b/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.js index c582112b..37881637 100644 --- a/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.js +++ b/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.js @@ -1,6 +1,3 @@ -// Copyright (c) 2025 Cloudflare, Inc. -// Licensed under the Apache 2.0 license found in the LICENSE file or at: -// https://opensource.org/licenses/Apache-2.0 import { WorkerEntrypoint } from 'cloudflare:workers'; import * as assert from 'node:assert'; diff --git a/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.py b/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.py index a39c7eea..6e585c88 100644 --- a/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.py +++ b/packages/runtime-sdk/tests/workerd-test/python-rpc/worker.py @@ -1,7 +1,3 @@ -# Copyright (c) 2023 Cloudflare, Inc. -# Licensed under the Apache 2.0 license found in the LICENSE file or at: -# https://opensource.org/licenses/Apache-2.0 - # Ported from workerd (https://github.com/cloudflare/workerd/tree/main/src/workerd/server/tests/python/python-rpc) import collections.abc diff --git a/packages/runtime-sdk/tests/workerd-test/workflow/worker.js b/packages/runtime-sdk/tests/workerd-test/workflow/worker.js index dd138764..f79d7398 100644 --- a/packages/runtime-sdk/tests/workerd-test/workflow/worker.js +++ b/packages/runtime-sdk/tests/workerd-test/workflow/worker.js @@ -1,6 +1,3 @@ -// Copyright (c) 2026 Cloudflare, Inc. -// Licensed under the Apache 2.0 license found in the LICENSE file or at: -// https://opensource.org/licenses/Apache-2.0 import { RpcTarget } from 'cloudflare:workers'; import * as assert from 'node:assert';