https://github.com/xiaodaigh/pkgversionhelper.jl
https://github.com/xiaodaigh/pkgversionhelper.jl
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xiaodaigh/pkgversionhelper.jl
- Owner: xiaodaigh
- License: mit
- Created: 2020-08-29T04:19:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T23:37:02.000Z (almost 4 years ago)
- Last Synced: 2025-02-22T08:53:29.580Z (3 months ago)
- Language: Julia
- Size: 19.5 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PkgVersionHelper
*Do I have the latest dependencies for my packages in the `[compat]` section of `Project.toml`?*
This package can help you check whether you have the most up-to-date package in your `Project.toml`.
### Usage
```
using PkgVersionHelper: upcheckupcheck()
```This will check through the direct dependencies (i.e. those packages in your `Project.toml`) and return a `Dict` like this
```
PkgName => (installed_version, latest_version)
```For example, this was the output for one of my packages
```
julia> upcheck()
Dict{String,Tuple{VersionNumber,VersionNumber}} with 2 entries:
"ScientificTypes" => (v"0.8.1", v"1.0.0")
"MLJBase" => (v"0.14.9", v"0.15.0")
```If you wish to check the _indirect_ dependencies as well. Simply do `upcheck(indirect_deps=true)`.
### Why?
CompatHelper.jl is great but sometimes you are not able to upgrade your packages right away and often you are left wondering "Do I have the latest dependencies?" I am often in such a spot so I've decided to gather [the answers on StackOverflow](https://stackoverflow.com/questions/62667741/julia-is-there-a-way-to-find-the-latest-possible-version-number-of-a-package) and make a simple package.
Thanks to the wonderful @bkamins for helping me with my query.