From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.devel
Subject: Re: [elpa] externals/marginalia 94fc7f0: README: Add ELPA badge
Date: Mon, 31 May 2021 10:27:56 -0400
Message-ID: <jwvr1hnrnhv.fsf-monnier+emacs@gnu.org>
References: <20210530185719.10480.76043@vcs0.savannah.gnu.org>
 <20210530185720.C7394209BF@vcs0.savannah.gnu.org>
 <jwvh7ikvvxm.fsf-monnier+emacs@gnu.org>
 <2b8bd070-845e-6b73-3f1c-209c044b1c5d@daniel-mendler.de>
 <f77cd6d3-040d-ddc2-f580-1c11c41b4374@daniel-mendler.de>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="13663"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Cc: emacs-devel@gnu.org
To: Daniel Mendler <mail@daniel-mendler.de>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 31 16:29:04 2021
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1lniud-0003Dm-Rl
	for ged-emacs-devel@m.gmane-mx.org; Mon, 31 May 2021 16:29:03 +0200
Original-Received: from localhost ([::1]:55506 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1lniuc-0008V6-SI
	for ged-emacs-devel@m.gmane-mx.org; Mon, 31 May 2021 10:29:02 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38252)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <monnier@iro.umontreal.ca>)
 id 1lnitg-0007MW-B6
 for emacs-devel@gnu.org; Mon, 31 May 2021 10:28:04 -0400
Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44609)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <monnier@iro.umontreal.ca>)
 id 1lnitc-0008DK-NX
 for emacs-devel@gnu.org; Mon, 31 May 2021 10:28:03 -0400
Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 35FF11001F9;
 Mon, 31 May 2021 10:27:59 -0400 (EDT)
Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9BEF51000C9;
 Mon, 31 May 2021 10:27:57 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1622471277;
 bh=BDKlWiy495EWsN6sseF//AtPiRL93F3NnQ8csK4IwxM=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=JVC5FKXZu4QGoP+V5DWVXbbi6BtyObIW1hoD/DjyTbsXLBxXVo9rptA3VgocRFnJi
 VN43H8NS+/6ldyAMiaF9Aj13KcNSGM92iww9dEjqG++cyoSrr+7WtPJqmMO+3v+gCg
 E6449UNBcZZkekxSOwxk5Bq3mrFtytBWeiEnipFobgVezdmvWo52VBPEObnIkGQboj
 zJYYJCCMCO0zLYt7nvpDsVRBBDhpDrw5udCyP/7lbOGUuU0FaaTaSinWajrXWwTBsy
 4r3AOFCEllsLh6ooJlylX9NRI9rjo+eNz0F1W/dhLog7KzIrBUD1pe8L749eHUicy6
 sAAg13KpoyEpw==
Original-Received: from alfajor (69-196-163-239.dsl.teksavvy.com [69.196.163.239])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 752B2120FE7;
 Mon, 31 May 2021 10:27:57 -0400 (EDT)
In-Reply-To: <f77cd6d3-040d-ddc2-f580-1c11c41b4374@daniel-mendler.de> (Daniel
 Mendler's message of "Mon, 31 May 2021 15:18:37 +0200")
Received-SPF: pass client-ip=132.204.25.50;
 envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca
X-Spam_score_int: -42
X-Spam_score: -4.3
X-Spam_bar: ----
X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:270176
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/270176>

> Stefan, I attached a "badge.sh" script which can be used to generate
> badges without depending on an external service.  It uses imagemagick
> convert to compute the string width.

Thanks, that looks like just what we need.

> This script can be used as follows:
>
> ./badge.sh "GNU ELPA" "consult 0.8" bb3955 > consult.svg
> ./badge.sh "nonGNU ELPA" "markdown-mode 2.4" bb3955 > markdown-mode.svg
>
> Depending on how the ELPA build process works it may make more sense to
> convert this to an elisp script?

You can see the code we use at:

    http://git.savannah.gnu.org/cgit/emacs/elpa.git/plain/elpa-admin.el?h=elpa-admin

In other words it's in the `elpa-admin.el` file in `elpa-admin` branch
of the `elpa.git` repository.  So yes, using ELisp will make more sense.

So we'd want the badge URL used in the `README.(md|org)`s such that the
badge indicates the latest version of the package?


        Stefan