From d7ba3fa7d14af3f8cf02a8d611c9bd6ea52a98d9 Mon Sep 17 00:00:00 2001 From: Olamide Ojo Date: Thu, 12 Dec 2024 15:31:14 +0100 Subject: [PATCH] Use Reuse for license Signed-off-by: Olamide Ojo --- .fmf/version | 3 + .github/renovate.json.license | 4 + .github/workflows/main.yml | 4 + .gitignore | 4 + .gitleaks.toml | 4 + .mergify.yml | 90 ---- .packit.yaml | 4 + .pre-commit-config.yaml | 11 +- .readthedocs.yml | 4 + CODEOWNERS | 4 + LICENSE | 488 +++++++----------- LICENSES/GPL-2.0-or-later.txt | 117 +++++ README.rst | 5 + SECURITY.md | 7 + codecov.yml | 4 + config.toml.example | 3 + configs/cacert.pem.license | 4 + configs/fedora-cert.pem.license | 4 + configs/fedora-key.pem.license | 4 + configs/fedora.stg-cert.pem.license | 4 + configs/fedora.stg-key.pem.license | 4 + configs/fedora.stg.toml | 4 + configs/fedora.toml | 4 + configs/stg-cacert.pem.license | 4 + devel/run-liccheck.sh | 7 +- docs/Makefile | 4 + docs/api/api.rst | 5 + docs/api/wire-format.rst | 5 + docs/build-schemas-list.py | 4 + docs/changelog.md | 7 + docs/conf.py | 4 + docs/contributing.rst | 5 + docs/index.rst | 4 + docs/requirements-readthedocs.txt | 3 + docs/sample_schema_package/MANIFEST.in | 4 + docs/sample_schema_package/README | 3 + .../mailman_messages/__init__.py | 16 +- .../mailman_messages/messages.py | 17 +- .../mailman_messages/tests/__init__.py | 16 +- .../mailman_messages/tests/test_messages.py | 17 +- docs/sample_schema_package/setup.cfg | 4 + docs/sample_schema_package/setup.py | 19 +- docs/schema-packages.txt | 3 + docs/tutorial/conversion.rst | 5 + docs/tutorial/exceptions.rst | 5 + docs/tutorial/installation.rst | 5 + docs/tutorial/schemas.rst | 5 + docs/tutorial/usage.rst | 5 + docs/user-guide/cli.rst | 5 + docs/user-guide/cli/fedora-messaging.rst | 4 + docs/user-guide/configuration.rst | 4 + docs/user-guide/consuming.rst | 4 + docs/user-guide/installation.rst | 5 + docs/user-guide/messages.rst | 5 + docs/user-guide/publishing.rst | 4 + docs/user-guide/quick-start.rst | 4 + docs/user-guide/schemas.rst | 4 + docs/user-guide/testing.rst | 4 + fedora_messaging/__init__.py | 17 +- fedora_messaging/api.py | 4 + fedora_messaging/cli.py | 18 +- fedora_messaging/config.py | 18 +- fedora_messaging/example.py | 18 +- fedora_messaging/exceptions.py | 4 + fedora_messaging/message.py | 4 + fedora_messaging/schema_utils.py | 17 +- fedora_messaging/signals.py | 18 +- fedora_messaging/testing.py | 18 +- fedora_messaging/twisted/__init__.py | 3 + fedora_messaging/twisted/consumer.py | 17 +- fedora_messaging/twisted/factory.py | 18 +- fedora_messaging/twisted/monitor.py | 17 +- fedora_messaging/twisted/protocol.py | 18 +- fedora_messaging/twisted/service.py | 18 +- fedora_messaging/twisted/stats.py | 17 +- fm-consumer@.service | 3 + news/187.feature.license | 2 + news/359.feature.license | 2 + news/380.feature.license | 2 + news/383.docs.md | 8 + news/_template.md | 7 + news/get-authors.py | 4 + packit/installation/main.fmf | 3 + poetry.lock.license | 4 + pyproject.toml | 6 +- tests/__init__.py | 3 + tests/conftest.py | 17 +- tests/fixtures/bad_cb | 3 + tests/fixtures/bad_conf.toml | 4 + tests/fixtures/ca_bundle.pem.license | 4 + tests/fixtures/callback.py | 5 + tests/fixtures/cert.pem.license | 4 + tests/fixtures/cli_integration.toml | 3 + tests/fixtures/good_conf.toml | 4 + tests/fixtures/good_msg_dump.txt | 3 + tests/fixtures/invalid_ca.pem.license | 4 + tests/fixtures/invalid_key.pem.license | 4 + tests/fixtures/invalid_msg_dump.txt | 3 + tests/fixtures/key.pem.license | 4 + tests/fixtures/msg_without_topic_dump.txt | 3 + tests/fixtures/wrong_json_msg_dump.txt | 3 + tests/integration/__init__.py | 3 + tests/integration/test_api.py | 4 + tests/integration/test_cli.py | 17 +- tests/integration/utils.py | 4 + tests/unit/__init__.py | 3 + tests/unit/test_api.py | 18 +- tests/unit/test_cli.py | 18 +- tests/unit/test_config.py | 18 +- tests/unit/test_example.py | 18 +- tests/unit/test_message.py | 17 +- tests/unit/test_schema_utils.py | 17 +- tests/unit/test_testing.py | 18 +- tests/unit/twisted/__init__.py | 3 + tests/unit/twisted/test_consumer.py | 18 +- tests/unit/twisted/test_factory.py | 18 +- tests/unit/twisted/test_monitor.py | 17 +- tests/unit/twisted/test_protocol.py | 18 +- tests/unit/twisted/test_service.py | 18 +- tests/unit/twisted/test_stats.py | 17 +- tests/unit/twisted/utils.py | 18 +- tests/utils.py | 17 +- tox.ini | 5 + 123 files changed, 731 insertions(+), 932 deletions(-) create mode 100644 .github/renovate.json.license delete mode 100644 .mergify.yml create mode 100644 LICENSES/GPL-2.0-or-later.txt create mode 100644 configs/cacert.pem.license create mode 100644 configs/fedora-cert.pem.license create mode 100644 configs/fedora-key.pem.license create mode 100644 configs/fedora.stg-cert.pem.license create mode 100644 configs/fedora.stg-key.pem.license create mode 100644 configs/stg-cacert.pem.license create mode 100644 news/187.feature.license create mode 100644 news/359.feature.license create mode 100644 news/380.feature.license create mode 100644 news/383.docs.md create mode 100644 poetry.lock.license create mode 100644 tests/fixtures/ca_bundle.pem.license create mode 100644 tests/fixtures/cert.pem.license create mode 100644 tests/fixtures/invalid_ca.pem.license create mode 100644 tests/fixtures/invalid_key.pem.license create mode 100644 tests/fixtures/key.pem.license diff --git a/.fmf/version b/.fmf/version index d00491fd..e8fa8b62 100644 --- a/.fmf/version +++ b/.fmf/version @@ -1 +1,4 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + 1 diff --git a/.github/renovate.json.license b/.github/renovate.json.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/.github/renovate.json.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 654c2e41..e4b5e693 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + name: Test & Build on: diff --git a/.gitignore b/.gitignore index b9b51fee..82d82db7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + # Local config file config.toml diff --git a/.gitleaks.toml b/.gitleaks.toml index 48ad3a82..012021d7 100644 --- a/.gitleaks.toml +++ b/.gitleaks.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + [allowlist] paths = [ "configs/fedora-key.pem", diff --git a/.mergify.yml b/.mergify.yml deleted file mode 100644 index 7218996b..00000000 --- a/.mergify.yml +++ /dev/null @@ -1,90 +0,0 @@ -queue_rules: - - name: duplicated default from default - queue_conditions: - - label!=no-mergify - - -draft - - approved-reviews-by=@fedora-infra/fedora-messaging-maintainers - - "#changes-requested-reviews-by=0" - - status-success=DCO - - status-success=Misc tests (checks) - - status-success=Unit tests (py38-unittest) - - status-success=Unit tests (py39-unittest) - - status-success=Unit tests (py310-unittest) - - status-success=Unit tests (py311-unittest) - - status-success=Unit tests (py312-unittest) - - status-success=Integration tests (py38-integration) - - status-success=Integration tests (py39-integration) - - status-success=Integration tests (py310-integration) - - status-success=Integration tests (py311-integration) - - status-success=Integration tests (py312-integration) - merge_conditions: - # Conditions to get out of the queue (= merged) - - status-success=Misc tests (checks) - # - status-success=Misc tests (licenses) - - status-success=Unit tests (py38-unittest) - - status-success=Unit tests (py39-unittest) - - status-success=Unit tests (py310-unittest) - - status-success=Unit tests (py311-unittest) - - status-success=Unit tests (py312-unittest) - - status-success=Integration tests (py38-integration) - - status-success=Integration tests (py39-integration) - - status-success=Integration tests (py310-integration) - - status-success=Integration tests (py311-integration) - - status-success=Integration tests (py312-integration) - merge_method: rebase - - name: duplicated default from default-from-fedora-messaging-team - queue_conditions: - - label!=no-mergify - - -draft - - author=@fedora-infra/fedora-messaging-maintainers - - "#approved-reviews-by>=1" - - "#changes-requested-reviews-by=0" - - status-success=DCO - - status-success=Misc tests (checks) - - status-success=Unit tests (py38-unittest) - - status-success=Unit tests (py39-unittest) - - status-success=Unit tests (py310-unittest) - - status-success=Unit tests (py311-unittest) - - status-success=Unit tests (py312-unittest) - - status-success=Integration tests (py38-integration) - - status-success=Integration tests (py39-integration) - - status-success=Integration tests (py310-integration) - - status-success=Integration tests (py311-integration) - - status-success=Integration tests (py312-integration) - merge_conditions: - # Conditions to get out of the queue (= merged) - - status-success=Misc tests (checks) - # - status-success=Misc tests (licenses) - - status-success=Unit tests (py38-unittest) - - status-success=Unit tests (py39-unittest) - - status-success=Unit tests (py310-unittest) - - status-success=Unit tests (py311-unittest) - - status-success=Unit tests (py312-unittest) - - status-success=Integration tests (py38-integration) - - status-success=Integration tests (py39-integration) - - status-success=Integration tests (py310-integration) - - status-success=Integration tests (py311-integration) - - status-success=Integration tests (py312-integration) - merge_method: rebase - - name: default - conditions: - # Conditions to get out of the queue (= merged) - - status-success=Misc tests (checks) - # - status-success=Misc tests (licenses) - - status-success=Unit tests (py38-unittest) - - status-success=Unit tests (py39-unittest) - - status-success=Unit tests (py310-unittest) - - status-success=Unit tests (py311-unittest) - - status-success=Unit tests (py312-unittest) - - status-success=Integration tests (py38-integration) - - status-success=Integration tests (py39-integration) - - status-success=Integration tests (py310-integration) - - status-success=Integration tests (py311-integration) - - status-success=Integration tests (py312-integration) - -pull_request_rules: - - - name: default + default-from-fedora-messaging-team - conditions: [] - actions: - queue: diff --git a/.packit.yaml b/.packit.yaml index 4ad25472..876ae38f 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + # See the documentation for more information: # https://packit.dev/docs/configuration/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a62ce446..1c70f816 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + repos: # Generic hooks - repo: https://github.com/pre-commit/pre-commit-hooks @@ -24,7 +28,7 @@ repos: # Ruff - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: v0.8.2 + rev: v0.8.3 hooks: - id: ruff @@ -33,3 +37,8 @@ repos: hooks: - id: rstcheck additional_dependencies: [sphinx, tomli] + + - repo: https://github.com/fsfe/reuse-tool + rev: v5.0.2 + hooks: + - id: reuse diff --git a/.readthedocs.yml b/.readthedocs.yml index 7718519e..d2959708 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details --- diff --git a/CODEOWNERS b/CODEOWNERS index 27c1fb88..4a186f81 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + * @fedora-infra/fedmsg-maintainers diff --git a/LICENSE b/LICENSE index d159169d..70f0ded9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,339 +1,205 @@ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. +Copyright (C) 1989 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +Everyone is permitted to copy and distribute verbatim copies of this +license document, but changing it is not allowed. Preamble - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. + The licenses for most software are designed to take away your freedom to share and change it. By contrast, +the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software +is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other +program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. + + When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can +get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. +You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + + We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. +If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems +introduced by others will not reflect on the original authors' reputations. + + Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually +obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free +use or not licensed at all. + + The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the + 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be +distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a +"work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing +the Program or a portion of it, either verbatim or with modifications and/or translated into another language. +(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". + + Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. +The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute +a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy +of this License along with the Program. + + You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy +and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or + any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. + + c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does + not normally print such an announcement, your work based on the Program is not required to print an announcement.) + + These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. + Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent +is to exercise the right to control the distribution of derivative or collective works based on the Program. - END OF TERMS AND CONDITIONS + In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a +volume of a storage or distribution medium does not bring the other work under the scope of this License. - How to Apply These Terms to Your New Programs + 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the +terms of Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of + Sections 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than + your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, + to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. + c) Accompany it with the information you received as to the offer to distribute corresponding source code. + (This alternative is allowed only for noncommercial distribution and only if you received the program in object + code or executable form with such an offer, in accord with Subsection b above.) - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. + The source code for a work means the preferred form of the work for making modifications to it. For an executable +work, complete source code means all the source code for all modules it contains, plus any associated interface definition +files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the +source code distributed need not include anything that is normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + + If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled +to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise +to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, +parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + + 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify +or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, +by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, +and all its terms and conditions for copying, distributing or modifying the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from +the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. + + 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License +and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would +not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you +could satisfy both it and this License would be to refrain entirely from distribution of the Program. + + If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended +to apply and the section as a whole is intended to apply in other circumstances. + + It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity +of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is +implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through +that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute +software through any other system and a licensee cannot impose that choice. + + This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, +the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the +limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and conditions either of that version or of any later version published by +the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by +the Free Software Foundation. + + 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make +exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting +the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL +NECESSARY SERVICING, REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES +SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN +ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs - - Copyright (C) + If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to +make it free software which everyone can redistribute and change under these terms. - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. -Also add information on how to contact you by electronic and paper mail. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. + If the program is interactive, make it output a short notice like this when it starts in an interactive mode: -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: + The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands +you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. + You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, +if necessary. Here is a sample; alter the names: - , 1 April 1989 - Ty Coon, President of Vice + Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. + signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice diff --git a/LICENSES/GPL-2.0-or-later.txt b/LICENSES/GPL-2.0-or-later.txt new file mode 100644 index 00000000..17cb2864 --- /dev/null +++ b/LICENSES/GPL-2.0-or-later.txt @@ -0,0 +1,117 @@ +GNU GENERAL PUBLIC LICENSE +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. + + c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author + + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. + +signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice diff --git a/README.rst b/README.rst index 1c23454d..fbd26a45 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + Fedora Messaging ================ diff --git a/SECURITY.md b/SECURITY.md index c2e62e8a..7ebab4c7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1,10 @@ + + ### Security Policy #### Reporting a Vulnerability diff --git a/codecov.yml b/codecov.yml index ce7c614b..d5bcf1ec 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + coverage: status: project: diff --git a/config.toml.example b/config.toml.example index a4e742f6..bdac44ba 100644 --- a/config.toml.example +++ b/config.toml.example @@ -1,3 +1,6 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + # A sample configuration for fedora-messaging. This file is in the TOML format. amqp_url = "amqp://" callback = "fedora_messaging.example:printer" diff --git a/configs/cacert.pem.license b/configs/cacert.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/configs/cacert.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/configs/fedora-cert.pem.license b/configs/fedora-cert.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/configs/fedora-cert.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/configs/fedora-key.pem.license b/configs/fedora-key.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/configs/fedora-key.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/configs/fedora.stg-cert.pem.license b/configs/fedora.stg-cert.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/configs/fedora.stg-cert.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/configs/fedora.stg-key.pem.license b/configs/fedora.stg-key.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/configs/fedora.stg-key.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/configs/fedora.stg.toml b/configs/fedora.stg.toml index 25de2620..3fe41c47 100644 --- a/configs/fedora.stg.toml +++ b/configs/fedora.stg.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + # A basic configuration for Fedora's staging message broker, using the example # callback which simply prints messages to standard output. # diff --git a/configs/fedora.toml b/configs/fedora.toml index 5dfa23e8..c31962c2 100644 --- a/configs/fedora.toml +++ b/configs/fedora.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + # A basic configuration for Fedora's message broker, using the example callback # which simply prints messages to standard output. # diff --git a/configs/stg-cacert.pem.license b/configs/stg-cacert.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/configs/stg-cacert.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/devel/run-liccheck.sh b/devel/run-liccheck.sh index ed24693c..11292af3 100755 --- a/devel/run-liccheck.sh +++ b/devel/run-liccheck.sh @@ -1,9 +1,6 @@ -#!/bin/bash +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# SPDX-FileCopyrightText: Contributors to the Fedora Project -# -# SPDX-License-Identifier: GPL-3.0-or-later - +# SPDX-License-Identifier: GPL-2.0-or-later STRATEGY_URL=https://raw.githubusercontent.com/fedora-infra/shared/main/liccheck-strategy.ini diff --git a/docs/Makefile b/docs/Makefile index c9aab001..6725413c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + # Minimal makefile for Sphinx documentation # diff --git a/docs/api/api.rst b/docs/api/api.rst index dc45fda8..936c4f82 100644 --- a/docs/api/api.rst +++ b/docs/api/api.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + =================== Developer Interface =================== diff --git a/docs/api/wire-format.rst b/docs/api/wire-format.rst index 7b3ee24e..df5383ec 100644 --- a/docs/api/wire-format.rst +++ b/docs/api/wire-format.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + ============== Message Format ============== diff --git a/docs/build-schemas-list.py b/docs/build-schemas-list.py index 4fc54110..9eb7a89f 100755 --- a/docs/build-schemas-list.py +++ b/docs/build-schemas-list.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + import importlib import os import site diff --git a/docs/changelog.md b/docs/changelog.md index 7d05c45c..7beed27a 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,10 @@ + + # Release Notes All notable changes to this project will be documented in this file. diff --git a/docs/conf.py b/docs/conf.py index 6c943f7f..16a182cc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full diff --git a/docs/contributing.rst b/docs/contributing.rst index 870baf57..9b1b620c 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + ================= Contributor guide ================= diff --git a/docs/index.rst b/docs/index.rst index c859e787..30ca52c5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later ================ Fedora Messaging diff --git a/docs/requirements-readthedocs.txt b/docs/requirements-readthedocs.txt index f0694bdc..4ab41ea7 100644 --- a/docs/requirements-readthedocs.txt +++ b/docs/requirements-readthedocs.txt @@ -1 +1,4 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + myst-parser diff --git a/docs/sample_schema_package/MANIFEST.in b/docs/sample_schema_package/MANIFEST.in index 8d33ab13..a6a893cf 100644 --- a/docs/sample_schema_package/MANIFEST.in +++ b/docs/sample_schema_package/MANIFEST.in @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + include LICENSE README diff --git a/docs/sample_schema_package/README b/docs/sample_schema_package/README index b6df9969..effe8b12 100644 --- a/docs/sample_schema_package/README +++ b/docs/sample_schema_package/README @@ -1,3 +1,6 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + A sample schema package. See https://fedora-messaging.readthedocs.io/en/latest/messages.html for diff --git a/docs/sample_schema_package/mailman_messages/__init__.py b/docs/sample_schema_package/mailman_messages/__init__.py index 7cdd617a..5640322e 100644 --- a/docs/sample_schema_package/mailman_messages/__init__.py +++ b/docs/sample_schema_package/mailman_messages/__init__.py @@ -1,15 +1,3 @@ -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/docs/sample_schema_package/mailman_messages/messages.py b/docs/sample_schema_package/mailman_messages/messages.py index 1fab6964..301720d2 100644 --- a/docs/sample_schema_package/mailman_messages/messages.py +++ b/docs/sample_schema_package/mailman_messages/messages.py @@ -1,18 +1,7 @@ -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """This is an example of a message schema.""" from email.utils import parseaddr diff --git a/docs/sample_schema_package/mailman_messages/tests/__init__.py b/docs/sample_schema_package/mailman_messages/tests/__init__.py index 7cdd617a..5640322e 100644 --- a/docs/sample_schema_package/mailman_messages/tests/__init__.py +++ b/docs/sample_schema_package/mailman_messages/tests/__init__.py @@ -1,15 +1,3 @@ -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/docs/sample_schema_package/mailman_messages/tests/test_messages.py b/docs/sample_schema_package/mailman_messages/tests/test_messages.py index f98b0649..c8ed564e 100644 --- a/docs/sample_schema_package/mailman_messages/tests/test_messages.py +++ b/docs/sample_schema_package/mailman_messages/tests/test_messages.py @@ -1,18 +1,7 @@ -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Unit tests for the message schema.""" import pytest diff --git a/docs/sample_schema_package/setup.cfg b/docs/sample_schema_package/setup.cfg index 419da01a..0e5b89bd 100644 --- a/docs/sample_schema_package/setup.cfg +++ b/docs/sample_schema_package/setup.cfg @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + [bdist_wheel] universal = 1 diff --git a/docs/sample_schema_package/setup.py b/docs/sample_schema_package/setup.py index b38edc54..e336387a 100644 --- a/docs/sample_schema_package/setup.py +++ b/docs/sample_schema_package/setup.py @@ -1,20 +1,9 @@ #!/usr/bin/env python + +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# Copyright (C) 2018 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + import os from setuptools import find_packages, setup diff --git a/docs/schema-packages.txt b/docs/schema-packages.txt index 306c9988..0997b27e 100644 --- a/docs/schema-packages.txt +++ b/docs/schema-packages.txt @@ -1,3 +1,6 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + # This file contains the list of known schema packages # When you add a package to this file, also add it as a dependency to: # - datanommer diff --git a/docs/tutorial/conversion.rst b/docs/tutorial/conversion.rst index 512eceb1..fcb6f405 100644 --- a/docs/tutorial/conversion.rst +++ b/docs/tutorial/conversion.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + =============================== Converting a fedmsg application =============================== diff --git a/docs/tutorial/exceptions.rst b/docs/tutorial/exceptions.rst index 7c1247b2..1779c2a1 100644 --- a/docs/tutorial/exceptions.rst +++ b/docs/tutorial/exceptions.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + Handling exceptions =================== diff --git a/docs/tutorial/installation.rst b/docs/tutorial/installation.rst index 8e38d42f..ca2e54f7 100644 --- a/docs/tutorial/installation.rst +++ b/docs/tutorial/installation.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + Installation ============ diff --git a/docs/tutorial/schemas.rst b/docs/tutorial/schemas.rst index 0682de26..244ba046 100644 --- a/docs/tutorial/schemas.rst +++ b/docs/tutorial/schemas.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + JSON schemas ============ diff --git a/docs/tutorial/usage.rst b/docs/tutorial/usage.rst index fb0eb6ed..2bb1d8cd 100644 --- a/docs/tutorial/usage.rst +++ b/docs/tutorial/usage.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + Using the API ============= diff --git a/docs/user-guide/cli.rst b/docs/user-guide/cli.rst index f5dfc744..f843b1d6 100644 --- a/docs/user-guide/cli.rst +++ b/docs/user-guide/cli.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + Command Line Interface Manuals ------------------------------ diff --git a/docs/user-guide/cli/fedora-messaging.rst b/docs/user-guide/cli/fedora-messaging.rst index b1c40127..a6f3f3cd 100644 --- a/docs/user-guide/cli/fedora-messaging.rst +++ b/docs/user-guide/cli/fedora-messaging.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later .. _fm-cli: diff --git a/docs/user-guide/configuration.rst b/docs/user-guide/configuration.rst index 1d728a94..523b8b5d 100644 --- a/docs/user-guide/configuration.rst +++ b/docs/user-guide/configuration.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later .. _config: diff --git a/docs/user-guide/consuming.rst b/docs/user-guide/consuming.rst index ca65bc2f..fb661ee5 100644 --- a/docs/user-guide/consuming.rst +++ b/docs/user-guide/consuming.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later .. _consumers: diff --git a/docs/user-guide/installation.rst b/docs/user-guide/installation.rst index 339cd834..326cd0de 100644 --- a/docs/user-guide/installation.rst +++ b/docs/user-guide/installation.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + ============ Installation ============ diff --git a/docs/user-guide/messages.rst b/docs/user-guide/messages.rst index 3f536e99..e8f8635f 100644 --- a/docs/user-guide/messages.rst +++ b/docs/user-guide/messages.rst @@ -1,3 +1,8 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later + .. _messages: =============== diff --git a/docs/user-guide/publishing.rst b/docs/user-guide/publishing.rst index 80d2a4f9..cb3874e0 100644 --- a/docs/user-guide/publishing.rst +++ b/docs/user-guide/publishing.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later .. _publishing: diff --git a/docs/user-guide/quick-start.rst b/docs/user-guide/quick-start.rst index 14563e47..d27f8ae2 100644 --- a/docs/user-guide/quick-start.rst +++ b/docs/user-guide/quick-start.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later .. _quick-start: diff --git a/docs/user-guide/schemas.rst b/docs/user-guide/schemas.rst index bbf875bc..df468184 100644 --- a/docs/user-guide/schemas.rst +++ b/docs/user-guide/schemas.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later ================= Available Schemas diff --git a/docs/user-guide/testing.rst b/docs/user-guide/testing.rst index 4c3736c3..4a2b3b22 100644 --- a/docs/user-guide/testing.rst +++ b/docs/user-guide/testing.rst @@ -1,3 +1,7 @@ +.. SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +.. SPDX-FileCopyrightText: 2024 Red Hat, Inc +.. +.. SPDX-License-Identifier: GPL-2.0-or-later .. _testing: diff --git a/fedora_messaging/__init__.py b/fedora_messaging/__init__.py index 7a2200d0..81e2997b 100644 --- a/fedora_messaging/__init__.py +++ b/fedora_messaging/__init__.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later import importlib.metadata diff --git a/fedora_messaging/api.py b/fedora_messaging/api.py index c21587bf..fd9e89b9 100644 --- a/fedora_messaging/api.py +++ b/fedora_messaging/api.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + """The API for publishing messages and consuming from message queues.""" import inspect diff --git a/fedora_messaging/cli.py b/fedora_messaging/cli.py index 1f5ffca9..dfacc06a 100644 --- a/fedora_messaging/cli.py +++ b/fedora_messaging/cli.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ The ``fedora-messaging`` `Click`_ CLI. diff --git a/fedora_messaging/config.py b/fedora_messaging/config.py index 31783529..15051103 100644 --- a/fedora_messaging/config.py +++ b/fedora_messaging/config.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ fedora-messaging can be configured with the ``/etc/fedora-messaging/config.toml`` file or by setting the diff --git a/fedora_messaging/example.py b/fedora_messaging/example.py index 9cc8d14b..8ef2a61e 100644 --- a/fedora_messaging/example.py +++ b/fedora_messaging/example.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Example consumers that can be used when starting out with the library to test.""" diff --git a/fedora_messaging/exceptions.py b/fedora_messaging/exceptions.py index 7ee4e1a4..480c570f 100644 --- a/fedora_messaging/exceptions.py +++ b/fedora_messaging/exceptions.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + """Exceptions raised by Fedora Messaging.""" import jsonschema diff --git a/fedora_messaging/message.py b/fedora_messaging/message.py index bc174df0..df7b3260 100644 --- a/fedora_messaging/message.py +++ b/fedora_messaging/message.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + """ This module defines the base class of message objects and keeps a registry of known message implementations. This registry is populated from Python entry diff --git a/fedora_messaging/schema_utils.py b/fedora_messaging/schema_utils.py index 204902ff..7a387a70 100644 --- a/fedora_messaging/schema_utils.py +++ b/fedora_messaging/schema_utils.py @@ -1,18 +1,7 @@ -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ The ``schema_utils`` module contains utilities that may be useful when writing the Python API of your message schemas. diff --git a/fedora_messaging/signals.py b/fedora_messaging/signals.py index 9304fd5d..11256980 100644 --- a/fedora_messaging/signals.py +++ b/fedora_messaging/signals.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Signals sent by fedora_messaging APIs using :class:`blinker.base.Signal` signals. """ diff --git a/fedora_messaging/testing.py b/fedora_messaging/testing.py index 9b087553..c94c36a3 100644 --- a/fedora_messaging/testing.py +++ b/fedora_messaging/testing.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Once you've written code to publish or consume messages, you'll probably want to test it. The :mod:`fedora_messaging.testing` module has utilities for common diff --git a/fedora_messaging/twisted/__init__.py b/fedora_messaging/twisted/__init__.py index e69de29b..5640322e 100644 --- a/fedora_messaging/twisted/__init__.py +++ b/fedora_messaging/twisted/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/fedora_messaging/twisted/consumer.py b/fedora_messaging/twisted/consumer.py index bb9392c0..86410880 100644 --- a/fedora_messaging/twisted/consumer.py +++ b/fedora_messaging/twisted/consumer.py @@ -1,20 +1,7 @@ -# This file is part of fedora_messaging. # Copyright (C) 2019 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - +# SPDX-License-Identifier: GPL-2.0-or-later import asyncio import logging diff --git a/fedora_messaging/twisted/factory.py b/fedora_messaging/twisted/factory.py index 0cde40f8..fad16f73 100644 --- a/fedora_messaging/twisted/factory.py +++ b/fedora_messaging/twisted/factory.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ A Twisted Factory for creating and configuring instances of the :class:`.FedoraMessagingProtocolV2`. diff --git a/fedora_messaging/twisted/monitor.py b/fedora_messaging/twisted/monitor.py index aa12c5f8..4714575e 100644 --- a/fedora_messaging/twisted/monitor.py +++ b/fedora_messaging/twisted/monitor.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later """ A Twisted HTTP service to monitor a Fedora Messaging Service. diff --git a/fedora_messaging/twisted/protocol.py b/fedora_messaging/twisted/protocol.py index 037cfb49..071dd886 100644 --- a/fedora_messaging/twisted/protocol.py +++ b/fedora_messaging/twisted/protocol.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ The core Twisted interface, a protocol represent a specific connection to the AMQP broker. diff --git a/fedora_messaging/twisted/service.py b/fedora_messaging/twisted/service.py index ebd2e87d..a7f5cd52 100644 --- a/fedora_messaging/twisted/service.py +++ b/fedora_messaging/twisted/service.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Twisted Service to start and stop the Fedora Messaging Twisted Factory. diff --git a/fedora_messaging/twisted/stats.py b/fedora_messaging/twisted/stats.py index 94e35971..7b20fd9a 100644 --- a/fedora_messaging/twisted/stats.py +++ b/fedora_messaging/twisted/stats.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later """ Datastructures to store consumer and producer statistics. diff --git a/fm-consumer@.service b/fm-consumer@.service index 9c2990c7..4f05163f 100644 --- a/fm-consumer@.service +++ b/fm-consumer@.service @@ -1,3 +1,6 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=Fedora Messaging consumer Documentation=http://fedora-messaging.readthedocs.io/ diff --git a/news/187.feature.license b/news/187.feature.license new file mode 100644 index 00000000..a3701b69 --- /dev/null +++ b/news/187.feature.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/news/359.feature.license b/news/359.feature.license new file mode 100644 index 00000000..a3701b69 --- /dev/null +++ b/news/359.feature.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/news/380.feature.license b/news/380.feature.license new file mode 100644 index 00000000..a3701b69 --- /dev/null +++ b/news/380.feature.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/news/383.docs.md b/news/383.docs.md new file mode 100644 index 00000000..00fe1776 --- /dev/null +++ b/news/383.docs.md @@ -0,0 +1,8 @@ + + +Use Reuse for the license text and license header diff --git a/news/_template.md b/news/_template.md index 505ba0c5..514ebee8 100644 --- a/news/_template.md +++ b/news/_template.md @@ -1,3 +1,10 @@ + + {% macro reference(value) -%} {%- if value.startswith("PR") -%} PR #{{ value[2:] }} diff --git a/news/get-authors.py b/news/get-authors.py index da5ddbac..ce40933b 100755 --- a/news/get-authors.py +++ b/news/get-authors.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + """ This script browses through git commit history (starting at latest tag), collects all authors of commits and creates fragment for `towncrier`_ tool. diff --git a/packit/installation/main.fmf b/packit/installation/main.fmf index 2846a762..d2d88f88 100644 --- a/packit/installation/main.fmf +++ b/packit/installation/main.fmf @@ -1,3 +1,6 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + summary: Check some CLI commands execute: script: diff --git a/poetry.lock.license b/poetry.lock.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/poetry.lock.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/pyproject.toml b/pyproject.toml index 953e9bf2..bc6f89de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + [tool.poetry] name = "fedora_messaging" version = "3.6.0" @@ -5,7 +9,7 @@ description = "A set of tools for using Fedora's messaging infrastructure" authors = [ "Fedora Infrastructure " ] -license = "GPLv2+" +license = "GPLv3+" readme = "README.rst" repository = "https://github.com/fedora-infra/fedora-messaging" maintainers = ["Fedora Infrastructure Team"] diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..5640322e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/conftest.py b/tests/conftest.py index 3b39f72a..7ee26d2c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later import os diff --git a/tests/fixtures/bad_cb b/tests/fixtures/bad_cb index 0e1dc8ba..f62f374a 100644 --- a/tests/fixtures/bad_cb +++ b/tests/fixtures/bad_cb @@ -1 +1,4 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + not a valid python file diff --git a/tests/fixtures/bad_conf.toml b/tests/fixtures/bad_conf.toml index c6054f3c..48f1d3e4 100644 --- a/tests/fixtures/bad_conf.toml +++ b/tests/fixtures/bad_conf.toml @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + publish_exchange = I forgot quotes here diff --git a/tests/fixtures/ca_bundle.pem.license b/tests/fixtures/ca_bundle.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/tests/fixtures/ca_bundle.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/fixtures/callback.py b/tests/fixtures/callback.py index f774a1fa..e27e7a4b 100644 --- a/tests/fixtures/callback.py +++ b/tests/fixtures/callback.py @@ -1,2 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + + def rand(message): return 4 diff --git a/tests/fixtures/cert.pem.license b/tests/fixtures/cert.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/tests/fixtures/cert.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/fixtures/cli_integration.toml b/tests/fixtures/cli_integration.toml index e69de29b..5640322e 100644 --- a/tests/fixtures/cli_integration.toml +++ b/tests/fixtures/cli_integration.toml @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/fixtures/good_conf.toml b/tests/fixtures/good_conf.toml index fbdb3cd7..de50e41d 100644 --- a/tests/fixtures/good_conf.toml +++ b/tests/fixtures/good_conf.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + callback = "tests.unit.test_cli:echo" [[bindings]] diff --git a/tests/fixtures/good_msg_dump.txt b/tests/fixtures/good_msg_dump.txt index 71ee9c8b..53bd5cdf 100644 --- a/tests/fixtures/good_msg_dump.txt +++ b/tests/fixtures/good_msg_dump.txt @@ -1 +1,4 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + {"body": {"test_key1": "test_value1"}, "headers": {"fedora_messaging_schema": "base.message", "fedora_messaging_severity": 20, "sent-at": "2018-11-18T10:11:41+00:00"}, "id": "273ed91d-b8b5-487a-9576-95b9fbdf3eec", "queue": "test_queue", "topic": "test_topic"} diff --git a/tests/fixtures/invalid_ca.pem.license b/tests/fixtures/invalid_ca.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/tests/fixtures/invalid_ca.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/fixtures/invalid_key.pem.license b/tests/fixtures/invalid_key.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/tests/fixtures/invalid_key.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/fixtures/invalid_msg_dump.txt b/tests/fixtures/invalid_msg_dump.txt index 2c404b9c..008e9dc5 100644 --- a/tests/fixtures/invalid_msg_dump.txt +++ b/tests/fixtures/invalid_msg_dump.txt @@ -1 +1,4 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + {"body": [], "headers": {"fedora_messaging_schema": "base.message", "fedora_messaging_severity": 21, "sent-at": "2018-11-18T10:11:41+00:00"}, "id": "273ed91d-b8b5-487a-9576-95b9fbdf3eec", "queue": "test_queue", "topic": "test_topic"} diff --git a/tests/fixtures/key.pem.license b/tests/fixtures/key.pem.license new file mode 100644 index 00000000..ec6d8b74 --- /dev/null +++ b/tests/fixtures/key.pem.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +SPDX-FileCopyrightText: 2024 Red Hat, Inc + +SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/fixtures/msg_without_topic_dump.txt b/tests/fixtures/msg_without_topic_dump.txt index e8e98b50..90c0432a 100644 --- a/tests/fixtures/msg_without_topic_dump.txt +++ b/tests/fixtures/msg_without_topic_dump.txt @@ -1 +1,4 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + {"body": {"test_key1": "test_value1"}, "headers": {"fedora_messaging_schema": "base.message", "fedora_messaging_severity": 20, "sent-at": "2018-11-18T10:11:41+00:00"}, "queue": "test_queue"} diff --git a/tests/fixtures/wrong_json_msg_dump.txt b/tests/fixtures/wrong_json_msg_dump.txt index 558ed37d..f1af1b9c 100644 --- a/tests/fixtures/wrong_json_msg_dump.txt +++ b/tests/fixtures/wrong_json_msg_dump.txt @@ -1 +1,4 @@ +SPDX-FileCopyrightText: 2024 Red Hat, Inc +SPDX-License-Identifier: GPL-2.0-or-later + [ diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index e69de29b..5640322e 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/integration/test_api.py b/tests/integration/test_api.py index 18cb6b42..d2df9fcf 100644 --- a/tests/integration/test_api.py +++ b/tests/integration/test_api.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + """Test the :mod:`fedora_messaging.api` APIs on a real broker.""" import re diff --git a/tests/integration/test_cli.py b/tests/integration/test_cli.py index 0f7acf4e..f186d067 100644 --- a/tests/integration/test_cli.py +++ b/tests/integration/test_cli.py @@ -1,19 +1,8 @@ -# This file is part of fedora_messaging. # Copyright (C) 2019 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Tests for the ``fedora-messaging`` command-line interface.""" import os import shutil diff --git a/tests/integration/utils.py b/tests/integration/utils.py index bfc43de3..2e66fbdf 100644 --- a/tests/integration/utils.py +++ b/tests/integration/utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + import os from twisted.internet import reactor, task diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index e69de29b..5640322e 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/unit/test_api.py b/tests/unit/test_api.py index bdda8f63..7292152f 100644 --- a/tests/unit/test_api.py +++ b/tests/unit/test_api.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Tests for the :module:`fedora_messaging.api` module.""" import logging diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index 46825a10..e0a2d840 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Tests for the :module:`fedora_messaging.cli` module.""" diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index c0fa7b4e..c1864fb4 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Unit tests for :module:`fedora_messaging.config`.""" from unittest import mock diff --git a/tests/unit/test_example.py b/tests/unit/test_example.py index 77ec0eab..a8b9a296 100644 --- a/tests/unit/test_example.py +++ b/tests/unit/test_example.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Tests for :mod:`fedora_messaging.example`.""" from io import StringIO diff --git a/tests/unit/test_message.py b/tests/unit/test_message.py index d0faed5d..b3d26daf 100644 --- a/tests/unit/test_message.py +++ b/tests/unit/test_message.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later import datetime import json diff --git a/tests/unit/test_schema_utils.py b/tests/unit/test_schema_utils.py index b9020eb5..40f3e07d 100644 --- a/tests/unit/test_schema_utils.py +++ b/tests/unit/test_schema_utils.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later from urllib import parse diff --git a/tests/unit/test_testing.py b/tests/unit/test_testing.py index e1bcb0fb..da9aaf40 100644 --- a/tests/unit/test_testing.py +++ b/tests/unit/test_testing.py @@ -1,19 +1,7 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later + """Tests for the testing utilities.""" from unittest import mock diff --git a/tests/unit/twisted/__init__.py b/tests/unit/twisted/__init__.py index e69de29b..5640322e 100644 --- a/tests/unit/twisted/__init__.py +++ b/tests/unit/twisted/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Red Hat, Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/unit/twisted/test_consumer.py b/tests/unit/twisted/test_consumer.py index 5441b740..f269b9fc 100644 --- a/tests/unit/twisted/test_consumer.py +++ b/tests/unit/twisted/test_consumer.py @@ -1,20 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - +# SPDX-License-Identifier: GPL-2.0-or-later import json from unittest.mock import AsyncMock, Mock, patch diff --git a/tests/unit/twisted/test_factory.py b/tests/unit/twisted/test_factory.py index b019654b..8884aa3e 100644 --- a/tests/unit/twisted/test_factory.py +++ b/tests/unit/twisted/test_factory.py @@ -1,20 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - +# SPDX-License-Identifier: GPL-2.0-or-later from unittest import mock diff --git a/tests/unit/twisted/test_monitor.py b/tests/unit/twisted/test_monitor.py index c4f9c1c3..10bc2440 100644 --- a/tests/unit/twisted/test_monitor.py +++ b/tests/unit/twisted/test_monitor.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later import pytest from twisted.application.service import MultiService diff --git a/tests/unit/twisted/test_protocol.py b/tests/unit/twisted/test_protocol.py index d03ab0c4..1b25d093 100644 --- a/tests/unit/twisted/test_protocol.py +++ b/tests/unit/twisted/test_protocol.py @@ -1,20 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - +# SPDX-License-Identifier: GPL-2.0-or-later import json from unittest import mock diff --git a/tests/unit/twisted/test_service.py b/tests/unit/twisted/test_service.py index ddb93e8a..71768ecc 100644 --- a/tests/unit/twisted/test_service.py +++ b/tests/unit/twisted/test_service.py @@ -1,20 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - +# SPDX-License-Identifier: GPL-2.0-or-later import os from unittest import mock diff --git a/tests/unit/twisted/test_stats.py b/tests/unit/twisted/test_stats.py index 06abfc55..08145dc0 100644 --- a/tests/unit/twisted/test_stats.py +++ b/tests/unit/twisted/test_stats.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later import pytest diff --git a/tests/unit/twisted/utils.py b/tests/unit/twisted/utils.py index af14fbe4..4b44ca13 100644 --- a/tests/unit/twisted/utils.py +++ b/tests/unit/twisted/utils.py @@ -1,20 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - +# SPDX-License-Identifier: GPL-2.0-or-later from unittest import mock diff --git a/tests/utils.py b/tests/utils.py index 158567b4..7193b6ae 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,19 +1,6 @@ -# This file is part of fedora_messaging. -# Copyright (C) 2018 Red Hat, Inc. +# SPDX-FileCopyrightText: 2024 Red Hat, Inc # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-or-later from random import randrange diff --git a/tox.ini b/tox.ini index bf7b4ff8..4d07f197 100644 --- a/tox.ini +++ b/tox.ini @@ -1,3 +1,8 @@ +; SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc +; SPDX-FileCopyrightText: 2024 Red Hat, Inc +; +; SPDX-License-Identifier: GPL-2.0-or-later + [tox] #envlist = checks,licenses,py{38,39,310,311,312}-{unittest,integration} envlist = checks,py{38,39,310,311,312}-{unittest,integration}