diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-03-06 20:06:59 +0000 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-03-07 21:06:25 +0000 |
commit | c14e9d4d76b9921fa480dd6cbb4c23be11e6ce5f (patch) | |
tree | 9e4df6f4d60a27f99505d9c61266984909a9bf15 | |
parent | e7508d1364b0d9e6fc9ec8124bcb97dc1b64efa9 (diff) | |
download | python-setuptools-git-c14e9d4d76b9921fa480dd6cbb4c23be11e6ce5f.tar.gz |
Use new warnings in setuptools/command/bdist_rpm.py
-rw-r--r-- | setuptools/command/bdist_rpm.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/setuptools/command/bdist_rpm.py b/setuptools/command/bdist_rpm.py index 98bf5dea..e9e5c1b6 100644 --- a/setuptools/command/bdist_rpm.py +++ b/setuptools/command/bdist_rpm.py @@ -1,7 +1,6 @@ import distutils.command.bdist_rpm as orig -import warnings -from setuptools import SetuptoolsDeprecationWarning +from ..warnings import SetuptoolsDeprecationWarning class bdist_rpm(orig.bdist_rpm): @@ -14,10 +13,14 @@ class bdist_rpm(orig.bdist_rpm): """ def run(self): - warnings.warn( - "bdist_rpm is deprecated and will be removed in a future " - "version. Use bdist_wheel (wheel packages) instead.", - SetuptoolsDeprecationWarning, + SetuptoolsDeprecationWarning.emit( + "Deprecated command", + """ + bdist_rpm is deprecated and will be removed in a future version. + Use bdist_wheel (wheel packages) instead. + """, + see_url="https://github.com/pypa/setuptools/issues/1988", + due_date=(2023, 10, 22) # Deprecation introduced in 22 Oct 2021. ) # ensure distro name is up-to-date |