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