Skip to content

Commit

Permalink
Preparing release 2.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 20, 2017
1 parent 7825fe6 commit 2052c82
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 11 deletions.
12 changes: 9 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
Changelog
=========

2.15.4 (unreleased)
2.16.0 (2017-12-20)
-------------------

- Support Python 3.6.
- Fix for duplicated lines with the same time where the resulting HTML ``id`` anchors would evolve into long form like "t22:24:49-2-3-4-5-6-7-8-9-10" instead of "t22:24:49-10" resulting in significant output file sizes grow in some cases
- Add --output-dir (-o) parameter to logs2html allowing to place resulting files in a directory different from input catalogue

- Fix for duplicated lines with the same time where the resulting HTML ``id``
anchors would evolve into long form like "t22:24:49-2-3-4-5-6-7-8-9-10"
instead of "t22:24:49-10" resulting in significant output file size growth
in some cases.

- Add --output-dir (-o) parameter to logs2html so you can place the generated
HTML files in a directory different from the input directory.


2.15.3 (2016-12-08)
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,17 @@ clean:
rm -f testcases/*.html testcases/*.css


.PHONY: releasechecklist
releasechecklist: check-date # also release.mk will add other checks

include release.mk

.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; }


python:
virtualenv -p $(PYTHON) python
Expand Down
14 changes: 8 additions & 6 deletions release.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Makefile.rules version 1.0 (2017-12-19)
# Makefile.rules version 1.1 (2017-12-20)
#
# Helpful Makefile rules for releasing Python packages.
# https://github.com/mgedmin/python-project-skel

# You might want to change these
FILE_WITH_VERSION ?= setup.py
Expand All @@ -10,15 +11,18 @@ CHANGELOG_FORMAT ?= $(changelog_ver) ($(changelog_date))

# These should be fine
PYTHON ?= python
PYPI_PUBLISH ?= rm -rf dist && $(PYTHON) setup.py -q sdist bdist_wheel && twine upload dist/* && $(VCS_TAG) `$(PYTHON) setup.py --version`
PYPI_PUBLISH ?= rm -rf dist && $(PYTHON) setup.py -q sdist bdist_wheel && twine upload dist/*

# These should be fine, as long as you use Git
VCS_GET_LATEST ?= git pull
VCS_STATUS ?= git status --porcelain
VCS_EXPORT ?= git archive --format=tar --prefix=tmp/tree/ HEAD | tar -xf -
VCS_TAG ?= git tag -s
VCS_TAG ?= git tag -s $(changelog_ver) -m \"Release $(changelog_ver)\"
VCS_COMMIT_AND_PUSH ?= git commit -av -m "Post-release version bump" && git push && git push --tags

# These are internal implementation details
changelog_ver = `$(PYTHON) setup.py --version`
changelog_date = `LC_ALL=C date +'$(CHANGELOG_DATE_FORMAT)'`


.PHONY: dist
Expand Down Expand Up @@ -81,9 +85,6 @@ check-version-number:
check-long-description:
@$(PYTHON) setup.py --long-description | rst2html --exit-status=2 > /dev/null

changelog_ver = `$(PYTHON) setup.py --version`
changelog_date = `LC_ALL=C date +'$(CHANGELOG_DATE_FORMAT)'`

.PHONY: check-changelog
check-changelog:
@ver_and_date="$(CHANGELOG_FORMAT)" && \
Expand All @@ -106,6 +107,7 @@ define release_recipe =
@echo "Please run"
@echo
@echo " $(PYPI_PUBLISH)"
@echo " $(VCS_TAG)"
@echo
@echo "Please increment the version number in $(FILE_WITH_VERSION)"
@echo "and add a new empty entry at the top of the changelog in $(FILE_WITH_CHANGELOG), then"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def read(filename):
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
keywords='irc log colorizer html wsgi',
extras_require=dict(test=[
"mock",
"zope.testing",
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.15.4.dev0'
__date__ = '2016-12-08'
__version__ = '2.16.0'
__date__ = '2017-12-20'
__homepage__ = 'https://mg.pov.lt/irclog2html/'

0 comments on commit 2052c82

Please sign in to comment.