[latex3-commits] [git/LaTeX3-latex3-l3build] ctan-post: add some Questions to discuss in the source (b507495)

Will Robertson wspr81 at gmail.com
Fri Dec 7 08:48:32 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : ctan-post
Link       : https://github.com/latex3/l3build/commit/b507495d74411585282349a38f436905f2442688

>---------------------------------------------------------------

commit b507495d74411585282349a38f436905f2442688
Author: Will Robertson <wspr81 at gmail.com>
Date:   Fri Dec 7 18:18:32 2018 +1030

    add some Questions to discuss in the source


>---------------------------------------------------------------

b507495d74411585282349a38f436905f2442688
 l3build-ctan-post.lua |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/l3build-ctan-post.lua b/l3build-ctan-post.lua
index 225b196..8c28db7 100644
--- a/l3build-ctan-post.lua
+++ b/l3build-ctan-post.lua
@@ -62,6 +62,13 @@ local ctanupload = ctanupload or "ask"
 
 ctandata = ctandata or {}
 
+--[[
+     Q: If we are asking people to use a table, is "ctandata" okay?
+        I'm not attached to anything here.
+        I considered more generic, like "metadata", and more simple, like "ctan"
+        and not really sure.
+--]]
+
 function ctan_upload ()
 
   local bundle = bundle or ""
@@ -70,6 +77,20 @@ function ctan_upload ()
   end
   ctandata.pkg = ctandata.pkg or bundle or module or nil
 
+  --[[
+       Q: I think we need some sensible defaults. I'm wondering whether a more
+          generic opening to an l3build file might be better, like
+
+              metadata = {
+                module = "foobar",
+                author = {"Will Robertson", "Joseph Wright"},
+                license = {"lppl1.3c"},
+                ...
+              }
+
+          which we can then grab data out of for ctan, rather than vice versa.
+  --]]
+
   ctan_post = ctan_post_command .. " "
 
   --         field                                   max  desc                               mandatory  multi
@@ -93,6 +114,16 @@ function ctan_upload ()
   ctan_field("description",  ctandata.description,  4096, "Short description of package",        false, false )
   ctan_field("note",         ctandata.note,         4096, "Internal note to ctan",               false, false )
 
+  --[[
+       Q: The fields are specific to what the CTAN API needs.
+          I wonder if the l3build interface should deviate from them.
+          E.g., I think "contactname"/"contactemail" are clearer than "uploader"/"email"
+          but I'm not too fussed.
+
+       Q: What about an explicit copyright string? CTAN packages have them
+          listed. TODO: check these are all the fields.
+  --]]
+
   -- construct the curl command
   ctan_post = ctan_post .. " --form 'file=@" .. tostring(ctan_file) .. ";filename=" .. tostring(ctan_file) .. "'"
   ctan_post = ctan_post ..  " https://ctan.org/submit/"





More information about the latex3-commits mailing list