Skip to content

Commit

Permalink
add possibility of warning suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed May 16, 2024
1 parent de52321 commit e516c4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CellListMap"
uuid = "69e1c6dd-3888-40e6-b3c8-31ac5f578864"
authors = ["Leandro Martinez <lmartine@unicamp.br> and contributors"]
version = "0.8.31"
version = "0.8.32"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Expand Down
7 changes: 6 additions & 1 deletion src/ParticleSystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,11 @@ end
export PeriodicSystems
module PeriodicSystems
function __init__()
if haskey(ENV, "CELLLISTMAP_8.3_WARNING")
if ENV["CELLLISTMAP_8.3_WARNING"] == "false"
return
end
end
@warn begin """\n
Interface changes in v0.8.30, for `PeriodicSystems` submodule of CellListMap.
Expand All @@ -1072,7 +1077,7 @@ module PeriodicSystems
The new `ParticleSystem` interface supports non-periodic systems, by
not setting the `unitcell` field in the system (or set `unitcell = nothing`).
Suppress this warning by setting: ENV["CELLLISTMAP_8.3_WARNING"] = "false"
""" end _file=nothing _line=nothing
end
Expand Down

2 comments on commit e516c4d

@lmiq
Copy link
Member Author

@lmiq lmiq commented on e516c4d May 16, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator register

Release notes:

  • allow warning suppression

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

Tagging

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

Please sign in to comment.