Skip to content

Commit

Permalink
Update copyright year to include the last update year
Browse files Browse the repository at this point in the history
Signed-off-by: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  • Loading branch information
thombashi committed Aug 23, 2024
1 parent b16333f commit af5c5b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Tsuyoshi Hombashi
Copyright (c) 2023-2024 Tsuyoshi Hombashi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
PYTHON := python3

FIRST_RELEASE_YEAR := 2023
LAST_UPDATE_YEAR := $(shell git log -1 --format=%cd --date=format:%Y)


.PHONY: build
build: clean
Expand Down Expand Up @@ -36,3 +39,8 @@ setup-dev: setup-ci
.PHONY: test
test:
$(PYTHON) -m tox -e py

.PHONY: update-copyright
update-copyright:
sed -i "s/^__copyright__ = .*/__copyright__ = f\"Copyright $(FIRST_RELEASE_YEAR)-$(LAST_UPDATE_YEAR), {__author__}\"/" pathvalidate_cli/__version__.py
sed -i "s/^Copyright (c) .* Tsuyoshi Hombashi/Copyright (c) $(FIRST_RELEASE_YEAR)-$(LAST_UPDATE_YEAR) Tsuyoshi Hombashi/" LICENSE
2 changes: 1 addition & 1 deletion pathvalidate_cli/__version__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Tsuyoshi Hombashi"
__copyright__ = f"Copyright 2023, {__author__}"
__copyright__ = f"Copyright 2023-2024, {__author__}"
__license__ = "MIT License"
__version__ = "0.0.2"
__maintainer__ = __author__
Expand Down

0 comments on commit af5c5b9

Please sign in to comment.