Skip to content

SetuptoolsDeprecationWarning: Installing 'supervisor.scripts' as data is deprecated, please list it in packages #1560

Open
@sbraz

Description

@sbraz

Hi,
There are multiple warnings with recent setuptools versions:

/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'supervisor.scripts' as data is deprecated, please list it in `packages`.                       
    !!                                                                                                                                                                                                             
                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
    ############################                                                                                                                                                                                   
    # Package would be ignored #                                                                                                                                                                                   
    ############################                                                                                                                                                                                   
    Python recognizes 'supervisor.scripts' as an importable package,                                                                                                                                               
    but it is not listed in the `packages` configuration of setuptools.                                                                                                                                            
                                                                                                                                                                                                                   
    'supervisor.scripts' has been automatically added to the distribution only                                                                                                                                     
    because it may contain data files, but this behavior is likely to change                                                                                                                                       
    in future versions of setuptools (and therefore is considered deprecated).                                                                                                                                     
                                                                                                                                                                                                                   
    Please make sure that 'supervisor.scripts' is included as a package by using                                                                                                                                   
    the `packages` configuration field or the proper discovery methods                                                                                                                                             
    (for example by using `find_namespace_packages(...)`/`find_namespace:`                                                                                                                                         
    instead of `find_packages(...)`/`find:`).                                                                                                                                                                      
                                                                                                                                                                                                                   
    You can read more about "package discovery" and "data files" on setuptools                                                                                                                                     
    documentation page.                                                                                                                                                                                            
                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
!!

All these have the same issue:

Installing 'supervisor.scripts' as data is deprecated, please list it in `packages`.                      
Installing 'supervisor.skel' as data is deprecated, please list it in `packages`.                         
Installing 'supervisor.tests.fixtures' as data is deprecated, please list it in `packages`.               
Installing 'supervisor.tests.fixtures.example' as data is deprecated, please list it in `packages`.       
Installing 'supervisor.ui' as data is deprecated, please list it in `packages`.                           
Installing 'supervisor.ui.images' as data is deprecated, please list it in `packages`.                    
Installing 'supervisor.ui.stylesheets' as data is deprecated, please list it in `packages`.               

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions