Skip to content

Commit

Permalink
Use Reuse for the license
Browse files Browse the repository at this point in the history
Signed-off-by: Olamide Ojo <[email protected]>
  • Loading branch information
olamidepeterojo committed Dec 12, 2024
1 parent 1deca92 commit fc26af7
Show file tree
Hide file tree
Showing 38 changed files with 597 additions and 740 deletions.
751 changes: 452 additions & 299 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/sample_schema_package/mailman_messages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion docs/sample_schema_package/mailman_messages/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion docs/sample_schema_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/

import importlib.metadata

Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/cli.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
"""
The ``fedora-messaging`` `Click`_ CLI.
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/config.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
"""
fedora-messaging can be configured with the
``/etc/fedora-messaging/config.toml`` file or by setting the
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/example.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
"""Example consumers that can be used when starting out with the library to test."""


Expand Down
2 changes: 1 addition & 1 deletion fedora_messaging/schema_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/signals.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
"""
Signals sent by fedora_messaging APIs using :class:`blinker.base.Signal` signals.
"""
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/testing.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.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
Expand Down
2 changes: 1 addition & 1 deletion fedora_messaging/twisted/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/twisted/factory.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
"""
A Twisted Factory for creating and configuring instances of the
:class:`.FedoraMessagingProtocolV2`.
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/twisted/monitor.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/

"""
A Twisted HTTP service to monitor a Fedora Messaging Service.
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/twisted/protocol.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
"""
The core Twisted interface, a protocol represent a specific connection to the
AMQP broker.
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/twisted/service.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
"""
Twisted Service to start and stop the Fedora Messaging Twisted Factory.
Expand Down
21 changes: 5 additions & 16 deletions fedora_messaging/twisted/stats.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/

"""
Datastructures to store consumer and producer statistics.
Expand Down
1 change: 1 addition & 0 deletions news/383.docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use Reuse for the license text and license header
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "A set of tools for using Fedora's messaging infrastructure"
authors = [
"Fedora Infrastructure <[email protected]>"
]
license = "GPLv2+"
license = "GPLv3+"
readme = "README.rst"
repository = "https://github.com/fedora-infra/fedora-messaging"
maintainers = ["Fedora Infrastructure Team"]
Expand Down
21 changes: 5 additions & 16 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# This file is part of fedora_messaging.
# 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-FileCopyrightText: 2024 Red Hat, Inc
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/

import os

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Expand Down
Loading

0 comments on commit fc26af7

Please sign in to comment.