From 27d0c7f0e56d023587baf6bac81ac2531d7f2517 Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Thu, 24 Sep 2020 08:46:51 -0700 Subject: [PATCH 1/3] Customize section title, because default is bad It has weird capitalization rules, in particular. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index a9724ba..b03fe29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,7 @@ package = "" filename = "docs/release_notes.rst" directory = "newsfragments" underlines = ["-", "~", "^"] +title_format = " v{version} ({project_date})" issue_format = "`#{issue} /issues/{issue}>`__" [[tool.towncrier.type]] From be1c3242048035106bc137ed2558424c5f4d860b Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Thu, 24 Sep 2020 08:58:58 -0700 Subject: [PATCH 2/3] Add some Makefile doc strings --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 264cd19..68ed417 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,12 @@ help: @echo "clean-build - remove build artifacts" @echo "clean-pyc - remove Python file artifacts" @echo "lint - check style with flake8" + @echo "lint-roll - automatically fix problems with isort, flake8, etc" @echo "test - run tests quickly with the default Python" @echo "testall - run tests on every Python version with tox" - @echo "release - package and upload a release" + @echo "docs - generate docs and open in browser (linux-docs for version on linux)" + @echo "notes - consume towncrier newsfragments/ and update release notes in docs/" + @echo "release - package and upload a release (does not run notes target)" @echo "dist - package" clean: clean-build clean-pyc From 4d0358f67b56335d395aee4d49abd5276811a6b5 Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Thu, 24 Sep 2020 08:59:09 -0700 Subject: [PATCH 3/3] Be sure to remove py3 cache files --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 68ed417..d38ac9d 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ clean-pyc: find . -name '*.pyc' -exec rm -f {} + find . -name '*.pyo' -exec rm -f {} + find . -name '*~' -exec rm -f {} + + find . -name '__pycache__' -exec rm -rf {} + lint: tox -elint