[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa-admin a84afce 149/439: Merge branch 'master' of git+ssh://
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa-admin a84afce 149/439: Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa |
Date: |
Sun, 17 Oct 2021 15:47:50 -0400 (EDT) |
branch: elpa-admin
commit a84afce36d795cff3c8c84fea304c56481f1c447
Merge: d4269e6 f645cb0
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa
---
GNUmakefile | 2 +-
README | 4 +--
admin/archive-contents.el | 70 ++++++++++++++++++++++++++++-------------------
3 files changed, 45 insertions(+), 31 deletions(-)
diff --git a/GNUmakefile b/GNUmakefile
index 03a25f2..7d88843 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -54,7 +54,7 @@ process-archive:
fi; \
if [ -d $$pt ]; then \
echo "Creating tarball $${pt}.tar" && \
- tar -cf $${pt}.tar $$pt -X "$$ignore"; \
+ tar -cf $${pt}.tar $$pt --exclude-vcs -X "$$ignore"; \
rm -rf $${pt}; \
fi; \
done
diff --git a/README b/README
index 33e40fc..acc42e4 100644
--- a/README
+++ b/README
@@ -102,8 +102,8 @@ with the command:
If you want to develop a package publicly prior to its first release (to
benefit from others' feedback, primarily), but not in an external repo,
you have 2 choices:
-- you can simply put "Version: -1" to indicate that this should not be
- released.
+- you can simply put "Version: 0" to indicate that this should not be
+ released yet.
- or you can push to an "ephemeral" branch -- subject to rebase and eventual
removal upon finishing merge -- for the duration of the incubation.
diff --git a/admin/archive-contents.el b/admin/archive-contents.el
index 2eead98..5f056ba 100644
--- a/admin/archive-contents.el
+++ b/admin/archive-contents.el
@@ -44,18 +44,6 @@
(list (car elt)
(archive--version-to-list (car (cdr elt)))))
-(defun archive--strip-rcs-id (str)
- "Strip RCS version ID from the version string STR.
-If the result looks like a dotted numeric version, return it.
-Otherwise return nil."
- (when str
- (when (string-match "\\`[ \t]*[$]Revision:[ \t]+" str)
- (setq str (substring str (match-end 0))))
- (condition-case nil
- (if (archive--version-to-list str)
- str)
- (error str))))
-
(defun archive--delete-elc-files (dir &optional only-orphans)
"Recursively delete all .elc files in DIR.
Delete backup files also."
@@ -85,7 +73,9 @@ Delete backup files also."
;; (nth 1 metadata) is nil for "org" which is the only package
;; still using the "org-pkg.el file to specify the metadata.
(if (and (nth 1 metadata)
- (< (string-to-number (nth 1 metadata)) 0))
+ (or (equal (nth 1 metadata) "0")
+ ;; Old deprecated convention.
+ (< (string-to-number (nth 1 metadata)) 0)))
(progn ;; Negative version: don't publish this package yet!
(message "Package %s not released yet!" dir)
(delete-directory dir 'recursive))
@@ -186,11 +176,13 @@ PKG is the name of the package and DIR is the directory
where it is."
(error "Can't parse first line of %s" mainfile)
;; Grab the other fields, which are not mandatory.
(let* ((description (match-string 1))
+ (pv )
(version
- (or (archive--strip-rcs-id (lm-header "package-version"))
- (archive--strip-rcs-id (lm-header "version"))
+ (or (lm-header "package-version")
+ (lm-header "version")
(unless (equal pkg "org")
(error "Missing `version' header"))))
+ (_ (archive--version-to-list version)) ; Sanity check!
(requires-str (lm-header "package-requires"))
(pt (lm-header "package-type"))
(simple (if pt (equal pt "simple") (= (length files) 1)))
@@ -403,6 +395,7 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
((file-readable-p mainsrcfile)
(with-temp-buffer
(insert-file-contents mainsrcfile)
+ (emacs-lisp-mode) ;lm-section-start needs the outline-mode setting.
(let ((start (lm-section-start hsection)))
(when start
(insert
@@ -459,17 +452,24 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
(with-temp-buffer
(insert (archive--html-header (format "GNU ELPA - %s" name)))
(insert (format "<p>Description: %s</p>\n" (archive--quote desc)))
- (let* ((file (cdr (assoc latest files)))
- (attrs (file-attributes file)))
- (insert (format "<p>Latest: <a href=%S>%s</a>, %s, %s</p>\n"
- file (archive--quote file)
- (format-time-string "%Y-%b-%d" (nth 5 attrs))
- (archive--html-bytes-format (nth 7 attrs)))))
+ (if (zerop (length latest))
+ (insert "<p>This package "
+ (if files "is not in GNU ELPA any more"
+ "has not been released yet")
+ ".</p>\n")
+ (let* ((file (cdr (assoc latest files)))
+ (attrs (file-attributes file)))
+ (insert (format "<p>Latest: <a href=%S>%s</a>, %s, %s</p>\n"
+ file (archive--quote file)
+ (format-time-string "%Y-%b-%d" (nth 5 attrs))
+ (archive--html-bytes-format (nth 7 attrs))))))
(let ((maint (archive--get-prop "Maintainer" name srcdir mainsrcfile)))
(when maint
(insert (format "<p>Maintainer: %s</p>\n" (archive--quote maint)))))
- (archive--insert-repolinks name srcdir mainsrcfile
- (cdr (assoc :url (aref (cdr pkg) 4))))
+ (archive--insert-repolinks
+ name srcdir mainsrcfile
+ (or (cdr (assoc :url (aref (cdr pkg) 4)))
+ (archive--get-prop "URL" name srcdir mainsrcfile)))
(let ((rm (archive--get-section
"Commentary" '("README" "README.rst"
;; Most README.md files seem to be currently
@@ -481,7 +481,7 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
(write-region rm nil (concat name "-readme.txt"))
(insert "<h2>Full description</h2><pre>\n" (archive--quote rm)
"\n</pre>\n")))
- (unless (< (length files) 2)
+ (unless (< (length files) (if (zerop (length latest)) 1 2))
(insert (format "<h2>Old versions</h2><table cellpadding=\"3\"
border=\"1\">\n"))
(dolist (file files)
(unless (equal (pop file) latest)
@@ -520,6 +520,10 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
(goto-char (point-min))
;; Skip the first element which is a version number.
(cdr (read (current-buffer))))))
+ (dolist (subdir (directory-files "../../build/packages" nil))
+ (cond
+ ((member subdir '("." ".." "elpa.rss" "index.html" "archive-contents")))
+ (t (puthash subdir nil packages))))
(dolist (file (directory-files default-directory nil))
(cond
((member file '("." ".." "elpa.rss" "index.html" "archive-contents")))
@@ -532,10 +536,20 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
(version (match-string 1 file)))
(push (cons version file) (gethash name packages))))
(t (message "Unknown file %S" file))))
- (dolist (pkg archive-contents)
- (archive--html-make-pkg pkg (gethash (symbol-name (car pkg)) packages)))
- ;; FIXME: Add (old?) packages that are in `packages' but not in
- ;; archive-contents.
+ (maphash (lambda (pkg-name files)
+ (archive--html-make-pkg
+ (let ((pkg (intern pkg-name)))
+ (or (assq pkg archive-contents)
+ ;; Add entries for packages that are either not yet
+ ;; released or not released any more.
+ ;; FIXME: Get actual description!
+ (let ((entry (cons pkg (vector nil nil "" nil nil))))
+ (setq archive-contents
+ ;; Add entry at the end.
+ (nconc archive-contents (list entry)))
+ entry)))
+ files))
+ packages)
(archive--html-make-index archive-contents)))
;;; Maintain external packages.
- [nongnu] elpa-admin 627a556 177/439: Update packages/darkroom by merging its external subtree, (continued)
- [nongnu] elpa-admin 627a556 177/439: Update packages/darkroom by merging its external subtree, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 642c7c1 203/439: Prevent accidental deletion of .git, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a8b876c 207/439: * admin/archive-contents.el: Make :core handling optional, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 368a212 219/439: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 5cf5115 228/439: * admin/archive-contents.el (archive--pull): New function, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 94d527c 121/439: Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 80a4836 120/439: Merge branch 'master' of git://bzr.sv.gnu.org/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin f1f09fa 118/439: more tutorial, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin c5f517e 130/439: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a7a8990 132/439: Fix prefix of last merge and restore deleted files, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a84afce 149/439: Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa,
Philip Kaludercic <=
- [nongnu] elpa-admin d4269e6 141/439: Make sure removal of $(ARCHIVE_TMP)/packages/$(pkg) does not prompt interactively., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 401790d 168/439: Add 'packages/load-relative/' from commit '064074d7dcc8d26d59ab9ceb099b43e6870c58d1', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 3cd0561 181/439: Improve README.md and add a screenshot, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin ed5d4e7 182/439: Skip "test" directories for copyright checks, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin bed5172 178/439: Update packages/yasnippet by merging from its external upstream subtree, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 1d968dc 183/439: Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 134842c 174/439: Merge commit '0e1d1440e4819d76cc68b213431722884af66e89', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 62629ab 224/439: Merge commit 'd827bb511203a64da3ae5cc6910b87b7c99d233b', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 581dd5b 231/439: Fix a typo in the readme, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 864099f 232/439: packages/yasnippet: pull from external (0.10.0), Philip Kaludercic, 2021/10/17