Skip to content

[python] Migrate PyPaimon packaging to pyproject.toml#8053

Draft
aisk wants to merge 7 commits into
apache:masterfrom
aisk:migrate-pypaimon-pyproject
Draft

[python] Migrate PyPaimon packaging to pyproject.toml#8053
aisk wants to merge 7 commits into
apache:masterfrom
aisk:migrate-pypaimon-pyproject

Conversation

@aisk
Copy link
Copy Markdown
Contributor

@aisk aisk commented May 31, 2026

Purpose

Migrate PyPaimon packaging metadata from setup.py and requirements files to pyproject.toml.

This PR keeps setuptools as the build backend, raises the minimum Python version to 3.7, and moves development dependencies into the dev dependency group.

Closes #8049.

Changes

  • Add paimon-python/pyproject.toml with project metadata, runtime dependencies, optional dependencies, scripts, package discovery, and the dev dependency group.
  • Remove setup.py, dev/requirements.txt, and dev/requirements-dev.txt.
  • Update PyPaimon README and docs to use python3 -m build --sdist.
  • Update MANIFEST.in now that requirements files are removed.

Tests

  • python3 -c "import tomllib; tomllib.load(open('pyproject.toml','rb')); print('ok')"
  • UV_CACHE_DIR=/tmp/uv-cache uv build --sdist

@aisk aisk marked this pull request as ready for review May 31, 2026 16:18
@aisk
Copy link
Copy Markdown
Contributor Author

aisk commented Jun 2, 2026

I found that there are some test cases failed on Python3.7, which are better to fix in another PR. I'll mark this as draft and will continue the work if the CI cased fixed.

@aisk aisk marked this pull request as draft June 2, 2026 13:47
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.

[Feature] Migrate PyPaimon packaging to pyproject.toml

1 participant