Skip to content

Commit

Permalink
[AutoBuild] Add badge with number of dependants to JLL READMEs (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Jan 9, 2022
1 parent e7a28da commit 6fb9c12
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/AutoBuild.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1294,10 +1294,14 @@ function build_jll_package(src_name::String,
print_product(io, p::Product) = println(io, "* `", typeof(p), "`: `", variable_name(p), "`")
# Add a README.md
open(joinpath(code_dir, "README.md"), "w") do io
print(io,
"""
# `$(src_name)_jll.jl` (v$(build_version))
println(io,
"""
# `$(src_name)_jll.jl` (v$(build_version))
""")
if is_yggdrasil()
println(io, "[![deps](https://juliahub.com/docs/$(src_name)_jll/deps.svg)](https://juliahub.com/ui/Packages/$(src_name)_jll/$(Base.package_slug(BinaryBuilder.jll_uuid("$(src_name)_jll"), 5))?page=2)\n")
end
print(io, """
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl).""")
if is_yggdrasil()
print(io, " The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/$(yggdrasil_head())/$(ENV["PROJECT"])/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree. If you have any issue, please report it to the Yggdrasil [bug tracker](https://github.com/JuliaPackaging/Yggdrasil/issues).")
Expand Down

2 comments on commit 6fb9c12

@giordano
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/51999

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.8 -m "<description of version>" 6fb9c122b7c231a124715c166a0cb80088a839ac
git push origin v0.4.8

Please sign in to comment.