# Switching package registration systems soon

**URL:** <https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677>\
**Category:** Announcements\
**Tags:** package-manager\
**Created:** [April 3, 2019, 6:48am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677 "2019-04-03T06:48:03Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [April 17, 2019, 5:58pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/141 "2019-04-17T17:58:29Z")

</div>

See [Dependency problem with FIllArrays - #6 by fredrikekre](https://discourse.julialang.org/t/dependency-problem-with-fillarrays/23238/6)

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [April 18, 2019, 11:05pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/142 "2019-04-18T23:05:14Z")

</div>

> [@StefanKarpinski](#):
>
> In the near future, we will implement automatic registration PR merging for PRs that pass a reasonable smoke test.

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.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [April 19, 2019, 7:53am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/143 "2019-04-19T07:53:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [April 22, 2019, 4:08pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/144 "2019-04-22T16:08:52Z")

</div>

Just to provide feedback, the [gen\_project.jl](https://github.com/JuliaLang/Pkg.jl/blob/master/bin/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.

---

<div class="post-metadata">

**Author:** ![dlfivefifty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlfivefifty/32/1959_2.png) [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Post date:** [April 22, 2019, 9:53pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/145 "2019-04-22T21:53:29Z")

</div>

I think the silence in this thread is a testament for how seamless the transition ended up being. Thank you @StefanKarpinski 👍

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [April 23, 2019, 1:55pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/146 "2019-04-23T13:55:55Z")

</div>

@Ronis_BR I ended up adapting your comment to help [improve the documentation of Registrator](https://github.com/JuliaComputing/Registrator.jl/pull/99)

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [April 24, 2019, 1:40pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/147 "2019-04-24T13:40:24Z")

</div>

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](https://github.com/JuliaRegistries/General/pull/256/files) to fix these bounds en masse.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 24, 2019, 2:14pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/148 "2019-04-24T14:14:55Z")

</div>

Please do DynamicHMC:

[https://github.com/tpapp/DynamicHMC.jl/issues/46](https://github.com/tpapp/DynamicHMC.jl/issues/46)

---

<div class="post-metadata">

**Author:** ![timmm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/timmm/32/6760_2.png) [@timmm](https://discourse.julialang.org/u/timmm)\
**Post date:** [April 24, 2019, 3:05pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/149 "2019-04-24T15:05:26Z")

</div>

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:

```julia
(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

```

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [April 24, 2019, 4:53pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/150 "2019-04-24T16:53:48Z")

</div>

Not sure. @sdanisch, are there compatibility bounds issue with Makie?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 24, 2019, 5:08pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/151 "2019-04-24T17:08:56Z")

</div>

Just installed it from [scratch](https://nextjournal.com/a/L7VLuUmW412ZAwztTdcT8?token=BxExgGkydDQtVhnSqZYQRf) and it adds just fine.  
I guess you’ll need to make sure that you freed e.g. ImageFiltering and deps!

---

<div class="post-metadata">

**Author:** ![dlfivefifty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlfivefifty/32/1959_2.png) [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Post date:** [April 25, 2019, 7:27am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/152 "2019-04-25T07:27:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexander-Barth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexander-barth/32/3692_2.png) [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Post date:** [April 25, 2019, 8:08am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/153 "2019-04-25T08:08:49Z")

</div>

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:

```julia
[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:

```julia
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](https://github.com/Alexander-Barth/NCDatasets.jl/commit/a75a5951f8b92f0af2185bf845e9e9b00810405d)

Somebody has any ideas what could be wrong?

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [April 25, 2019, 8:18am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/154 "2019-04-25T08:18:00Z")

</div>

> [@Alexander-Barth](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [April 25, 2019, 8:32am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/155 "2019-04-25T08:32:01Z")

</div>

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/JuliaRegistries/General/pull/40)  
[https://github.com/JuliaLang/METADATA.jl/pull/22868](https://github.com/JuliaLang/METADATA.jl/pull/22868)

---

<div class="post-metadata">

**Author:** ![Alexander-Barth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexander-barth/32/3692_2.png) [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Post date:** [April 25, 2019, 10:04am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/156 "2019-04-25T10:04:32Z")

</div>

Thanks a lot! Changing the version range manually worked fine.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [April 26, 2019, 1:38pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/157 "2019-04-26T13:38:58Z")

</div>

Creating a new version of my old, already registered (METADATA.jl) project into the new Registration [JuliaRegistries](https://github.com/JuliaRegistries)/ **[General](https://github.com/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](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](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](https://github.com/JuliaLang/Pkg.jl/blob/master/bin/gen_project.jl) as described in above document  
Project.toml edited according to [1. Introduction · Pkg.jl](https://julialang.github.io/Pkg.jl/dev/) and especially  
[5. Creating Packages · Pkg.jl](https://julialang.github.io/Pkg.jl/dev/creating-packages/#Test-specific-dependencies-in-Julia-1.0-and-1.1-1)  
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](https://github.com/JuliaComputing/Registrator.jl)

Thats it: [https://github.com/JuliaRegistries/General/pull/336](https://github.com/JuliaRegistries/General/pull/336)  
Thanks to the masterminds behind that, it seems to be future-proof.

---

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [April 28, 2019, 11:41pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/158 "2019-04-28T23:41:57Z")

</div>

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](https://gist.github.com/tkf/eee56c7a989530fdaa87471333d0c06a)

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [May 13, 2019, 3:55pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/159 "2019-05-13T15:55:07Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [May 13, 2019, 8:22pm UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677/160 "2019-05-13T20:22:31Z")

</div>

Good catch. Thanks!

[Previous page](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677.md?page=7)

[Next page](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677.md?page=9)
