Skip to content

Commit

Permalink
Merge pull request #211 from pawamoy/remove-semver-warning
Browse files Browse the repository at this point in the history
Stop using deprecated semver.compare function
  • Loading branch information
yajo authored May 20, 2020
2 parents ebdf05b + 18ab2f2 commit 6008380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copier/config/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def verify_minimum_version(version: str) -> None:
# so instead we do a lazy import here
from .. import __version__

if semver.compare(__version__, version) == -1:
if semver.VersionInfo.parse(__version__).compare(version) == -1:
raise UserMessageError(
f"This template requires Copier version >= {version}, "
f"while your version of Copier is {__version__}."
Expand Down

0 comments on commit 6008380

Please sign in to comment.