Changelogs » Metapensiero-tool-tinject

PyUp Safety actively tracks 262,699 Python packages for vulnerabilities and notifies you when to upgrade.

Metapensiero-tool-tinject

0.7

~~~~~~~~~~~~~~~~
  
  - Use whaaaaat__ instead of inquirer__: being based on `prompt_toolkit`__ it offers a better
  user experience and should be usable also under Windows
  
  __ https://pypi.python.org/pypi/whaaaaat
  __ https://pypi.python.org/pypi/inquirer
  __ https://pypi.python.org/pypi/prompt_toolkit

0.6

~~~~~~~~~~~~~~~~
  
  - Minor tweak, no externally visible changes

0.5

~~~~~~~~~~~~~~~~
  
  - All steps support a “when” condition

0.4

~~~~~~~~~~~~~~~~
  
  - New changefile tweak to insert a line in a sorted block

0.3

~~~~~~~~~~~~~~~~
  
  - New ability to repeat a list of substeps

0.2

~~~~~~~~~~~~~~~~
  
  - First release on PyPI

0.1

~~~~~~~~~~~~~~~~
  
  - Initial effort
  
  
  -*- mode: makefile-gmake; coding: utf-8 -*-
  :Project:   metapensiero.tool.tinject -- Automate creation of sources
  :Created:   Wed 13 Apr 2016 11:22:34 CEST
  :Author:    Lele Gaifax <lelemetapensiero.it>
  :License:   GNU General Public License version 3 or later
  :Copyright: © 2016 Lele Gaifax
  
  
  PYTHON := $(BINDIR)python
  BUMPER := $(BINDIR)bump_version
  VERSION_TXT := version.txt
  VERSION = $(shell cat $(VERSION_TXT))
  
  help::
  printf "\nRelease management\n"
  printf "==================\n\n"
  
  .PHONY: assert-clean-tree
  assert-clean-tree:
  (test -z "$(shell git status -s --untracked=no)" || \
  (echo "UNCOMMITTED STAFF" && false))
  
  .PHONY: assert-master-branch
  assert-master-branch:
  (test "$(shell git rev-parse --abbrev-ref HEAD)" = "master" || \
  (echo "NOT IN MASTER BRANCH" && false))
  
  help::
  printf "release\n\tBump version number\n"
  
  .PHONY: release
  release: assert-master-branch assert-clean-tree
  $(BUMPER) $(VERSION_TXT)
  echo ">>>"
  echo ">>> Do your duties (update CHANGES.rst for example), then"
  echo ">>> execute “make tag-release”."
  echo ">>>"
  
  help::
  printf "tag-release\n\tComplete the release tagging the working tree\n"
  
  .PHONY: tag-release
  tag-release: assert-master-branch check-release-date check-long-description-markup
  git commit -a -m "Release $(VERSION)"
  git tag -a -m "Version $(VERSION)" v$(VERSION)
  
  .PHONY: check-long-description-markup
  check-long-description-markup:
  $(PYTHON) setup.py check -r -s
  
  .PHONY: check-release-date
  check-release-date:
  fgrep -q "$(VERSION) ($(shell date --iso-8601))" CHANGES.rst \
  || (echo "ERROR: release date of version $(VERSION) not set in CHANGES.rst"; exit 1)
  
  help::
  printf "pypi-upload\n\tUpload the source distribution to PyPI\n"
  
  .PHONY: pypi-upload
  pypi-upload: assert-master-branch assert-clean-tree
  $(PYTHON) setup.py sdist upload
  
  help::
  printf "publish\n\tUpload to PyPI, push changes and tags to the remote repo\n"
  
  .PHONY: publish
  publish: pypi-upload
  git push
  git push --tags