Skip to content

Commit 96cd76c

Browse files
committed
Add reuse text
1 parent 54fb643 commit 96cd76c

File tree

8 files changed

+7
-65
lines changed

8 files changed

+7
-65
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if __name__ == "__main__":
1515
setup(
1616
name='fosslight_reuse',
17-
version='2.0.3',
17+
version='2.1.0',
1818
package_dir={"": "src"},
1919
packages=find_packages(where='src'),
2020
description='FOSSLight Reuse',

src/fosslight_reuse/_add.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,14 @@ def set_missing_license_copyright(missing_license_filtered, missing_copyright_fi
144144

145145
if license == "" and copyright == "":
146146
input_copyright = input_copyright_while_running()
147-
148-
input_ok = check_input_format(input_copyright)
149-
if input_ok is False:
150-
return
151147
else:
152148
input_copyright = copyright
153149

154150
if input_copyright != "":
155151
input_copyright = 'Copyright ' + input_copyright
152+
input_ok = check_input_format(input_copyright)
153+
if input_ok is False:
154+
return
156155
logger.warning(f" * Your input Copyright : {input_copyright}")
157156
parsed_args = main_parser.parse_args(['addheader', '--copyright',
158157
'SPDX-FileCopyrightText: ' + str(input_copyright),

test_run/__init__.py

Whitespace-only changes.

test_run/test_both_have_1.py

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

test_run/test_both_have_2.py

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

test_run/test_no_copyright.py

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

test_run/test_no_license.py

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

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ basepython= python3.6
1010
whitelist_externals = cat
1111
cp
1212
rm
13+
git
1314
setenv =
1415
PYTHONPATH=.
1516

@@ -30,6 +31,8 @@ commands =
3031
rm -rf tests/add_result
3132
cp -r tests/add tests/add_result
3233
fosslight_reuse add -p tests/add_result -c "2019-2021 LG Electronics Inc." -l "GPL-3.0-only"
34+
rm -rf reuse_example
35+
git clone https://github.com/LGE-OSS/example.git reuse_example
3336
[testenv:release]
3437
deps =
3538
-r{toxinidir}/requirements-dev.txt

0 commit comments

Comments
 (0)