Skip to content

Commit

Permalink
release V1.1.6 with bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
gmella committed Jan 6, 2025
1 parent f9ba278 commit fc03f2e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion expath-pkg.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<package
xmlns="http://expath.org/ns/pkg" name="http://exist.jmmc.fr/releases/apps/releases"
abbrev="releases" version="1.1.5" spec="1.0">
abbrev="releases" version="1.1.6" spec="1.0">
<title>JMMC applications's latest releases</title>
<dependency processor="http://exist-db.org" semver-min="5.3.0"/>
<dependency package="http://exist-db.org/html-templating" semver-min="1.0.2"/>
Expand Down
10 changes: 7 additions & 3 deletions modules/app.xqm
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ declare %templates:wrap function app:releases($node as node(), $model as map(*),
declare function app:format-date($date){
try {
let $input := string($date)
return
<span title="{$input}">{
Expand All @@ -60,7 +61,10 @@ declare function app:format-date($date){
substring(string(jmmc-dateutil:RFC822toISO8601($input)), 1,16)
else
$input
}</span>
}</span>
} catch * {
<span title="missing date">ERROR retrieving date</span>
}
};
declare function app:json-doc($href as xs:string, $use-cache as xs:boolean)
Expand Down Expand Up @@ -140,9 +144,9 @@ declare function app:release-table($use-cache as xs:boolean){
let $name := data($module)
let $location := <url>https://pypi.org/pypi/{$name}</url>
let $json := app:json-doc(<url>https://pypi.org/pypi/{$name}/json</url>, $use-cache)
let $last := $json?urls?*
let $last := $json?urls?*[contains(.?filename,".gz")]
let $deployed := app:format-date( $last?upload_time )
let $version := replace(replace($last?filename, $module||"-",""),".tar.gz","")
let $version := $json?info?version
return
map{ $name : map{ "category": "Python", "releases": map{ "public": map{ "location":$location, "version":$version, "date":$deployed } } } }
, for $repo in app:get-softs()//repos/*
Expand Down
6 changes: 6 additions & 0 deletions repo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<prepare>pre-install.xq</prepare>
<finish>post-install.xq</finish>
<changelog>
<change xmlns="" version="1.1.6">
<h3>2024-09-10</h3>
<ul>
<li>Bugfix retrieving information on pypi with more than one url.</li>
</ul>
</change>
<change xmlns="" version="1.1.5">
<h3>2024-09-10</h3>
<ul>
Expand Down

0 comments on commit fc03f2e

Please sign in to comment.