Skip to content

Commit 9eb44ea

Browse files
authored
Merge pull request #87 from fosslight/temp
Rename FOSSLight Reuse to FOSSLight Prechecker
2 parents 05de42f + bdeb3df commit 9eb44ea

File tree

20 files changed

+90
-89
lines changed

20 files changed

+90
-89
lines changed

.github/workflows/publish-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 1. Update changelog
22
# 2. Upload a Python Package using Twine
33

4-
name: Release fosslight_reuse
4+
name: Release fosslight_prechecker
55

66
on:
77
release:
@@ -61,8 +61,8 @@ jobs:
6161
TARGET: windows
6262
CMD_BUILD: >
6363
pyinstaller --onefile cli.py -n cli --additional-hooks-dir=hooks &&
64-
move dist/cli.exe fosslight_reuse_windows.exe
65-
OUT_FILE_NAME: fosslight_reuse_windows.exe
64+
move dist/cli.exe fosslight_prechecker_windows.exe
65+
OUT_FILE_NAME: fosslight_prechecker_windows.exe
6666
ASSET_MIME: application/vnd.microsoft.portable-executable
6767
steps:
6868
- uses: actions/checkout@v2

.github/workflows/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Running tests with tox for releasing new version
22

3-
name: Pull requests fosslight_reuse
3+
name: Pull requests fosslight_prechecker
44

55
on:
66
pull_request:
@@ -47,9 +47,9 @@ jobs:
4747
TARGET: windows
4848
CMD_BUILD: >
4949
pyinstaller --onefile cli.py -n cli --additional-hooks-dir=hooks &&
50-
move dist/cli.exe fosslight_reuse_windows.exe &&
51-
./fosslight_reuse_windows.exe
52-
OUT_FILE_NAME: fosslight_reuse_windows.exe
50+
move dist/cli.exe fosslight_prechecker_windows.exe &&
51+
./fosslight_prechecker_windows.exe
52+
OUT_FILE_NAME: fosslight_prechecker_windows.exe
5353
ASSET_MIME: application/vnd.microsoft.portable-executable
5454
steps:
5555
- uses: actions/checkout@v2

.reuse/dep5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2-
Upstream-Name: FOSSLight REUSE
3-
Source: https://github.com/fosslight/fosslight_reuse
2+
Upstream-Name: FOSSLight Prechecker
3+
Source: https://github.com/fosslight/fosslight_prechecker
44

55
Files: *.md
66
Copyright: 2021 LG Electronics
@@ -26,6 +26,6 @@ Files: .bumpversion.cfg
2626
Copyright: 2021 LG Electronics
2727
License: GPL-3.0-only
2828

29-
Files: src/fosslight_reuse/resources/convert_license.json
29+
Files: src/fosslight_prechecker/resources/convert_license.json
3030
Copyright: 2021 LG Electronics
3131
License: GPL-3.0-only

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Hi! I'm really appreciate that you'd like to contribute to this project. Your he
44

55
## Submitting a pull request
66

7-
1. <a class="github-button" href="https://github.com/fosslight/fosslight_reuse/fork" data-icon="octicon-repo-forked" aria-label="Fork fosslight/fosslight_reuse on GitHub">```Fork```</a> and clone the repository
7+
1. <a class="github-button" href="https://github.com/fosslight/fosslight_prechecker/fork" data-icon="octicon-repo-forked" aria-label="Fork fosslight/fosslight_prechecker on GitHub">```Fork```</a> and clone the repository
88
2. Create a new branch: `git checkout -b my-branch-name`
99
3. Make your change and make sure it works properly.
1010
4. Push to your fork and submit a pull request.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include README.md
22
include requirements.txt
33
include LICENSE
4-
recursive-include src/fosslight_reuse/resources *.json
4+
recursive-include src/fosslight_prechecker/resources *.json

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Copyright (c) 2021 LG Electronics
33
SPDX-License-Identifier: GPL-3.0-only
44
-->
5-
# FOSSLight Reuse
5+
# FOSSLight Prechecker
66

