-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from JuliaEcosystem/MB/dep-fix
Retrieve dependencies from a VersionRange
- Loading branch information
Showing
15 changed files
with
137 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
struct PkgEntry | ||
path::String | ||
registry_path::String | ||
name::String | ||
uuid::UUID | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
struct RegistryInstance | ||
path::String | ||
name::String | ||
uuid::UUID | ||
url::Union{String, Nothing} | ||
repo::Union{String, Nothing} | ||
description::Union{String, Nothing} | ||
pkgs::Dict{AbstractString, PkgEntry} | ||
end | ||
|
||
function RegistryInstance(path::AbstractString) | ||
d = parsefile(joinpath(path, "Registry.toml")) | ||
pkgs = Dict{AbstractString, PkgEntry}() | ||
|
||
for (uuid, info) in d["packages"] | ||
uuid = UUID(uuid) | ||
info | ||
name = info["name"] | ||
pkgpath = info["path"] | ||
pkg = PkgEntry(pkgpath, path, name, uuid) | ||
pkgs[name] = pkg | ||
end | ||
|
||
return RegistryInstance( | ||
path, | ||
d["name"], | ||
UUID(d["uuid"]), | ||
get(d, "url", nothing), | ||
get(d, "repo", nothing), | ||
get(d, "description", nothing), | ||
pkgs | ||
) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[0] | ||
UpDep = "000eeb74-f857-587a-a816-be5685e97e75" | ||
DownDep = "000eeb74-f857-587a-a816-be5685e97e75" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
["0.0.1"] | ||
git-tree-sha1 = "7bbdd841302ae0708824fa57d77a3e4780097531" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
["0.1-0"] | ||
UpDep = "000eeb74-f857-587a-a816-be5685e97e75" | ||
DownDep = "000eeb74-f857-587a-a816-be5685e97e75" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
["0.1.0"] | ||
git-tree-sha1 = "7bbdd841302ae0708824fa57d77a3e4780097531" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
["0"] | ||
UpDep = "000eeb74-f857-587a-a816-be5685e97e75" | ||
["1"] | ||
DownDep = "000eeb74-f857-587a-a816-be5685e97e75" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
["1.1.1"] | ||
git-tree-sha1 = "7bbdd841302ae0708824fa57d77a3e4780097531" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
["0-0.1"] | ||
DownDep = "000eeb74-f857-587a-a816-be5685e97e75" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
["0.1.0"] | ||
git-tree-sha1 = "7bbdd841302ae0708824fa57d77a3e4780097531" | ||
|
||
["0.2.0"] | ||
git-tree-sha1 = "36895c2e78b43dea83b9fdba6655886c107cdc98" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Creating test cases | ||
When adding test cases please create another test case in any existing registry. | ||
Include `Deps.toml` and `Versions.toml` files to specify when a package has been dependent | ||
on another. | ||
|
||
|
||
## Overview of Cases | ||
|
||
### Case1 | ||
Single patch pre-1.0 release that has always been dependent on `DownDep`. | ||
|
||
### Case2 | ||
Single minor pre-1.0 release that has always been dependent on `DownDep`. | ||
|
||
### Case3 | ||
Single post-1.0 release that is dependent on `DownDep`. | ||
|
||
### Case4 | ||
Two releases where `DownDep` was previously a depdenency and no longer is. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f70f26c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
f70f26c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
f70f26c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
f70f26c
There was a problem hiding this comment.
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/33925
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: