Skip to content

Build Python with PEP 517 #8731

@EpicWink

Description

@EpicWink

python setup.py is deprecated, and will stop working on 31 October (in 11 days) - see this blog post. This is being used in the Release CI workflow.

This is simply solved by switching to using build:

- pip install setuptools wheel
- python3 setup.py sdist bdist_wheel
+ pip install build
+ python -m build .

There are further deprecations, but these are less time sensitive. These include:

  • specifying files outside of the Python project root directory (the one containing the pyproject.toml/setup.py file), in your case the license file ../LICENSE; due 20 March 2026
  • specifying license classifier; indeterminate expiry
  • building universal wheels; indeterminate removal

In addition, pyproject.toml is the modern standard for declaring Python project metadata and configuration going forward. You may want to look into migrating to that, but it's not time sensitive at all: the standards support this file being missing.

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