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

license creation failing because of wrong path #58

Merged
merged 57 commits into from
Mar 28, 2024

Conversation

ant-u
Copy link
Collaborator

@ant-u ant-u commented Mar 18, 2024

Changed license file creation to only be triggered if checks succeed or end with warnings. Added assertion for path to exist when creating file so even if it doesn't, the software doesn't crash.

dependabot bot and others added 30 commits October 2, 2023 22:41
Updates the requirements on [scancode-toolkit](https://github.com/nexB/scancode-toolkit) to permit the latest version.
- [Release notes](https://github.com/nexB/scancode-toolkit/releases)
- [Changelog](https://github.com/nexB/scancode-toolkit/blob/develop/CHANGELOG.rst)
- [Commits](aboutcode-org/scancode-toolkit@v1.0.0...v32.0.7)

---
updated-dependencies:
- dependency-name: scancode-toolkit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
…o second

Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
…oolkit into dependabot/pip/scancode-toolkit-lte-32.0.7

Signed-off-by: Anton Utz <uta5fe@bosch.com>
…ing wrong tags as the license of the file

Signed-off-by: Anton Utz <uta5fe@bosch.com>
…wrong tag

Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
… this is the only place where saving inofficial licenses makes sense

Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
…tes instead of local vars

Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
…file

Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Copy link

github-actions bot commented Mar 18, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
634 595 94% 90% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: fe4c7db by action🐍

@ant-u ant-u self-assigned this Mar 19, 2024
* added check for lincense files not covered by any tag
* Added test for too many License files
* Added inofficial license check in LicenseFileReferenced to decide between error and warning. Introduced function for path is parent or child

---------

Signed-off-by: Anton Utz <uta5fe@bosch.com>
@ant-u ant-u requested a review from ct2034 March 19, 2024 09:06
@ant-u ant-u marked this pull request as ready for review March 19, 2024 09:06
src/ros_license_toolkit/main.py Outdated Show resolved Hide resolved
Signed-off-by: Anton Utz <uta5fe@bosch.com>
@ant-u ant-u requested a review from ct2034 March 19, 2024 13:50
src/ros_license_toolkit/main.py Show resolved Hide resolved
src/ros_license_toolkit/package.py Outdated Show resolved Hide resolved
ant-u and others added 3 commits March 28, 2024 15:29
Signed-off-by: Anton Utz <uta5fe@bosch.com>
Signed-off-by: Anton Utz <uta5fe@bosch.com>
pyproject.toml Outdated Show resolved Hide resolved
@ct2034 ct2034 merged commit 4febc86 into main Mar 28, 2024
11 of 12 checks passed
@ct2034 ct2034 deleted the feature/license-creation-checking-path branch March 28, 2024 15:01
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.

License creation fails with "AssertionError: License text file must be defined."
2 participants