Skip to content

setuptools deprecated #647

Open
Open

Description

@davidwagner

We currently use setuptools. setuptools seems to be deprecated, or many aspects or deprecated. When running make install, I get the following warnings (trimmed):

datascience/setup.py:3: 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.

DevelopDeprecationWarning: develop command is deprecated.
!!
        Please avoid running ``setup.py`` and ``develop``.
        Instead, use standards-based tools like pip or uv.

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

        See https://github.com/pypa/setuptools/issues/917 for details.

Activity

  1. davidwagner commented on Aug 22, 2025

    @davidwagner
    MemberAuthor

    Testing with tox now fails as well as a result of this, with this error:

    RuntimeError: Support for the test command was removed in Setuptools 72
    
  2. utsab345 commented on Sep 19, 2025

    @utsab345

    Solution

    The issues with deprecation warnings and test failures were resolved by making the following changes:

    python setup.py develop
    

    with

    pip install -e .
    

    and updating all the pyhon test

    python setup.py test
    

    with

    pytest
    

    Added the following new dependencies to avoid deprecation warnings and ensure all tests pass:

    
    pytest
    
    bokeh>=3.0.0
    
    bokeh_sampledata
    

    After applying these updates, the deprecation warnings were resolved, and all tests passed successfully:

    Image
  3. rishi29-cloud commented on Oct 25, 2026

    @rishi29-cloud

    PR for this issue:#686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions