From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CCPOGjqVm2LyHgAAbAwnHQ (envelope-from ) for ; Sat, 04 Jun 2022 19:24:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yM3cGTqVm2JyEQEAG6o9tA (envelope-from ) for ; Sat, 04 Jun 2022 19:24:10 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 201781CCED for ; Sat, 4 Jun 2022 19:24:10 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D09A15F7E6; Sat, 4 Jun 2022 17:23:39 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id B5F665F7DA for ; Sat, 4 Jun 2022 17:23:36 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 171FF5FC0D; Sat, 4 Jun 2022 13:23:35 -0400 (EDT) Received: (nullmailer pid 1150052 invoked by uid 1000); Sat, 04 Jun 2022 17:23:25 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH v3 01/17] nmbug: promote to user tool "notmuch-git" Date: Sat, 4 Jun 2022 14:22:57 -0300 Message-Id: <20220604172313.1149879-2-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220604172313.1149879-1-david@tethera.net> References: <20220604172313.1149879-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 5CDVWYLRTEGAODI3NES362FO3EWWL6XC X-Message-ID-Hash: 5CDVWYLRTEGAODI3NES362FO3EWWL6XC X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654363450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=J2gh4lU1CH1jU4SaJRommHkf17mcMjNM18GtPG0E2dA=; b=En7vhYlxUrJAuRXuhIGmsNX3h5/Z5O6UHySuIFRtJXaMjy4eS9Og7T8No5MmLkO/qnz6vm PrDfG/Lkl7PPdR6tS/RLzchUDwInmiTLW9wjbSioaRPUxfypaxJitbVX+pKZ0HCGSEwUt8 wmTnYqnkFcnL8NVpnHWC+0wtgl/S4K0//0RaAlxJ7za4RkgiinFPU1Itx44Qo6b2ig8dN6 ffsxr5Z/6lKwIeHdKbg15yuzNmOjVB4b25W0/oOmrhidm+7SzqjkudN80IKyWUrsGKs05M c+aNvcOSHHrMzuiarCDc0mmUI9kzUY6/jhH7+CzK51yECiQ84cFZoue4bgGHTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654363450; a=rsa-sha256; cv=none; b=XoNNrLAAIdxqMwiFJ8ZaneNtXHukMfcaTGLCD+xlmp7GL4c747OfP/QVLImWTCKh1P4KN8 FPD3D+qICN/0dl8AhXzuizYURPLHCeXUp8aT4ZvStItMu+mEXuzxNZh1YtJ6vcbtyiVEAx GqNXcbfathsik+1GANXo56aSmIRTpuFsSDaLpbkxlttA1JCuuHfyszGRjtobrV5jkEXGuy 08DCdikq3cRLyaKnKQTsInNUrEXpIOCHb/xtmUTvsQd+ALKI8CYQFAVSOZM3qUtuwwcajP koLJT73w7hq2Y9VinE35xATARyqfb3bqlOACJk6J8V4cXR8p5HMpxp1Kx34WfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 201781CCED X-Spam-Score: -1.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: cmazZa4Sg/bQ Initially just a rename, and drop the --version argument that clashes with the global notmuch --version argument. --- Makefile.local | 7 ++++++- devel/nmbug/nmbug => notmuch-git.py | 6 ------ 2 files changed, 6 insertions(+), 7 deletions(-) rename devel/nmbug/nmbug => notmuch-git.py (99%) mode change 100755 => 100644 diff --git a/Makefile.local b/Makefile.local index d8bbf3e1..d2e0c7a8 100644 --- a/Makefile.local +++ b/Makefile.local @@ -1,7 +1,7 @@ # -*- makefile-gmake -*- .PHONY: all -all: notmuch notmuch-shared build-man build-info ruby-bindings python-cffi-bindings +all: notmuch notmuch-shared build-man build-info ruby-bindings python-cffi-bindings notmuch-git ifeq ($(MAKECMDGOALS),) ifeq ($(shell cat .first-build-message 2>/dev/null),) @NOTMUCH_FIRST_BUILD=1 $(MAKE) --no-print-directory all @@ -45,6 +45,11 @@ $(SHA256_FILE): $(TAR_FILE) $(DETACHED_SIG_FILE): $(TAR_FILE) gpg --armor --detach-sign $^ +CLEAN := $(CLEAN) notmuch-git +notmuch-git: notmuch-git.py + cp $< $@ + chmod ugo+x $@ + .PHONY: dist dist: $(TAR_FILE) diff --git a/devel/nmbug/nmbug b/notmuch-git.py old mode 100755 new mode 100644 similarity index 99% rename from devel/nmbug/nmbug rename to notmuch-git.py index 043c1863..04cdae0f --- a/devel/nmbug/nmbug +++ b/notmuch-git.py @@ -50,9 +50,6 @@ except ImportError: # Python 2 from urllib import quote as _quote from urllib import unquote as _unquote - -__version__ = '0.3' - _LOG = _logging.getLogger('nmbug') _LOG.setLevel(_logging.WARNING) _LOG.addHandler(_logging.StreamHandler()) @@ -718,9 +715,6 @@ if __name__ == '__main__': parser = argparse.ArgumentParser( description=__doc__.strip(), formatter_class=argparse.RawDescriptionHelpFormatter) - parser.add_argument( - '-v', '--version', action='version', - version='%(prog)s {}'.format(__version__)) parser.add_argument( '-l', '--log-level', choices=['critical', 'error', 'warning', 'info', 'debug'], -- 2.35.2