Skip to content

Commit cda6bc6

Browse files
authored
[#114, #108] Apply some REUSE standards, move requirements, update headers (2024) (#123)
* doc(#114): project - update headers Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> * doc(#114): project - move licences and update THIRD-PARTY Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> * refactor(#108): Licenses Inventory - define requirements for Python modules Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> * refactor(#114): review - apply comments Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> --------- Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
1 parent a571dd0 commit cda6bc6

File tree

71 files changed

+463
-326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+463
-326
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- [Licenses Inventory] Improve requirements for Python modules in use ([#108](https://github.com/Orange-OpenSource/floss-toolbox/issues/108))
13+
- [Project] Apply REUSE standards ([#114](https://github.com/Orange-OpenSource/floss-toolbox/issues/114))
1214
- [Utils] Add metrics and improve outputs for third-party generator scripts
1315
- [Project] Improve a bit CHANGELOG by leading scope keyword for each line
1416

toolbox/LicensesInventory/licenses/LICENSE-requests.txt renamed to LICENSES/Apache-2.0.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,30 @@
173173
defend, and hold each Contributor harmless for any liability
174174
incurred by, or claims asserted against, such Contributor by reason
175175
of your accepting any such warranty or additional liability.
176+
177+
END OF TERMS AND CONDITIONS
178+
179+
APPENDIX: How to apply the Apache License to your work.
180+
181+
To apply the Apache License to your work, attach the following
182+
boilerplate notice, with the fields enclosed by brackets "[]"
183+
replaced with your own identifying information. (Don't include
184+
the brackets!) The text should be enclosed in the appropriate
185+
comment syntax for the file format. We also recommend that a
186+
file or class name and description of purpose be included on the
187+
same "printed page" as the copyright notice for easier
188+
identification within third-party archives.
189+
190+
Copyright [yyyy] [name of copyright owner]
191+
192+
Licensed under the Apache License, Version 2.0 (the "License");
193+
you may not use this file except in compliance with the License.
194+
You may obtain a copy of the License at
195+
196+
http://www.apache.org/licenses/LICENSE-2.0
197+
198+
Unless required by applicable law or agreed to in writing, software
199+
distributed under the License is distributed on an "AS IS" BASIS,
200+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201+
See the License for the specific language governing permissions and
202+
limitations under the License.

toolbox/github/licenses/LICENSE-Ruby-Git.txt renamed to LICENSES/MIT.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License
1+
MIT License
22

3-
Copyright (c) 2008 Scott Chacon
3+
Copyright (c) [year] [fullname]
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
copies of the Software, and to permit persons to whom the Software is
1010
furnished to do so, subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

THIRD-PARTY.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
2+
# Third Party Softwares
3+
4+
This document contains the list of Third Party Softwares along with the license information.
5+
6+
Third Party Software may impose additional restrictions and it is the user's responsibility to ensure that they have met the licensing
7+
requirements of the relevant license of the Third Party Software they are using.
8+
9+
## For "github" bucket
10+
11+
### Octokit
12+
13+
Version 6.1.1
14+
15+
Copyright 2009-2017 Wynn Netherland, Adam Stacoviak, Erik Michaels-Ober
16+
17+
*octokit.rb* is distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
18+
You may download the source code on the [following website](https://github.com/octokit/octokit.rb).
19+
20+
### Ruby Git
21+
22+
Version 1.18.0
23+
24+
Copyright (c) 2008 Scott Chacon
25+
26+
*Ruby Git* is distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
27+
You may download the source code on the [following website](https://github.com/ruby-git/ruby-git).
28+
29+
## For "LicensesInventory" bucket
30+
31+
### Beautiful Soup
32+
33+
Version 4.10.0
34+
35+
Copyright (c) Leonard Richardson
36+
37+
*Beautiful Soup* is distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
38+
You may download the source code on the [following website](https://git.launchpad.net/beautifulsoup/).
39+
40+
### pytest
41+
42+
Version 7.2.1
43+
44+
Copyright (c) 2004 Holger Krekel and others
45+
46+
*pytest* is distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
47+
You may download the source code on the [following website](https://github.com/pytest-dev/pytest).
48+
49+
### requests
50+
51+
Version 2.28.1
52+
53+
Copyright (c) 2019 Kenneth Reitz
54+
55+
*requests* is distributed under the terms and conditions of the [Apache 2.0 License](https://opensource.org/license/apache-2-0).
56+
You may download the source code on the [following website](https://github.com/psf/requests).
57+
58+
### xmltodict
59+
60+
Version 0.13.0
61+
62+
Copyright (c) 2012 Martin Blech and individual contributors.
63+
64+
*xmltodict* is distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
65+
You may download the source code on the [following website](https://github.com/martinblech/xmltodict).

toolbox/LicensesInventory/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@ _Keywords: #licenses #SPM #Gradle #Maven #NPMJS #package #Cocoapods #pubspec #go
3333
## Prerequisites
3434

3535
- _Python_ version **3.7**
36-
- _Python_ modules like _requests_, _xmltodict_ and _pytest-6.2.5_
36+
- _Python_ modules like _requests_, _xmltodict_, _pytests_ and _beautiful soup_
3737

3838
```shell
39-
pip install requests
40-
pip install xmltodict
41-
pip install pytest
42-
pip install beautifulsoup4
39+
pip install -r requirements.txt
4340
```
4441

4542
This project expects to have the third-party elements above available and already added in your system.

toolbox/LicensesInventory/THIRD-PARTY.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

toolbox/LicensesInventory/dry-run.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
#!/bin/bash
22
# Software Name: floss-toolbox
3-
# SPDX-FileCopyrightText: Copyright (c) 2020-2023 Orange
3+
# SPDX-FileCopyrightText: Copyright (c) Orange SA
44
# SPDX-License-Identifier: Apache-2.0
55
#
6-
# This software is distributed under the Apache 2.0 license.
6+
# This software is distributed under the Apache 2.0 license,
7+
# the text of which is available at https://opensource.org/license/apache-2-0
8+
# or see the "LICENSE.txt" file for more details.
79
#
8-
# Author: Pierre-Yves LAPERSONNE <pierreyves(dot)lapersonne(at)orange(dot)com> et al.
10+
# Authors: See CONTRIBUTORS.txt
11+
# Software description: A toolbox of scripts to help work of forges admins and open source referents
912

1013
# Since...............: 10/03/2023
1114
# Description.........: Make a dry-run of the LicensesInventory module to check if everything is ready to use
12-
# Version.............: 2.2.0
15+
# Version.............: 2.3.0
1316

1417
set -eu
1518

@@ -130,6 +133,7 @@ CheckIfFileExists "./sources/search/search.py"
130133
CheckIfFileExists "./sources/__init__.py"
131134
CheckIfFileExists "./sources/main.py"
132135
CheckIfFileExists "./config.ini"
136+
CheckIfFileExists "./requirements.txt"
133137

134138
echo -e "\nCheck integration test files..."
135139

@@ -181,12 +185,6 @@ CheckIfFileExists "./tests/integrationtests/test_licenses.py"
181185
echo -e "\nCheck other files"
182186

183187
CheckIfFileExists "./README.md"
184-
CheckIfFileExists "./THIRD-PARTY.txt"
185-
CheckIfDirectoryExists "./licenses"
186-
CheckIfFileExists "./licenses/LICENSE-beautifulsoup.txt"
187-
CheckIfFileExists "./licenses/LICENSE-pytest.txt"
188-
CheckIfFileExists "./licenses/LICENSE-requests.txt"
189-
CheckIfFileExists "./licenses/LICENSE-xmltodict.txt"
190188

191189
# Runtimes and tools
192190
# ------------------

toolbox/LicensesInventory/licenses/LICENSE-beautifulsoup.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

toolbox/LicensesInventory/licenses/LICENSE-pytest.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

toolbox/LicensesInventory/licenses/LICENSE-xmltodict.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)