Skip to content

[FR] Suggestion for 2 phase deprecation system from community #4915

@abravalheri

Description

@abravalheri

If you have been using python -m build to build your package you might have seen something like this before.

... and if you have automated your builds with CI/CD, then the deprecation warnings got lost in noise and CI logs that nobody reads.

#4892 and #4910 are a clear indication that setuptool's current deprecation system and policy is not working for the community. Even your own CI detected a problem with this deprecation. You disabled the failing test in #4909 instead of reconsidering the root cause for the failing test.

I suggest that you adopt a multi-phase deprecation system. In the first phase you issue a warning and document the deprecation. In the second phase you turn the deprecation warning into an error, but have a setting (environment variable) that turns the exception back into a warning. The setting is bound to a version number, e.g. SETUPTOOLS_DEPRECATIONS=77.0.0.

Originally posted by @tiran in #4911 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions