Skip to content

setup.py deprecation -- pyproject.toml, license, codecs #151

@jquast

Description

@jquast

I think setup.py can be deprecated now that we've dropped old python versions. We might have needed it for C module builds but we're probably not going to do that, either, so pyproject.toml can be used.

Also take note of the following license classifier warning,

$ python setup.py sdist bdist_wheel --universal
/home/jq/.pyenv/versions/3.13.6/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: MIT License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()

also "codecs" module is used in setup.py, but that was for legacy python versions now unsupported.

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