-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically update also the full version in docs/conf.py at release…
… time [skip actions]
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,14 @@ | |
# :Created: gio 03 ago 2017 14:53:18 CEST | ||
# :Author: Lele Gaifax <[email protected]> | ||
# :License: GNU General Public License version 3 or later | ||
# :Copyright: © 2017, 2018, 2019, 2020, 2021, 2022 Lele Gaifax | ||
# :Copyright: © 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lele Gaifax | ||
# | ||
|
||
BUMPER := $(VENVDIR)/bin/bump_version | ||
VERSION_TXT := version.txt | ||
VERSION = $(shell cat $(VERSION_TXT)) | ||
MOD_INIT := pglast/__init__.py | ||
DOCS_CONF := docs/conf.py | ||
TWINE := $(VENVDIR)/bin/twine | ||
|
||
help:: | ||
|
@@ -46,18 +47,21 @@ dev-release: $(VENVDIR)/extension.timestamp printers-doc assert-clean-tree | |
help:: | ||
@printf "tag-release\n\tComplete the release tagging the working tree\n" | ||
|
||
.PHONY: tag-release | ||
tag-release: check-release-date check-long-description-markup | ||
.PHONY: inject-version | ||
inject-version: | ||
sed -i "s/__version__ = '.*'/__version__ = 'v$(VERSION)'/" $(MOD_INIT) | ||
sed -i "s/release = '.*'/release = 'v$(VERSION)'/" $(DOCS_CONF) | ||
|
||
.PHONY: tag-release | ||
tag-release: check-release-date check-long-description-markup inject-version | ||
git commit -a -m "Release $(VERSION)" | ||
git tag -a -m "Version $(VERSION)" v$(VERSION) | ||
|
||
help:: | ||
@printf "dev-tag-release\n\tComplete the development release tagging the working tree\n" | ||
|
||
.PHONY: dev-tag-release | ||
dev-tag-release: check-release-date check-long-description-markup | ||
sed -i "s/__version__ = '.*'/__version__ = 'v$(VERSION)'/" $(MOD_INIT) | ||
dev-tag-release: check-release-date check-long-description-markup inject-version | ||
git commit -a -m "Development release $(VERSION)" | ||
git tag -a -m "Development version $(VERSION)" v$(VERSION) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters