From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: version numbers in ELPA Date: Thu, 18 Feb 2021 10:41:25 +0100 Message-ID: <875z2paf22.fsf@gmx.de> References: <87h7ma8vrs.fsf@rabkins.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24402"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Yoni Rabkin , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 18 10:42:39 2021 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 1lCfpW-0006G0-UV for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 10:42:38 +0100 Original-Received: from localhost ([::1]:51854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCfpV-00046S-VQ for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 04:42:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCfob-0003b5-LS for emacs-devel@gnu.org; Thu, 18 Feb 2021 04:41:41 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:58017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCfoY-0004mg-Tu for emacs-devel@gnu.org; Thu, 18 Feb 2021 04:41:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613641287; bh=xJb8SjsDlqRqDysO1wd7dnCzEl0NIt92ZloHQcf3pAE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NzT8Xuz5ziHM+7mBKAEGeLWGPjFi8n2EvOmY344/m5wxBGJZk68cys7aUrWfaB6qO E7lW9ftC1ewCANvqBub2W1NMq8wj5RR8MOUNmv1VQwffnk9P5F+Cj1LKilpea7MU1e vCi2URDIWubE4At3rQsLSSs5T3m2KBDw+8/Wnxbs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.145.206]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mg6dy-1lmXnc3IEA-00hdYw; Thu, 18 Feb 2021 10:41:26 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 17 Feb 2021 12:30:50 -0500") X-Provags-ID: V03:K1:7k/NP76LRw3qmgS49dXRT4kIxjFL4McTAua9wXAU0M6d7HJXPxl W+FrBRYfSBomqnFkvtTqyQhm+lzaAzCAgm0YE+0JaCDnq9OaDnziAWyoStDvSMv/ooRhpZ/ IBJIsZ7Gr59NA6kQXEqBUk52xuI1v29b1AwvWUApBr0W9RT/bhZCV07gPA8iGyW9/IXNiCW C+owd7D/WwBZuX6xJ+BoA== X-UI-Out-Filterresults: notjunk:1;V03:K0:sV629E7K9FE=:C8xn7MvnvkNI2c87No44Rm WCnOPos3s8Zjupkb5pbbMOTn+DC/z+XlQPTjbko+FasoSzbDDEV8jURs1lJKdorSoQQFQf86y hnsY76BsgB/J0Q/WtOiRlpumYONGukSdJr6vbPVuJWvhlkSAgOLzJ2r+2rgFHcxuu1+NA2jww 52HAlQjnTgXzssuMjTpgv876PTIdtdtDvRGgxnmaCUQbJt/CzqGwv0yj7McUjV+YuBvEC/YXN E7HWR2EE9HA2ClIoyiG7EiiL5QfSGF7swcst1KDRcBxPhzJeaUxHlLiOY2AolsUv/7cLVfkOY Dt82aZjnmC6pjHAYyN0DCC808G9EPKJAz2pkV98QCty2mZ3FcHRDn4LWSeUVpbGgYBYtuZqwX lfb4RghCo06q0FNnd4vOWiZdczEHeF5mwOAv3JhugKPRAdRZXHaBwyzK5+d7Tb31TP7ZQ/DDk ST/mx3MJw7kRuaOXsxJcUM0iq3Wd1UeFbRpSBC2sb3r86912d5EdAhhItPATWAn2SVbgcjWz2 lTquwuGlIU7xhB/RAH1swABtluc4urglOC85tNqR11qOrbo13boXuC4z4b2ambxHVieu8jePe XQr2E1z9d/2l7uTLjRLS1ZuLflPFO7urtTgUhLo3Snt9t6ua6EvhjZJ/ZfMWfnI2IwCXqA0ZP hRDgmnqL4umAglVnmjo/pva6kGjI+dtU5wjqV6DD1iDGkGCdTcw2TTpjt1YADo6Qp2WCfmDBy uKJ1yTVk89UQZILuSDT/hfgsNAvHtLP9+h8aQ8JFgp4wdbp4f9fv1JUJQWPtdSy9I+VwqzmW Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265130 Archived-At: Stefan Monnier writes: > Yes, version numbers are defined in ELPA (notice: not "GNU ELPA" but > "ELPA") as sequences of numbers. Since 1 and 01 are one and the same > number, then ... 2.01 is the same as 2.1. > >> Are there some implicit rules to follow as to how we should number >> versions going to ELPA? Are there some explicit rules I just skimmed >> over and didn't take note of? > > Yes, the version numbers need to obey `version-to-list` and the actual > string used to represent the version number in the name of the tarball > need to be "canonicalized" by passing them to `version-to-list` and then > recreating a corresponding string out of it with `package-version-join` > (defined in `package.el`). This need is because the `archive-contents` > file (which lists the tarballs available in a given ELPA server) give > the versions in the form of a list of numbers rather than a string, and > then `package.el` needs to "guess" the name of the corresponding tarball > by creating a string out of it. Perhaps we can recommend semantic versioning ? This speaks also about the syntax, leading zeroes are forbidden ("MUST NOT"). `version-to-list' seems to be close to this, but I haven't checked for differences. > Stefan Best regards, Michael.