Skip to content

Commit

Permalink
Preparing release 2.17.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Jul 8, 2021
1 parent 83a83be commit ed7d61b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

2.17.3 (unreleased)
2.17.3 (2021-07-08)
-------------------

- Add support for Python 3.8 and 3.9.
Expand Down
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ releasechecklist: check-date # also release.mk will add other checks


FILE_WITH_VERSION = src/irclog2html/_version.py
FILE_WITH_METADATA = src/irclog2html/_version.py
include release.mk

# override the release recipe in release.mk
Expand All @@ -47,9 +48,14 @@ endef

.PHONY: check-date
check-date:
@date_line="__date__ = '`date +%Y-%m-%d`'" && \
grep -q "^$$date_line$$" $(FILE_WITH_VERSION) || { \
echo "$(FILE_WITH_VERSION) doesn't specify $$date_line"; exit 1; }
@date_line="__date__ = '"`date +%Y-%m-%d`"'" && \
grep -q "^$$date_line$$" $(FILE_WITH_METADATA) || { \
echo "$(FILE_WITH_METADATA) doesn't specify $$date_line"; \
echo "Please run make update-date"; exit 1; }

.PHONY: update-date
update-date: ##: set release date in source code to today
sed -i -e "s/^__date__ = '.*'/__date__ = '"`date +%Y-%m-%d`"'/" $(FILE_WITH_METADATA)


python:
Expand Down
4 changes: 2 additions & 2 deletions src/irclog2html/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '2.17.3.dev0'
__date__ = '2019-04-23'
__version__ = '2.17.3'
__date__ = '2021-07-08'
__homepage__ = 'https://mg.pov.lt/irclog2html/'

0 comments on commit ed7d61b

Please sign in to comment.