From 449d4ec37de3dbb51ee26e2945b49976a288077d Mon Sep 17 00:00:00 2001 From: Harrison Wright Date: Sun, 24 Mar 2024 21:10:49 -0500 Subject: [PATCH 1/2] Add release notes closes #10 --- Makefile | 4 ++-- README.md | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d2e070d..4ee4898 100644 --- a/Makefile +++ b/Makefile @@ -17,11 +17,11 @@ clean: test: $(ACTIVATE) $(VIRTUALENV_BIN)/python -m unittest discover -v -build-dist: clean $(ACTIVATE) lint test +build-dist: clean $(ACTIVATE) test $(VIRTUALENV_BIN)/python setup.py sdist bdist_wheel publish-dist: build-dist - $(VIRTUALENV_BIN)/pip install twine==1.12.1 && \ + $(VIRTUALENV_BIN)/pip install twine==5.0.0 && \ $(VIRTUALENV_BIN)/twine upload dist/* $(VIRTUALENV) $(ACTIVATE): diff --git a/README.md b/README.md index a1d5291..3ccfaa5 100644 --- a/README.md +++ b/README.md @@ -70,3 +70,12 @@ root ├── standard-command └── tree - show the command tree of your CLI ``` + + +Releasing: +1. update `__version__` variable, and in `setup.py` +1. git commit new version +1. git tag -a {version} +1. git push origin master --tags +1. make publish-dist +1. go to github UI and turn tag into a release From 9f61fdd84dec2c827371ca9a183a1d65b3ff9cb6 Mon Sep 17 00:00:00 2001 From: Harrison Wright Date: Wed, 2 Oct 2024 10:41:02 -0500 Subject: [PATCH 2/2] Update README to reflect latest way to instantiate plugins --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ccfaa5..7ce2fa8 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,13 @@ Example ------- ```python -from pkg_resources import iter_entry_points +import importlib.metadata import click from click_plugins import with_plugins -@with_plugins(iter_entry_points('click_command_tree')) +@with_plugins(importlib.metadata.entry_points(group="click_command_tree")) @click.group() def root(): pass