-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Reuse for the license #422
base: develop
Are you sure you want to change the base?
Conversation
fedora_messaging/__init__.py
Outdated
# 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. | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is C/Javascript-style comments. In Python comments start with a #
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My apologies, i will amend it.
fedora_messaging/__init__.py
Outdated
/* | ||
* SPDX-FileCopyrightText: 2024 Red Hat, Inc | ||
* | ||
* SPDX-License-Identifier: GPL-3.0-or-later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The license is actually GPL-2.0-or-later
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, although someone asked what version of GPL you preferred and you said GPL-3.0-or-later, that's why i made use of it .
so which do you prefer i make use of?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not change the license from what it was before, even though I would prefer GPL-3.0-or-later, the code is currently under GPL-2.0-or-later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I'll update it to GPL-2.0-or-later.
fc26af7
to
6849d35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is lacking the Reuse check itself. You can for example use this block in .pre-commit-config.yml
:
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
hooks:
- id: reuse
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still changing the license. By the way, if you start using the SPDX-License-Identifier
tag, you can drop this block of text.
b5a591a
to
ec2069c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more comments, mostly related to using a REUSE.toml file.
@@ -1,3 +1,8 @@ | |||
; SPDX-FileCopyrightText: 2024 2024 Red Hat, Inc | |||
; SPDX-FileCopyrightText: 2024 Red Hat, Inc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those two lines seem redundant.
tests/integration/test_cli.py
Outdated
@@ -1,19 +1,8 @@ | |||
# This file is part of fedora_messaging. | |||
# Copyright (C) 2019 Red Hat, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop this line as well.
@@ -1 +1,4 @@ | |||
SPDX-FileCopyrightText: 2024 Red Hat, Inc | |||
SPDX-License-Identifier: GPL-2.0-or-later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not make sense for a test fixture, I would add the fixtures to a block in a REUSE.toml file, using a wildcard, such as:
# Test fixtures
[[annotations]]
path = ["tests/fixtures/*"]
SPDX-FileCopyrightText = "2024 Red Hat, Inc"
SPDX-License-Identifier = "GPL-2.0-or-later"
This applies to all the files in this directory.
pyproject.toml
Outdated
[tool.poetry] | ||
name = "fedora_messaging" | ||
version = "3.6.0" | ||
description = "A set of tools for using Fedora's messaging infrastructure" | ||
authors = [ | ||
"Fedora Infrastructure <[email protected]>" | ||
] | ||
license = "GPLv2+" | ||
license = "GPLv3+" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change the license.
pyproject.toml
Outdated
@@ -1,11 +1,15 @@ | |||
# SPDX-FileCopyrightText: 2024 Red Hat, Inc | |||
# | |||
# SPDX-License-Identifier: GPL-2.0-or-later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not make much sense in the case of this file, because we're talking about project configuration here.
I would add these files to a block in a REUSE.toml file, such as:
# Project configuration
[[annotations]]
path = ["pyproject.toml", "poetry.lock", "codecov.yml", ".*.yml", ".*.yaml", "CODEOWNERS"]
SPDX-FileCopyrightText = "2024 Red Hat, Inc"
SPDX-License-Identifier = "GPL-2.0-or-later"
fedora_messaging/twisted/consumer.py
Outdated
@@ -1,20 +1,7 @@ | |||
# This file is part of fedora_messaging. | |||
# Copyright (C) 2019 Red Hat, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be dropped as well.
docs/schema-packages.txt
Outdated
SPDX-FileCopyrightText: 2024 Red Hat, Inc | ||
SPDX-License-Identifier: GPL-2.0-or-later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the hash sign at the beginning of those lines to mark them as comments.
@@ -1,9 +1,6 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave this line in place.
configs/cacert.pem.license
Outdated
@@ -0,0 +1,3 @@ | |||
SPDX-FileCopyrightText: 2024 Red Hat, Inc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the files in configs
can also be covered by a block in a REUSE.toml file, such as:
# configs
[[annotations]]
path = ["configs/*"]
SPDX-FileCopyrightText = "2024 Red Hat, Inc"
SPDX-License-Identifier = "GPL-2.0-or-later"
.fmf/version
Outdated
@@ -1 +1,4 @@ | |||
SPDX-FileCopyrightText: 2024 Red Hat, Inc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FMF config files can be covered by a block in a REUSE.toml file, such as:
# FMF
[[annotations]]
path = [".fmf/version", "packit/installation/*.fmf"]
SPDX-FileCopyrightText = "2024 Red Hat, Inc"
SPDX-License-Identifier = "GPL-2.0-or-later"
hello, i've made the changes as requested but when i run
|
Yes, you can use a REUSE.toml file to cover those files, as indicated in the comments. I don't see it, maybe you forgot to add it to the repo with |
I'm surprised as well. i thought i did cause usually i |
Signed-off-by: Olamide Ojo <[email protected]>
ec2069c
to
f295e35
Compare
Fixes #383