PyCQA / flake8-bugbear

A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
MIT License
1.06k stars 104 forks source link

Stop using `python setup.py bdist_wheel/sdist` #390

Closed cooperlees closed 1 year ago

cooperlees commented 1 year ago

Lets move to pypa/build in the upload to PyPI action.

python setup.py bdist_wheel

/opt/hostedtoolcache/Python/3.11.3/x64/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
  config = read_configuration(filepath, True, ignore_option_errors, dist)
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying bugbear.py -> build/lib
/opt/hostedtoolcache/Python/3.11.3/x64/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

installing to build/bdist.linux-x86_64/wheel
running install
        See https://blog.ganssle.io/articles/[20](https://github.com/PyCQA/flake8-bugbear/actions/runs/5179489298/jobs/9332438714#step:5:21)[21](https://github.com/PyCQA/flake8-bugbear/actions/runs/5179489298/jobs/9332438714#step:5:22)/10/setup-py-deprecated.html for details.
running install_lib
        ********************************************************************************

!!