bastianwenske/python-wekan

Migrate off the deprecated `setup.py`

C0rn3j opened this issue · 1 comments

/usr/lib/python3.12/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 or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()

The error in OP was actually on me for running setup.py directly when packaging it in AUR (now using build+install), but migrating to pyproject.toml is still a good idea.

Random (more complex) project as an example -

https://github.com/C0rn3j/sc-controller/blob/python3/pyproject.toml