Hello Julians,
I am trying to publish a package… developing on codeberg (codeberg.org), I wonder how to publish it from there.
Mirror it to github and try to register?
Thanks.
Hello Julians,
I am trying to publish a package… developing on codeberg (codeberg.org), I wonder how to publish it from there.
Mirror it to github and try to register?
Thanks.
Perhaps this conversation may be helpful :
This is my way. Replace $GITHUB_ACCOUNT and $GITHUB_TOKEN with appropriate values.
cd ~/Documents/Code
rm -rf ~/Documents/Code/JuliaRegistry
gh repo delete https://github.com/$GITHUB_ACCOUNT//General --yes
gh repo fork https://github.com/JuliaRegistries/General --clone=false
git clone https://github.com/$GITHUB_ACCOUNT//General JuliaRegistry
cd JuliaRegistry
git checkout -b my-update
julia ~/Documents/Code/create_localregistry.jl "~/Documents/Code/JuliaRegistry"
go to your local repository
# the following step is necessary only if there are new packages added to dependencies
julia ~/Documents/Code/update_compat.jl
julia ~/Documents/Code/update_registry.jl "~/Documents/Code/JuliaRegistry"
cd ~/Documents/Code/JuliaRegistry
git push https://$GITHUB_TOKEN@github.com/$GITHUB_ACCOUNT/General.git
create a pull request
wait till it is merged
rm -rf ~/.julia/registries/LocalRegistry
rm -rf ~/Documents/Code/JuliaRegistry
Done
Some additional scripts:
create_localregistry.jl
using LocalRegistry
reg_path = expanduser(ARGS[1])
@assert isdir(reg_path) "The JuliaRegistry folder does not exist or was not provided."
@info "Creating LocalRegistry"
create_registry("LocalRegistry", reg_path, description = "LocalRegistry")
@info "Done"
exit()
update_registry.jl
using LocalRegistry
using Pkg
reg_path = expanduser(ARGS[1])
@assert isdir(reg_path) "The LocalRegistry folder does not exist or was not provided."
@info "Updating LocalRegistry"
Pkg.activate(".")
register(registry=reg_path, push=false)
@info "Done"
exit()
update_compat.jl
using Pkg
using PackageCompatUI
Pkg.activate(".")
compat_ui()
Thanks for sharing sir. Just checked out your repo(s), nice projects. Keep going!