Skip to content

Setuptools warnings in output when running tox #792

@ericwb

Description

@ericwb

Describe the bug

When running tox -e py39, you will see the following:

/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead
  warnings.warn(
/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'home-page' will not be supported in future versions. Please use the underscore name 'home_page' instead
  warnings.warn(
/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead
  warnings.warn(
/Users/browne/workspace/bandit/.tox/py39/lib/python3.9/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'home-page' will not be supported in future versions. Please use the underscore name 'home_page' instead
  warnings.warn(

Reproduction steps

1. tox -e py39
2. Notice the beginning of the output to include several warnings
3.
...

Expected behavior

Ideally should be warning free

Bandit version

1.7.2 (Default)

Python version

3.9

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions