Skip to content

Commit

Permalink
Automatic update to JuliaRegistries/General/56c4be703fdf75bccf90b6af4…
Browse files Browse the repository at this point in the history
…6d41b4d40abc286
  • Loading branch information
registry2nix committed Dec 19, 2024
1 parent 49aa4b7 commit ead7d02
Show file tree
Hide file tree
Showing 71 changed files with 371 additions and 70 deletions.
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.10.toml
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[deps.RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[deps.RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.11.toml
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ version = "1.11.0"

[[deps.RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[deps.RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.3.toml
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ version = "1.2.1"

[[RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.4.toml
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ version = "1.2.1"

[[RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.5.toml
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ version = "1.2.1"

[[RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.6.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ version = "1.3.4"

[[RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.7.toml
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ version = "1.3.4"

[[deps.RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[deps.RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.8.toml
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ version = "1.3.4"

[[deps.RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[deps.RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
4 changes: 2 additions & 2 deletions .ci/Manifest-v1.9.toml
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[deps.RegistryCI]]
deps = ["Base64", "Dates", "GitHub", "HTTP", "JSON", "LibGit2", "LicenseCheck", "Pkg", "Printf", "Random", "RegistryTools", "SHA", "StringDistances", "TOML", "Tar", "Test", "TimeZones", "VisualStringDistances"]
git-tree-sha1 = "a836aba95b255762fe4e886451b8457a5e4db3e0"
git-tree-sha1 = "3c81b98156ab176b6126791d84e916b4ac2a6412"
uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
version = "10.10.1"
version = "10.10.3"

[[deps.RegistryTools]]
deps = ["LibGit2", "Pkg", "SHA", "UUIDs"]
Expand Down
114 changes: 84 additions & 30 deletions .ci/generate_redirects.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,52 @@ function package_path(args...)
joinpath("webroot", "packages", "redirect_to_repo", args...)
end

function style_block(backgroundcolor, color)
"""
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background-color: #f9f9f9;
}
.centered-div {
border: 3px solid $color;
background-color: $backgroundcolor;
border-radius: 10px;
padding: 20px;
margin: 20px;
text-align: center;
color: #333;
max-width: 30em;
word-wrap: break-word;
}
.centered-div a {
color: $color;
font-weight: bold;
}
</style>
"""
end

function create_redirect_page(; name, path)
repo = get_repo(path)
host = get_host(repo)
jlname = name * ".jl"
should_redirect = known_host(host)
meta_redirection = should_redirect ? """<meta http-equiv="refresh" content="0; url=$repo">""" : ""
message = if should_redirect
"""Redirecting to $name...<br><br>Click the link below if you are not redirected automatically to the registered repository for the Julia package $name<br><br><a href="$repo" rel="nofollow">$repo</a>"""
"""Redirecting to $jlname...<br><br>Click the link below if you are not redirected automatically to the registered repository for the Julia package $jlname<br><br><a href="$repo" rel="nofollow">$repo</a>"""
else
"""Click the link below to go to the registered repository for the Julia package $name<br><br><a href="$repo" rel="nofollow">$repo</a>"""
"""Click the link below to go to the registered repository for the Julia package $jlname<br><br><a href="$repo" rel="nofollow">$repo</a>"""
end
title = if should_redirect
"Redirecting to $name..."
"Redirecting to $jlname..."
else
"Confirm redirect to $name"
"Confirm redirect to $jlname"
end

open(package_path(name * ".html"), "w") do io
Expand All @@ -52,32 +84,7 @@ function create_redirect_page(; name, path)
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>$title</title>
$meta_redirection
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background-color: #f9f9f9;
}
.centered-div {
border: 3px solid #9558B2;
background-color: #f8e9ff;
border-radius: 10px;
padding: 20px;
margin: 20px;
text-align: center;
color: #333;
max-width: 30em;
word-wrap: break-word;
}
.centered-div a {
color: #9558B2;
font-weight: bold;
}
</style>
$(style_block("#f8e9ff", "#9558B2"))
</head>
<body>
<div class="centered-div">
Expand All @@ -89,13 +96,60 @@ function create_redirect_page(; name, path)
end
end

function create_404_page()
open(joinpath("webroot", "404.html"), "w") do io
write(io, """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page not found</title>
$(style_block("#ffcbc8", "#CB3C33"))
</head>
<body>
<div class="centered-div">
<p>No page exists here.<br><br>Redirection pages for registered Julia packages follow the format packages/redirect_to_repo/SomePackage.</p>
</div>
<script>
// Get the current URL path
const urlPath = window.location.pathname;
// Define the regex pattern to match the URL structure
const pattern = /\\/packages\\/redirect_to_repo\\/([^\\/]+?)(\\.html)?\$/;
// Check if the URL matches the pattern
const match = urlPath.match(pattern);
if (match) {
const packageName = match[1]; // Extract the package name
const messageElement = document.querySelector(".centered-div p");
// Update the paragraph text
messageElement.innerHTML = `\
There is no package \${packageName}.jl registered in the Julia General Registry.\
<br><br>\
Would you like to try searching <a href="https://github.com/search?q=\${packageName}.jl&type=repositories">GitHub</a>, \
<a href="https://about.gitlab.com/search/?searchText=\${packageName}.jl">GitLab</a>, \
<a href="https://www.google.com/search?q=\${packageName}.jl">Google</a>, \
or <a href="https://duckduckgo.com/?q=\${packageName}.jl">DuckDuckGo</a> for it?`;
}
</script>
</body>
</html>
""")
end
return
end

function main()
cd(joinpath(@__DIR__, "..")) do
mkpath(package_path())
packages_info = get_packages_info()
for (; name, path) in packages_info
create_redirect_page(; name, path)
end
create_404_page()
end
end

Expand Down
9 changes: 8 additions & 1 deletion A/AccessibleOptimization/Compat.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[0]
AccessorsExtra = "0.1.43-0.1"
ConstructionBase = "1.5.1-1"
DataPipes = "0.3.5-0.3"
Reexport = "1.2.2-1"
Expand All @@ -8,8 +7,16 @@ julia = "1.6.0-1"
["0-0.1.1"]
Optimization = "3"

["0-0.1.2"]
AccessorsExtra = "0.1.43-0.1"

["0.1.1"]
Statistics = "1.6.0-1"

["0.1.2-0"]
Optimization = "3-4"

["0.1.3-0"]
AccessorsExtra = "0.1.89-0.1"
FlexiMaps = "0.1.27-0.1"
Statistics = "1"
3 changes: 3 additions & 0 deletions A/AccessibleOptimization/Deps.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

["0.1.1-0"]
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

["0.1.3-0"]
FlexiMaps = "6394faf6-06db-4fa8-b750-35ccc60383f7"
4 changes: 4 additions & 0 deletions A/AccessibleOptimization/Versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
["0.1.2"]
git-tree-sha1 = "149f6f3325bc4703ff16372f7be26bc5171f6830"
nix-sha256 = "1x8sqc3avgpwsibhn1ishkpmwkym8nn83wq0nbhxnvd5gx3kzifh"

["0.1.3"]
git-tree-sha1 = "4ed0063c350b743deed42b739b5c0c67f4d16544"
nix-sha256 = "1lxiw4906f82qgdlhkl340sv990mv8yj874p0z8kv4y6cg64qm3s"
4 changes: 4 additions & 0 deletions A/AccessorsExtra/Versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
git-tree-sha1 = "1bbc18e8b262946694a788e5bf44d09b66f2f534"
nix-sha256 = "14ghzjpwjrw6hmhg76d0hspl2sbdl6vx96b6d8yn6lr51ccdis9v"

["0.1.89"]
git-tree-sha1 = "c4b1b35846004bef0225c1b5fdf45adc02a32123"
nix-sha256 = "0drff6iixh7azqx67lkdd9nwgv7d64x8y4vz9pz6k34hmah66kva"

["0.1.9"]
git-tree-sha1 = "ef45a3c71f3a7e98a107ec66222e04250185c7bb"
nix-sha256 = "0b9pb7vk1knk295k1ifry6mhqg88mx7kc0x2j1cayv3g80xqg2kg"
3 changes: 3 additions & 0 deletions A/AccessorsExtra/WeakCompat.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ StructArrays = "0.6.21-0.6"
["0.1.87-0"]
ColorTypes = "0.11-0.12"
StructArrays = ["0.6.21-0.6", "0.7.1-0.7"]

["0.1.89-0"]
Unitful = "1.21.1-1"
3 changes: 3 additions & 0 deletions A/AccessorsExtra/WeakDeps.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

["0.1.81-0"]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

["0.1.89-0"]
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
10 changes: 8 additions & 2 deletions A/AllenNeuropixels/Compat.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[0]
AllenNeuropixelsBase = "0.2"
AllenSDK = "0.2"
CSV = "0.5-0.10"
Clustering = "0.15"
Expand Down Expand Up @@ -40,6 +39,13 @@ Requires = "1"
StatsBase = "0.33-0.34"
TimeZones = "1"
TimeseriesSurrogates = "2"
TimeseriesTools = "0.4"
Wavelets = "0.9-0.10"
julia = "1.8.0-1"

["0-0.1"]
AllenNeuropixelsBase = "0.2"
TimeseriesTools = "0.4"

["0.2-0"]
AllenNeuropixelsBase = "0.3"
TimeseriesTools = "0.5"
4 changes: 4 additions & 0 deletions A/AllenNeuropixels/Versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
["0.1.0"]
git-tree-sha1 = "eb80a230c9b6799eef7141248ffe05d02ed6d43e"
nix-sha256 = "1q1c9wmad0ibk4wl31k6j8px2vpkfnv258jxxphy1v3savvp12vp"

["0.2.0"]
git-tree-sha1 = "3c7c5882769ca00acdfb5377fbc158c9ec19774a"
nix-sha256 = "1w8s86vwzc5gx62rvza8lwn5z3vsf233nzkl41rggnnk3laah9jf"
4 changes: 4 additions & 0 deletions A/AllenNeuropixelsBase/Versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
["0.3.0"]
git-tree-sha1 = "215ea07f170cd9732aa7d7745c672f69baf3dc02"
nix-sha256 = "0bx3nyjcsb3bhs8j3067pz58s98f0vbawk0rdkff1mha7h72agwm"

["0.3.1"]
git-tree-sha1 = "ceea6a4a238d5ab31a1795acdbb575f070b98a34"
nix-sha256 = "1kgabp25nv9m49cid0y0phs1n75wrajkqq84qm7ig6hbawa2jp4f"
4 changes: 4 additions & 0 deletions A/ArgoData/Versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
git-tree-sha1 = "922395f20966ce7782583d233b59d05a6b758e6e"
nix-sha256 = "104wx9yywiffv8jg8ihcrv73wbhflb3klyavkwl4kxm7pa2ys954"

["0.1.27"]
git-tree-sha1 = "80bee74b01f0d94d55b23f3dc251fcc4b9c70027"
nix-sha256 = "1yx1q6p0mpnprdd7njipcx0rkr0qnmmknaiy70c50a9wjv7xm3r1"

["0.1.3"]
git-tree-sha1 = "83b51a85f527486e2df6484cf8f3ad9f9f573b4f"
nix-sha256 = "1wrc326swnjd0kjvx36hqsn6shm066ww7df4n73dhqfp6qkzrxfj"
Expand Down
Loading

0 comments on commit ead7d02

Please sign in to comment.