jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1023059?usp=email )
Change subject: [doc] Do not show version hints with -help option in make_dist.py ......................................................................
[doc] Do not show version hints with -help option in make_dist.py
Change-Id: I5ba629de9535648430b156d8cd451bac092f13bf --- M make_dist.py 1 file changed, 4 insertions(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/make_dist.py b/make_dist.py index 8dc2a13..8979c73 100755 --- a/make_dist.py +++ b/make_dist.py @@ -204,8 +204,11 @@ uploaded """ if '-help' in sys.argv: + import re import setup - info(__doc__) + help_text = re.sub(r'^.. version(added|changed)::.+', '', + __doc__, flags=re.MULTILINE | re.DOTALL) + info(help_text) info(setup.__doc__) sys.exit()
pywikibot-commits@lists.wikimedia.org