Skip to content

Commit 6d44091

Browse files
committed
Fix deprecation warning message on Python 2.7
1 parent 9121216 commit 6d44091

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setuptools_git_versioning.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def parse_config(dist, attr, value): # type: (Distribution, Any, Any) -> None
139139
"since setuptools-git-versioning v1.8.0 "
140140
"and will be dropped in v2.0.\n"
141141
"Please rename it to `setuptools_git_versioning`",
142-
category=DeprecationWarning,
142+
category=UserWarning,
143143
)
144144

145145
if getattr(dist, "setuptools_git_versioning", None) is not None:
@@ -159,7 +159,7 @@ def infer_version(dist): # type: (Distribution) -> None
159159
"since setuptools-git-versioning 1.8.0"
160160
"and will be dropped in v2.0.\n"
161161
"Please change value to `{'enabled': False/True}`",
162-
category=DeprecationWarning,
162+
category=UserWarning,
163163
)
164164
value = {"enabled": value}
165165

@@ -319,7 +319,7 @@ def version_from_git(
319319
"since setuptools-git-versioning v1.8.0 "
320320
"and will be dropped in v2.0.\n"
321321
"Please upgrade your Python version to 3.7+",
322-
category=DeprecationWarning,
322+
category=UserWarning,
323323
)
324324

325325
# Check if PKG-INFO file exists and Version is present in it

0 commit comments

Comments
 (0)