Skip to content

Commit

Permalink
ADD: Depreciation warnings, update package version (#147)
Browse files Browse the repository at this point in the history
Adds package name depreciation warnings (TPPMs -> PowerModelsDistribution.jl)

Updates to v0.3.2 (final TPPMs version)
  • Loading branch information
pseudocubic authored Jul 1, 2019
1 parent 4b067b8 commit 3ea60ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ThreePhasePowerModels.jl Change Log
===================================

### staged
- none
### v0.3.2
- Final version of ThreePhasePowerModels.jl before name change to PowerModelsDistribution.jl (adds depreciation warnings)

### v0.3.1
- Allow for arbitrarily named sourcebus
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "ThreePhasePowerModels"
uuid = "8503087a-994b-5095-bd6e-f54267f2dd19"
authors = ["David M Fobes <[email protected]>", "Carleton Coffrin"]
repo = "https://github.com/lanl-ansi/ThreePhasePowerModels.jl.git"
version = "0.3.1"
version = "0.3.2"

[deps]
InfrastructureModels = "2030c09a-7f63-5d83-885d-db604e0e9cc0"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ThreePhasePowerModels.jl

## DEPRECIATED :: The ThreePhasePowerModels.jl package name is depreciated, v0.3.2 is the final release version with this name. Going forward, please use PowerModelsDistribution.jl (https://github.com/lanl-ansi/PowerModelsDistribution.jl).

Release:
<!-- [![ThreePhasePowerModels](http://pkg.julialang.org/badges/ThreePhasePowerModels_0.6.svg)](http://pkg.julialang.org/detail/ThreePhasePowerModels) -->
[![docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://lanl-ansi.github.io/ThreePhasePowerModels.jl/stable/)
Expand Down
1 change: 1 addition & 0 deletions src/ThreePhasePowerModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const PMs = PowerModels

function __init__()
global LOGGER = Memento.getlogger(PowerModels)
Memento.warn(LOGGER, "DEPRECIATED :: ThreePhasePowerModels.jl is depreciated, v0.3.2 is the final version with this package name. PowerModelsDistribution.jl (https://github.com/lanl-ansi/PowerModelsDistribution.jl) is the new name of this package going forward.")
end

include("core/ref.jl")
Expand Down

2 comments on commit 3ea60ed

@pseudocubic
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@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/1691

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 Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.2 -m "<description of version>" 3ea60ed55f041f3e7fc10a8bd2932eebfcf643b9
git push origin v0.3.2

Also, note the warning: Version 0.3.2 skips over 0.3.1
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Please sign in to comment.