Skip to content

Commit 35b3a2c

Browse files
committed
Preparing release 3.3.0
1 parent 054187d commit 35b3a2c

4 files changed

Lines changed: 23 additions & 9 deletions

File tree

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Changes
33

44
.. currentmodule:: objgraph
55

6-
3.2.1 (unreleased)
6+
3.3.0 (2017-12-28)
77
------------------
88

99
- New function: :func:`growth`.

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,19 @@ config-imgdiff:
7373
imgdiff: config-imgdiff
7474
$(VCS_DIFF_IMAGES)
7575

76+
77+
.PHONY: releasechecklist
78+
releasechecklist: check-date # also release.mk will add other checks
79+
7680
include release.mk
7781

82+
.PHONY: check-date
83+
check-date:
84+
@date_line="__date__ = '`date +%Y-%m-%d`'" && \
85+
grep -q "^$$date_line$$" $(FILE_WITH_VERSION) || { \
86+
echo "$(FILE_WITH_VERSION) doesn't specify $$date_line"; exit 1; }
87+
88+
7889
.PHONY: do-release
7990
do-release: config-imgdiff
8091

@@ -92,6 +103,7 @@ define release_recipe =
92103
@echo "then either revert or commit the new images and run"
93104
@echo
94105
@echo " $(PYPI_PUBLISH)"
106+
@echo " $(VCS_TAG)"
95107
@echo " make publish-docs"
96108
@echo
97109
@echo "Please increment the version number in $(FILE_WITH_VERSION)"

objgraph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
__author__ = "Marius Gedminas (marius@gedmin.as)"
5555
__copyright__ = "Copyright (c) 2008-2017 Marius Gedminas and contributors"
5656
__license__ = "MIT"
57-
__version__ = '3.2.1.dev0'
58-
__date__ = "2017-10-30"
57+
__version__ = '3.3.0'
58+
__date__ = '2017-12-28'
5959

6060

6161
try:

release.mk

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Makefile.rules version 1.0 (2017-12-19)
1+
# Makefile.rules version 1.1 (2017-12-20)
22
#
33
# Helpful Makefile rules for releasing Python packages.
4+
# https://github.com/mgedmin/python-project-skel
45

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

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

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

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

2327

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

84-
changelog_ver = `$(PYTHON) setup.py --version`
85-
changelog_date = `LC_ALL=C date +'$(CHANGELOG_DATE_FORMAT)'`
86-
8788
.PHONY: check-changelog
8889
check-changelog:
8990
@ver_and_date="$(CHANGELOG_FORMAT)" && \
@@ -106,6 +107,7 @@ define release_recipe =
106107
@echo "Please run"
107108
@echo
108109
@echo " $(PYPI_PUBLISH)"
110+
@echo " $(VCS_TAG)"
109111
@echo
110112
@echo "Please increment the version number in $(FILE_WITH_VERSION)"
111113
@echo "and add a new empty entry at the top of the changelog in $(FILE_WITH_CHANGELOG), then"

0 commit comments

Comments
 (0)