Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.
https://pypi.python.org/pypi/SpeechRecognition/
BSD 3-Clause "New" or "Revised" License
8.45k stars 2.4k forks source link

SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated #772

Closed ftnext closed 1 week ago

ftnext commented 1 month ago

Steps to reproduce

  1. python -m build . (Python 3.12.1, build 1.2.2.post1)
  2. Build succeed but raise a warning in build log

Expected behaviour

No warning

Actual behaviour

        ********************************************************************************
        With Python 2.7 end-of-life, support for building universal wheels
        (i.e., wheels that support both Python 2 and Python 3)
        is being obviated.
        Please discontinue using this option, or if you still need it,
        file an issue with pypa/setuptools describing your use case.

        By 2025-Aug-30, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.
        ********************************************************************************

Where to fix: https://github.com/Uberi/speech_recognition/blob/b0c91ae62d3f64519f7252a082b7e83cdbf8fb2b/setup.cfg#L1-L4

ftnext commented 1 week ago

ref: https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels

If your project contains no C extensions and is expected to work on both Python 2 and 3, you will want to tell wheel to produce universal wheels by adding this to your setup.cfg file:

-> Let's remove (konmari✨)