ronaldoussoren / pyobjc

The Python <-> Objective-C Bridge with bindings for macOS frameworks
https://pyobjc.readthedocs.io
563 stars 47 forks source link

Warning about setup tools deprecation #621

Closed ronaldoussoren closed 3 weeks ago

ronaldoussoren commented 2 months ago
/Users/ronald/Projects/pyobjc/pyobjc-core/setup.py:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import add_activation_listener, normalize_path, require, working_set
/Users/ronald/Projects/pyobjc/pyobjc-core/setup.py:216: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

        ********************************************************************************
        Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

        By 2024-Nov-15, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.
        ********************************************************************************

!!
  class oc_test(test.test):
/Users/ronald/Projects/pyobjc/pyobjc-core/setup.py:218: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

        ********************************************************************************
        Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

        By 2024-Nov-15, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.
        ********************************************************************************

!!
  user_options = test.test.user_options + [

The easiest fix is likely to drop a dependency on the test command, the test command in PyObjC already overrides most if not all of the setuptools implementation anyway.

ronaldoussoren commented 2 months ago

This needs to be back ported to the stable branch.

See also #497.