Skip to content

Commit

Permalink
ignore standard lib
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodaigh committed Sep 1, 2020
1 parent 856a1af commit a5e4020
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PkgVersionHelper"
uuid = "a83a3aaf-d014-45d2-af27-d8a782db1bf5"
authors = ["ZJ <[email protected]> and contributors"]
version = "0.1.0"
version = "0.1.1"

[deps]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This will check through the direct dependencies (i.e. those packages in your Pro
PkgName => (installed_version, latest_version)
```

For example, this was the output for one of my pacakges
For example, this was the output for one of my packages

```
julia> upcheck()
Expand Down
7 changes: 6 additions & 1 deletion src/PkgVersionHelper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ Checks which package is not up to date. It wil return a
function upcheck()
deps = Pkg.dependencies()
installs = Dict{String, Tuple{VersionNumber, VersionNumber}}()
for (_, dep) in deps
for (uuid, dep) in deps
# is it direct dependency?
dep.is_direct_dep || continue

# is it a standard library
Pkg.Types.is_stdlib(uuid) && continue

try
if max_ver(dep.name) <= dep.version
continue
Expand Down

2 comments on commit a5e4020

@xiaodaigh
Copy link
Owner 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/20613

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.1.1 -m "<description of version>" a5e402086f23a5efda13a28d0af6cbbfe775eaed
git push origin v0.1.1

Please sign in to comment.