Skip to content

Commit

Permalink
maint: base __init__ file raises warning on pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
giganano committed Oct 25, 2021
1 parent 0307e21 commit cefc2d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@
__version__ = str(version)
if not version.isreleased:
warnings.warn("Using un-released version of VICE", UserWarning)
else:
prerelease = False
for item in [version.dev, version.alpha, version.beta,
version.rc]:
prerelease |= item is not None
if prerelease: break
if prerelease: warnings.warn("Using a pre-release of VICE",
UserWarning)
from .milkyway import milkyway
from . import milkyway
from .core import *
Expand Down

0 comments on commit cefc2d6

Please sign in to comment.