Skip to content

[Feature] Migrate PyPaimon packaging to pyproject.toml #8049

@aisk

Description

@aisk

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

PyPaimon still keeps most packaging metadata in setup.py. Moving the static metadata to pyproject.toml would make the packaging configuration easier to maintain, and it also follows the recommended Python packaging standard.

Solution

Use setuptools as the build backend with pyproject.toml.

Although uv is very popular, it is still a third-party tool. Keeping setuptools as the backend gives us more flexibility, and users or developers can still use uv to install PyPaimon.

One thing to decide is the Python version requirement. PyPaimon currently declares python_requires=">=3.6", but Python 3.6 reached EOL on 2021-12-23. If we still need to support Python 3.6, the last compatible setuptools versions have limited pyproject.toml metadata support, so we may only be able to move part of the metadata and keep the rest in setup.py.

I think we can raise the minimum Python version to 3.7 and migrate the packaging metadata to pyproject.toml more cleanly.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions