Skip to content

Fix setuptools deprecation warnings#6265

Closed
mgorny wants to merge 1 commit into
psf:mainfrom
mgorny:setuptools-depr
Closed

Fix setuptools deprecation warnings#6265
mgorny wants to merge 1 commit into
psf:mainfrom
mgorny:setuptools-depr

Conversation

@mgorny
Copy link
Copy Markdown
Contributor

@mgorny mgorny commented Oct 23, 2022

Update keys used in setup.cfg in order to fix the following setuptools deprecation warnings:

The license_file parameter is deprecated, use license_files instead.

Usage of dash-separated 'provides-extra' will not be supported
in future versions. Please use the underscore name 'provides_extra'
instead

Usage of dash-separated 'requires-dist' will not be supported
in future versions. Please use the underscore name 'requires_dist'
instead

Update keys used in `setup.cfg` in order to fix the following setuptools
deprecation warnings:

> The license_file parameter is deprecated, use license_files instead.

> Usage of dash-separated 'provides-extra' will not be supported
> in future versions. Please use the underscore name 'provides_extra'
> instead

> Usage of dash-separated 'requires-dist' will not be supported
> in future versions. Please use the underscore name 'requires_dist'
> instead
@JeremyDega
Copy link
Copy Markdown

Thanks for the efforts, but I have updated as you instructed but still getting this error:

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'provides-extra' will not be supported in future versions. Please use the underscore name 'provides_extra' instead
warnings.warn(
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'requires-dist' will not be supported in future versions. Please use the underscore name 'requires_dist' instead
warnings.warn(
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied

@SpecLad
Copy link
Copy Markdown

SpecLad commented Feb 24, 2026

Looks like this has been obsoleted by #7012.

@nateprewitt
Copy link
Copy Markdown
Member

Resolving since the setup.cfg is no longer relevant.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants