From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Allowing rolling release packages on ELPA Date: Sat, 22 Oct 2022 10:31:35 +0000 Message-ID: <87o7u4p2t4.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33947"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 22 12:36:20 2022 Return-path: 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 ) id 1omBrX-0008cF-Ag for ged-emacs-devel@m.gmane-mx.org; Sat, 22 Oct 2022 12:36:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omBnF-0002xe-88; Sat, 22 Oct 2022 06:31:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omBn3-0002vO-Km for emacs-devel@gnu.org; Sat, 22 Oct 2022 06:31:44 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omBn1-0002iG-He for emacs-devel@gnu.org; Sat, 22 Oct 2022 06:31:41 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D487F240104 for ; Sat, 22 Oct 2022 12:31:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666434696; bh=yL4vcoqbe+7BvdcKiBk6dUVeJ1CMM7eejux53ASy+nI=; h=From:To:Subject:Autocrypt:Date:From; b=S4L3k8/zPNd/e1vD5j6VJzumVaRtZTAU77JraMeowPqYMVajKyS0SzckmiHTZphyo m+ZyKaZfJDtyP2eGXT/wAp/dWo6bip7UoM/yZ0MCFuwIi2lLna0DrUP863Peji0o5c HYg2B4ennHwF9/gMMZup4uhsES3eMYG1Au3mGut+ltJyhDGbldOfHhT0akCZzXRDyX zLJbvY8Oef9wxjsCBZjeXf2b04HFwy0CrS8MG6gtShAgnAUKxdA7h5TtGY8YnhEs62 5CsvVeQz20T9V1QxLPBm6U/0NpxWEAVRk+BbCJcMNo9ZpozBZvuqMuqGLg8GJ0DXRe GN/eHFKRm9P9g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mvd142M3jz6trH for ; Sat, 22 Oct 2022 12:31:36 +0200 (CEST) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298265 Archived-At: --=-=-= Content-Type: text/plain I have heard from people who prefer a rolling release model for their packages, and requested that their packages not be added for {Non,}GNU ELPA if they would have to update the version header manually, presumably on every commit. The following patch would enable ELPA devel-like versioning on ELPA, if enabled with a :rolling-release property. WDYT? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Add-support-for-rolling-release-packages.patch >From e6c928873683c9f5147ee6cb1301047b47b3208f Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 16 Oct 2022 18:05:40 +0200 Subject: [PATCH] Add support for rolling-release packages * README: Document :rolling-release * elpa-admin.el (elpaa--get-release-revision): Respect :rolling-release. (elpaa--make-one-package): Respect :rolling-release. --- README | 6 +++++- elpa-admin.el | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README b/README index 4ff305047a..2e8a9e1156 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ #+TITLE: ELPA-Admin README -#+DATE: 2022-01-06 +#+DATE: 2022-10-16 Copyright (C) 2010-2022 Free Software Foundation, Inc. \\ See the end of the file for license conditions. @@ -168,6 +168,10 @@ this ORIG-VERSION (or REMAPPED-VERSION if non-nil) to override the default heuristic which uses the last revision that modified the "Version:" header. +** =:rolling-release FLAG= +If FLAG is non-nil, a new package will be released for every new +commit, instead of just when the "Version" header is incremented. + * Configuration (elpa-config) The configuration file is a `lisp-data-mode` file containing diff --git a/elpa-admin.el b/elpa-admin.el index d8f84e7205..054c9bda86 100644 --- a/elpa-admin.el +++ b/elpa-admin.el @@ -194,6 +194,7 @@ commit which modified the \"Version:\" pseudo header." (not (member vers (car version-map)))) (pop version-map)) (or (nth 2 (car version-map)) + (and (elpaa--spec-get pkg-spec :rolling-release) "HEAD") ;; When the mainfile is a symlink (e.g. for :core packages), run Git ;; in the directory that holds the actual file, otherwise Git won't ;; know what file we're talking about. @@ -952,6 +953,8 @@ place the resulting tarball into the file named TARBALL-ONLY." (lambda () (cdr last-rel))) (elpaa--release-email pkg-spec metadata dir))))))) (t + (when (elpaa--spec-get pkg-spec :rolling-release) + (setq vers devel-vers)) (let ((tarball (concat elpaa--release-subdir (format "%s-%s.tar" pkgname vers)))) (when (elpaa--make-one-tarball -- 2.38.0 --=-=-= Content-Type: text/plain I guess a counter argument is that you can use `time-stamp' with a adequate file local configuration, I can't really say which is better. --=-=-=--