diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2020-05-18 09:43:32 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-05-19 19:33:53 -0400 |
| commit | f6d5c35f43c4172348da4efaabf83395ce0b7853 (patch) | |
| tree | b13f0436e9db6e613f52d5f0b3eddbb65250a4cb /Makefile | |
| parent | 7f8dd68dd6da360374603f3a352c07713a3b082d (diff) | |
| download | python-coveragepy-git-f6d5c35f43c4172348da4efaabf83395ce0b7853.tar.gz | |
GitHub release automation
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -133,17 +133,17 @@ WEBHOME = ~/web/stellated/ WEBSAMPLE = $(WEBHOME)/files/sample_coverage_html WEBSAMPLEBETA = $(WEBHOME)/files/sample_coverage_html_beta -docreqs: +$(DOCPYTHON): tox -q -e doc --notest -dochtml: docreqs ## Build the docs HTML output. +dochtml: $(DOCBIN) ## Build the docs HTML output. $(DOCBIN)/python doc/check_copied_from.py doc/*.rst $(SPHINXBUILD) -b html doc doc/_build/html docdev: dochtml ## Build docs, and auto-watch for changes. PATH=$(DOCBIN):$(PATH) $(SPHINXAUTOBUILD) -b html doc doc/_build/html -docspell: docreqs +docspell: $(DOCBIN) $(SPHINXBUILD) -b spelling doc doc/_spell publish: @@ -156,7 +156,19 @@ publishbeta: mkdir -p $(WEBSAMPLEBETA) cp doc/sample_html_beta/*.* $(WEBSAMPLEBETA) -upload_relnotes: docreqs ## Upload parsed release notes to Tidelift. +CHANGES_MD = /tmp/rst_rst/changes.md +RELNOTES_JSON = /tmp/relnotes.json + +$(CHANGES_MD): CHANGES.rst $(DOCBIN) $(SPHINXBUILD) -b rst doc /tmp/rst_rst - pandoc -frst -tmarkdown_strict --atx-headers /tmp/rst_rst/changes.rst > /tmp/rst_rst/changes.md - python ci/upload_relnotes.py /tmp/rst_rst/changes.md pypi/coverage + pandoc -frst -tmarkdown_strict --atx-headers --wrap=none /tmp/rst_rst/changes.rst > $(CHANGES_MD) + +relnotes_json: $(RELNOTES_JSON) +$(RELNOTES_JSON): $(CHANGES_MD) + $(DOCBIN)/python ci/parse_relnotes.py /tmp/rst_rst/changes.md $(RELNOTES_JSON) + +tidelift_relnotes: $(RELNOTES_JSON) ## Upload parsed release notes to Tidelift. + $(DOCBIN)/python ci/tidelift_relnotes.py $(RELNOTES_JSON) pypi/coverage + +github_releases: $(RELNOTES_JSON) ## Update GitHub releases. + $(DOCBIN)/python ci/github_releases.py $(RELNOTES_JSON) nedbat/coveragepy |
