Skip to content
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

New license manager #1010

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

eddbbt
Copy link
Contributor

@eddbbt eddbbt commented Oct 29, 2024

This PR adopts Reuse for managing files license
Files copyright years have been changed based on git commit metadata

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.48%. Comparing base (c5e192c) to head (8635f06).
Report is 17 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1010      +/-   ##
==========================================
+ Coverage   69.35%   70.48%   +1.12%     
==========================================
  Files         275      166     -109     
  Lines        7149     4692    -2457     
==========================================
- Hits         4958     3307    -1651     
+ Misses       2191     1385     -806     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eddbbt eddbbt force-pushed the new-licence branch 3 times, most recently from 8a2ece1 to 1dfbb20 Compare October 29, 2024 11:49
@eddbbt eddbbt changed the title New licence New licence manager Oct 29, 2024
@alempuskarevic alempuskarevic force-pushed the new-licence branch 2 times, most recently from 23a82f6 to 2bd95bd Compare December 2, 2024 10:11
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: there's a newline more

CONTRIBUTING.md Outdated

SPDX-License-Identifier: CC0-1.0
SPDX-License-Identifier: Apache-2.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not change license here:

Suggested change
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: CC0-1.0

LICENSE Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also keep the LICENSE file

Comment on lines 1 to 3
# Copyright 2017-2020 SECO Mind Srl
#
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not remove old license headers, just update them

@eddbbt eddbbt force-pushed the new-licence branch 2 times, most recently from 2c253bb to b956d3c Compare December 3, 2024 13:31
eddbbt and others added 2 commits December 3, 2024 17:17
reuse annotate all astarte files with a copyright years extracted from first and last commit per file

Signed-off-by: Eddy Babetto <[email protected]>
Updated the header comments in the files to
conform to the reuse policy guidelines.

Signed-off-by: Alem Puskarevic <[email protected]>
Signed-off-by: Eddy Babetto <[email protected]>
@eddbbt eddbbt changed the title New licence manager New license manager Dec 3, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The *.json.license files in this directory break the CI (see this run) because astartectl tries to install all files in the directory as interfaces.
Either edit the workflow or (my personal preference) add a REUSE.toml file in the priv parent directory with the licensing information. You can check in the Reuse FAQ and specification for the specific syntax

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, in order to be consistent with standard-interfaces, I'd suggest to use the CC-1.0 license for interfaces here too

Copy link
Collaborator

@Annopaolo Annopaolo Dec 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to be consistent with standard-interfaces, I'd suggest using CC-1.0 here too

@eddbbt eddbbt force-pushed the new-licence branch 6 times, most recently from 0591dfb to 8795869 Compare December 6, 2024 14:36
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v4

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: files should end with just a newline

- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v4

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's still a newline error here, please fix it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this workflow is not related to the Tidy up old copyright info commit it's in

@eddbbt eddbbt force-pushed the new-licence branch 2 times, most recently from 84de061 to 8635f06 Compare December 16, 2024 17:24
Remove old copyright info
Check copyright year based on git file info, not on old copy-paste values

Signed-off-by: Eddy Babetto <[email protected]>
Create a Reuse worflow for check files copyright compliance

Signed-off-by: Eddy Babetto <[email protected]>
@eddbbt
Copy link
Contributor Author

eddbbt commented Dec 18, 2024

clea_bw.png added as apache 2.0

@eddbbt eddbbt marked this pull request as ready for review December 18, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants