Commit 13583605 authored by Maximilian Dolling's avatar Maximilian Dolling

fixed links in apply license, fixed test mode in check credentials

parent 8aedcd15
......@@ -86,9 +86,9 @@ You can find a detailed description of all implemented services [here](doc/doc_s
Copyright © 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences, Germany (https://www.gfz-potsdam.de/)
This work is licensed under the following license(s):
* Insignificant files are licensed under (CC0-1.0)[LICENSES/CC0-1.0.txt]
* Software files are licensed under (GPL-3.0-or-later)[LICENSES/GPL-3.0-or-later.txt]
* Everything else is licensed under (GPL-3.0-or-later)[LICENSES/GPL-3.0-or-later.txt]
* Insignificant files are licensed under [CC0-1.0](LICENSES/CC0-1.0.txt)
* Software files are licensed under [GPL-3.0-or-later](LICENSES/GPL-3.0-or-later.txt)
* Everything else is licensed under [GPL-3.0-or-later](LICENSES/GPL-3.0-or-later.txt)
Please see the individual files for more accurate information.
......
......@@ -18,11 +18,11 @@
**Software Name:** software-quality-assurance
**Software Location:** [gitext](https://gitext.gfz-potsdam.de/software/services/fair/software-quality-assurance)
**Software Location:** local
**Last Commit:** 08b58d34e5e4879308ea232ae9256da3c87c70e7
**Last Commit:** 0
**Report Time:** 11/08/2020 08:01:11
**Report Time:** 0
**Report Version:** 0.5.0
......@@ -56,11 +56,11 @@
|language|bytes of code|
|---|---|
|Dockerfile|5974|
|HTML|1358|
|Python|69242|
|Ruby|2509|
|Shell|24160|
|Dockerfile|0|
|HTML|0|
|Python|0|
|Ruby|0|
|Shell|0|
### list used licenses
......@@ -72,17 +72,46 @@
|---|---|---|
|Apache 2.0|1|requests|
|GPL-3.0-or-later AND Apache-2.0 AND CC0-1.0 AND CC-BY-SA-4.0|1|reuse|
|MIT|3|PyYAML <br> schema <br> stdlib-list|
|Python-2.0|8|datetime <br> json <br> os <br> pathlib <br> re <br> shutil <br> sys <br> time|
|MIT|4|PyYAML <br> httpretty <br> schema <br> stdlib-list|
|Python-2.0|10|datetime <br> importlib <br> json <br> os <br> pathlib <br> re <br> shutil <br> sys <br> time <br> unittest|
|mock|1|stdlib|
#### Unknown objects
**unknown language**
* src/services/apply-license/templates/dep5_template
* test/linter/pylintrc
* test/testfiles/unknown_language/test.testlanguage
**unknown license**
* Python / ./downloads/numpy-1.9.2-cp34-none-win32.whl / unknown location
* Python / Mopidy-Dirble / unsupported version modifier (~=1.1)
* Python / beautifulsoup4 / unknown version
* Python / coverage / unsupported version modifier (!=3.5)
* Python / django / unknown version
* Python / docopt / unsupported version modifier (>=0.5.0)
* Python / functions / unknown version
* Python / green / unknown version
* Python / http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1820+49a8884-cp34-none-win_amd64.whl / unknown location
* Python / keyring / unsupported version modifier (>=4.1.1)
* Python / nose / unknown version
* Python / nose-cov / unknown version
* Python / rejected / unknown version
* Python / stdlib_list / unknown version
* Python / yaml / unknown version
......@@ -100,8 +129,8 @@
* Unused licenses:
* Used licenses: CC0-1.0, GPL-3.0-or-later
* Read errors: 0
* Files with copyright information: 78 / 78
* Files with license information: 78 / 78
* Files with copyright information: 77 / 77
* Files with license information: 77 / 77
Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
......
......@@ -72,13 +72,13 @@ else:
for scope in config['licenses']:
if scope == 'default':
continue
licensetext = licensetext.replace('[<SCOPE>]', f"* {scope} files are licensed under "
f"({config['licenses'][scope]['spdx-identifier']})"
f"[LICENSES/{config['licenses'][scope]['spdx-identifier']}.txt]"
licensetext = licensetext.replace('[<SCOPE>]', f"* {scope} files are licensed under ["
f"{config['licenses'][scope]['spdx-identifier']}](LICENSES"
f"/{config['licenses'][scope]['spdx-identifier']}.txt)"
f"\n[<SCOPE>]")
licensetext = licensetext.replace('[<SCOPE>]', f"* Everything else is licensed under "
f"({config['licenses']['default']['spdx-identifier']})[LICENSES"
f"/{config['licenses']['default']['spdx-identifier']}.txt]")
f"[{config['licenses']['default']['spdx-identifier']}](LICENSES"
f"/{config['licenses']['default']['spdx-identifier']}.txt)")
# write license text to README
if not os.path.isfile(f'{repo_dir}/README.md'):
......
......@@ -35,7 +35,8 @@ import yaml
# config vars
service_report_dir = os.environ['SQA_SERVICE_REPORT_DIR']
mode_test = os.environ['SQA_TEST']
if os.environ['SQA_TEST'] == 'true':
mode_test = True
# collect report data
project_name = os.popen('basename $(git remote get-url origin)').read()[:-5]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment