Hurm-fe

Latest version: v0.10

Safety actively analyzes 625831 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.4

~~~~~~~~~~~~~~~~

- Fix duties printouts

- Limit the range of time field lookups

- Prevent deletion of records with children

- Implement person's preferred activities management

- Add duties summary printout

0.3

~~~~~~~~~~~~~~~~

- Add YAML and Excel export of a single edition

0.2

~~~~~~~~~~~~~~~~

- Adequate capabilities for the first demo

0.1

~~~~~~~~~~~~~~~~

- Initial effort


-*- coding: utf-8 -*-
:Project: hurm -- Release related targets
:Created: mar 16 feb 2016 09:48:15 CET
: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))

.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))

.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 ">>>"

.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)

.PHONY: pypi-upload
pypi-upload: assert-master-branch assert-clean-tree production
$(PYTHON) setup.py sdist upload

.PHONY: publish
publish: pypi-upload
git push
git push --tags

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.