Any estimate when that might be? Any chance that a group of people could do the merging in the meantime, rather than just Stefan? Right now the last PR in General was merged more than 13 hours ago.
When we’re more confident that the results are always correct. As to more people doing merges, there are a number of people with permissions. I’ll look into making sure those who know how to review these things are aware that they can merge PRs.
Just to provide feedback, the gen_project.jl worked flawlessly in my packages. Just download the file, enter in your package directory and run julia gen_project.jl
. The resulting Project.toml
was very good. I just needed to do minor modifications (license, current version, description, etc.), but it indeed saved me a lot of time. Thanks @StefanKarpinski!
I also removed the REQUIRE
file, since it was not being used for my packages anymore (no support for Julia 0.6).
Finally, the process with Registrator.jl was also very easy. I do prefer the new workflow compared to what we had with attobot.
I think the silence in this thread is a testament for how seamless the transition ended up being. Thank you @StefanKarpinski
@Ronis_BR I ended up adapting your comment to help improve the documentation of Registrator
If anyone package maintainer feels that dependencies of their package or on their package have been inappropriately capped and it’s causing version resolution problems, please let me know and I can make PRs like this one to fix these bounds en masse.
Please do DynamicHMC:
Not sure this is the same problem. I just installed the latest version of Makie and cant get it to run and am not sure what I need to do to fix it, advice would be great, error output is below:
(v1.1) pkg> test Makie
Testing Makie
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ImageFiltering
[6a3955dd]:
ImageFiltering [6a3955dd] log:
├─possible versions are: [0.0.1-0.0.2, 0.1.0-0.1.4, 0.2.0-0.2.3,
0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.4, 0.6.0] or uninstalled
├─restricted to versions * by GLMakie [e9467ef8], leaving only
versions [0.0.1-0.0.2, 0.1.0-0.1.4, 0.2.0-0.2.3, 0.3.0, 0.4.0-0.4.1,
0.5.0-0.5.4, 0.6.0]
│ └─GLMakie [e9467ef8] log:
│ ├─possible versions are: 0.0.5 or uninstalled
│ └─GLMakie [e9467ef8] is fixed to version 0.0.5
├─restricted to versions 0.6.0 by an explicit requirement, leaving
only versions 0.6.0
└─restricted by compatibility requirements with MakieGallery
[dbd62bd0] to versions: [0.0.1-0.0.2, 0.1.0-0.1.4, 0.2.0-0.2.3, 0.3.0,
0.4.0-0.4.1, 0.5.0-0.5.4] — no versions left
└─MakieGallery [dbd62bd0] log:
├─possible versions are: 0.0.1-0.0.7 or uninstalled
└─restricted to versions 0.0.6-* by an explicit requirement,
leaving only versions 0.0.6-0.0.7
Not sure. @sdanisch, are there compatibility bounds issue with Makie?
Just installed it from scratch and it adds just fine.
I guess you’ll need to make sure that you freed e.g. ImageFiltering and deps!
It would be convenient if there was some sort of forceadd
that changed dependency versions as needed. At the moment, half the time I just wipe my environment and start from scratch to achieve this.
Thanks for the hard work on the package registration system.
I just wanted to release a new version of a package which runs on Julia 0.6, Julia 0.7, Julia 1.0, Julia 1.1 (yes I have still some users on Julia 0.6 which I want to support).
The compat section in Project.toml (generated by gen_project.jl
) reflects this correctly:
[compat]
BinDeps = "≥ 0.4.0"
julia = "≥ 0.6.0"
However, I get the following error message from JuliaRegistrator when I try to register a new version:
Error while trying to register: Julia version < 0.7 not allowed in `[compat]`
Here is the commend thread:
https://github.com/Alexander-Barth/NCDatasets.jl/commit/a75a5951f8b92f0af2185bf845e9e9b00810405d
Somebody has any ideas what could be wrong?
You need to use the REQUIRE
file and attobot to register the version for v0.6 and below. While, in the Project.toml
file you need to be v0.7 and up.
Putting julia = "0.7, 1.0"
in Project.toml and julia 0.6
in REQUIRE
worked for me:
https://github.com/JuliaRegistries/General/pull/40
https://github.com/JuliaLang/METADATA.jl/pull/22868
Thanks a lot! Changing the version range manually worked fine.
Creating a new version of my old, already registered (METADATA.jl) project into the new Registration JuliaRegistries/ General worked quite well, but I had to search a while to get all information I needed.
So I put it here, probably again, for others to find it more easily:
- Installed the latest nightly build of julia, in the REPL I did
julia> using Pkg
julia> Pkg.update()
julia> Pkg.add("NormalizeQuantiles")
]
(v1.3) pkg> dev NormalizeQuantiles
(v1.3) pkg> add NormalizeQuantiles#master
- Most important starting point: https://github.com/JuliaComputing/Registrator.jl
- First installing Registrator by clicking on the “install app” button
- Second installing TagBot by following the link on the same page
- Third following the description of https://github.com/JuliaComputing/Registrator.jl#transitioning-from-require-to-projecttoml removing, creating and editing files:
REQUIRE removed
Project.toml created using script gen_project.jl as described in above document
Project.toml edited according to 1. Introduction · Pkg.jl and especially
5. Creating Packages · Pkg.jl
Project.toml version added (next version number 0.5.4, not the current one 0.5.3, but Registrator will complain if wrong)
.travis.yml edited: removed script part - Commit and waiting for travis and appveyor builds to succeed
- added comment at the last commit
@JuliaRegistrator register()
as described in https://github.com/JuliaComputing/Registrator.jl
Thats it: https://github.com/JuliaRegistries/General/pull/336
Thanks to the masterminds behind that, it seems to be future-proof.
Here is a script to run gen_project.jl
on packages and open the web pages in browser to submit PRs: https://gist.github.com/tkf/eee56c7a989530fdaa87471333d0c06a
@tkf, thanks very much for this script, it’s saving me a lot of time. One minor comment: it doesn’t remove test/REQUIRE
if it’s present.
Good catch. Thanks!