summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2023-03-06 20:33:44 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2023-03-07 21:06:26 +0000
commit813b2d03a7073b632e9e63169e0b6ab99c0c156f (patch)
tree0939aa70b1d0472113802407e9c423e27f573bf0
parent79f66877d3712ecb1de1bbe3fd926e1a0db09624 (diff)
downloadpython-setuptools-git-813b2d03a7073b632e9e63169e0b6ab99c0c156f.tar.gz
Use new warnings in setuptools/command/dist_info.py
-rw-r--r--setuptools/command/dist_info.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py
index 64aec5c0..69d331fb 100644
--- a/setuptools/command/dist_info.py
+++ b/setuptools/command/dist_info.py
@@ -6,7 +6,6 @@ As defined in the wheel specification
import os
import shutil
import sys
-import warnings
from contextlib import contextmanager
from distutils import log
from distutils.core import Command
@@ -51,7 +50,9 @@ class dist_info(Command):
def finalize_options(self):
if self.egg_base:
msg = "--egg-base is deprecated for dist_info command. Use --output-dir."
- warnings.warn(msg, SetuptoolsDeprecationWarning)
+ SetuptoolsDeprecationWarning.emit(msg, due_date=(2023, 8, 23))
+ # This command is internal to setuptools, therefore it should be safe
+ # to remove the deprecated support soon.
self.output_dir = self.egg_base or self.output_dir
dist = self.distribution