Skip to content

Commit

Permalink
update configs for reuse v4 (#372)
Browse files Browse the repository at this point in the history
* update configs for reuse v4

* updated Jinja2 version to 3.1.4 to fix a Codacy's security issue
  • Loading branch information
fktn-k authored Aug 18, 2024
1 parent 0300914 commit 28f64b2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
17 changes: 0 additions & 17 deletions .reuse/dep5

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ update-version-macros:
update-project-version:
$(shell sed -i 's/VERSION [0-9]\+\.[0-9]\+\.[0-9]\+/VERSION $(TARGET_VERSION_FULL)/' CMakeLists.txt)

# pre-requisites: pipx, reuse
# pre-requisites: pipx, reuse(>=v4.0.0, confirmed with v4.0.3)
reuse: update-reuse-templates
pipx run reuse annotate $(SRCS) --template fkYAML \
--copyright "Kensuke Fukutani <fktn.dev@gmail.com>" --copyright-style spdx \
--license MIT --year "2023-2024" --style c
--license MIT --year "2023-2024" --style cppsingle
pipx run reuse annotate $(TEST_SRCS) $(EXAMPLE_SRCS) $(TOOL_SRCS) --template fkYAML_support \
--copyright "Kensuke Fukutani <fktn.dev@gmail.com>" --copyright-style spdx \
--license MIT --year "2023-2024" --style c
--license MIT --year "2023-2024" --style cppsingle
pipx run reuse lint

update-sources: reuse update-version-macros
Expand Down
22 changes: 22 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version = 1
SPDX-PackageName = "fkYAML"
SPDX-PackageSupplier = "Kensuke Fukutani <fktn.dev@gmail.com>"
SPDX-PackageDownloadLocation = "https://github.com/fktn-k/fkYAML"

[[annotations]]
path = "**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2023 Kensuke Fukutani <fktn.dev@gmail.com>"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = "thirdparty/imapdl/**"
precedence = "aggregate"
SPDX-FileCopyrightText = ["2017 Georg Sauthoff <mail@gms.tf>", "2022, Alexander Stohr, ZF Friedrichshafen AG"]
SPDX-License-Identifier = "GPL-3.0-only"

[[annotations]]
path = "tool/amalgamation/**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2012 Erik Edlund <erik.edlund@32767.se>"
SPDX-License-Identifier = "BSD-3-Clause"
2 changes: 1 addition & 1 deletion tool/natvis_generator/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Jinja2==3.1.2.
Jinja2==3.1.4

0 comments on commit 28f64b2

Please sign in to comment.