77
<img src="https://img.shields.io/pypi/l/fosslight-reuse" alt="License" /> <img src="https://img.shields.io/pypi/v/fosslight_reuse" alt="Current python package version." /> <img src="https://img.shields.io/pypi/pyversions/fosslight_reuse" /> [![REUSE status](https://api.reuse.software/badge/github.com/fosslight/fosslight_reuse)](https://api.reuse.software/info/github.com/fosslight/fosslight_reuse)
88

9-
**FOSSLight Reuse** is a tool that can be used to comply with the copyright/license writing rules in the source code.
9+
**FOSSLight Prechecker** is a tool that can be used to comply with the copyright/license writing rules in the source code.
1010
It uses [reuse-tool][ret] to check whether the [source code's copyright and license writing rules][rule] are complied with.
1111

1212
[ret]: https://github.com/fsfe/reuse-tool
@@ -19,7 +19,7 @@ Here a short summary:
1919

2020
- `lint` --- Check whether the [source code's copyright and license writing rules][rule] are complied with.
2121

22-
- `convert` --- Convert [oss-pkg-info.yaml](https://github.com/fosslight/fosslight_reuse/blob/main/tests/convert/oss-pkg-info.yaml) to [FOSSLight-Report.xlsx](https://fosslight.org/fosslight-guide-en/learn/2_fosslight_report.html) and vice versa.
22+
- `convert` --- Convert [oss-pkg-info.yaml](https://github.com/fosslight/fosslight_prechecker/blob/main/tests/convert/oss-pkg-info.yaml) to [FOSSLight-Report.xlsx](https://fosslight.org/fosslight-guide-en/learn/2_fosslight_report.html) and vice versa.
2323

2424
- `add` --- Add copyright and license to missing file(s)
2525

@@ -28,9 +28,9 @@ Here a short summary:
2828

2929
Please report any ideas or bugs to improve by creating an issue in [Git Repository][repo]. Then there will be quick bug fixes and upgrades. Ideas to improve are always welcome.
3030

31-
[repo]: https://github.com/fosslight/fosslight_reuse/issues
31+
[repo]: https://github.com/fosslight/fosslight_prechecker/issues
3232

3333
## 📄 License
34-
FOSSLight Reuse is licensed under [GPL-3.0-only][l].
34+
FOSSLight Prechecker is licensed under [GPL-3.0-only][l].
3535

36-
[l]: https://github.com/fosslight/fosslight_reuse/blob/main/LICENSE
36+
[l]: https://github.com/fosslight/fosslight_prechecker/blob/main/LICENSE

cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33
# Copyright (c) 2020 LG Electronics Inc.
44
# SPDX-License-Identifier: GPL-3.0-only
5-
from fosslight_oss_pkg.fosslight_oss_pkg import convert_report
5+
from fosslight_oss_pkg._convert import convert_report
66

77
if __name__ == '__main__':
88
convert_report("", "", "")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# SPDX-License-Identifier: GPL-3.0-only
55
from PyInstaller.utils.hooks import collect_all
66

7-
datas, binaries, hiddenimports = collect_all('fosslight_reuse')
7+
datas, binaries, hiddenimports = collect_all('fosslight_prechecker')

setup.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313

1414
if __name__ == "__main__":
1515
setup(
16-
name='fosslight_reuse',
16+
name='fosslight_prechecker',
1717
version='2.2.2',
1818
package_dir={"": "src"},
1919
packages=find_packages(where='src'),
20-
description='FOSSLight Reuse',
20+
description='FOSSLight Prechecker',
2121
long_description=readme,
2222
long_description_content_type='text/markdown',
2323
license='GPL-3.0-only',
2424
author='LG Electronics',
25-
url='https://github.com/fosslight/fosslight_reuse',
26-
download_url='https://github.com/fosslight/fosslight_reuse',
25+
url='https://github.com/fosslight/fosslight_prechecker',
26+
download_url='https://github.com/fosslight/fosslight_prechecker',
2727
classifiers=[
2828
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2929
"Programming Language :: Python :: 3",
@@ -32,11 +32,12 @@
3232
"Programming Language :: Python :: 3.8",
3333
"Programming Language :: Python :: 3.9"],
3434
install_requires=required,
35-
package_data={'fosslight_reuse': ['resources/convert_license.json']},
35+
package_data={'fosslight_prechecker': ['resources/convert_license.json']},
3636
include_package_data=True,
3737
entry_points={
3838
"console_scripts": [
39-
"fosslight_reuse = fosslight_reuse.cli:main"
39+
"fosslight_prechecker = fosslight_prechecker.cli:main",
40+
"fosslight_reuse = fosslight_prechecker.cli:main"
4041
]
4142
}
4243
)

src/fosslight_oss_pkg/fosslight_oss_pkg.py renamed to src/fosslight_oss_pkg/_convert.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
from datetime import datetime
1111
from pathlib import Path
1212
from yaml import safe_dump
13-
from fosslight_reuse._help import print_help_msg
13+
from fosslight_prechecker._help import print_help_msg
1414
from fosslight_util.constant import LOGGER_NAME
1515
from fosslight_util.set_log import init_log
1616
from fosslight_util.output_format import check_output_format
1717
from ._parsing_excel import convert_excel_to_yaml, convert_yml_to_excel
1818

19-
CUSTOMIZED_FORMAT_FOR_REUSE = {'yaml': '.yaml', 'excel': '.xlsx'}
20-
_PKG_NAME = "fosslight_reuse"
19+
CUSTOMIZED_FORMAT_FOR_PRECHECKER = {'yaml': '.yaml', 'excel': '.xlsx'}
20+
_PKG_NAME = "fosslight_prechecker"
2121
logger = logging.getLogger(LOGGER_NAME)
2222

2323

@@ -51,9 +51,9 @@ def convert_report(base_path, output_name, format, need_log_file=True, sheet_nam
5151
now = datetime.now().strftime('%Y%m%d_%H-%M-%S')
5252
is_window = platform.system() == "Windows"
5353

54-
success, msg, output_path, output_name, output_extension = check_output_format(output_name, format, CUSTOMIZED_FORMAT_FOR_REUSE)
54+
success, msg, output_path, output_name, output_extension = check_output_format(output_name, format, CUSTOMIZED_FORMAT_FOR_PRECHECKER)
5555

56-
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_reuse_log_{now}.txt"),
56+
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_prechecker_log_{now}.txt"),
5757
need_log_file, logging.INFO, logging.DEBUG, _PKG_NAME, base_path)
5858
if success:
5959
if output_path == "":

0 commit comments

Comments
 (0)