This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 8eb4e33c89 [release] Exclude tests from PyPaimon packages
8eb4e33c89 is described below

commit 8eb4e33c8989ceb1786f78cc3cd5a1aaef75bad7
Author: JingsongLi <[email protected]>
AuthorDate: Sat Aug 1 21:18:53 2026 +0800

    [release] Exclude tests from PyPaimon packages
---
 .github/workflows/release-python.yml | 10 ++++++++++
 paimon-python/MANIFEST.in            |  1 +
 paimon-python/setup.py               |  5 ++++-
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release-python.yml 
b/.github/workflows/release-python.yml
index 0754737751..7c0cafb2e1 100644
--- a/.github/workflows/release-python.yml
+++ b/.github/workflows/release-python.yml
@@ -117,6 +117,11 @@ jobs:
               sample_data = "pypaimon/sample/data/data.jsonl"
               if prefix + sample_data not in names:
                   raise SystemExit("Missing sample data from sdist")
+              for forbidden in ("pypaimon/tests/", "pypaimon/acceptance/"):
+                  if any(name.startswith(prefix + forbidden) for name in 
names):
+                      raise SystemExit(
+                          "Test content must not be packaged: 
{}".format(forbidden)
+                      )
 
           with zipfile.ZipFile(wheels[0]) as archive:
               names = archive.namelist()
@@ -132,6 +137,11 @@ jobs:
                   raise SystemExit("Wheel is missing LICENSE or NOTICE")
               if "pypaimon/sample/data/data.jsonl" not in names:
                   raise SystemExit("Wheel is missing sample data")
+              for forbidden in ("pypaimon/tests/", "pypaimon/acceptance/"):
+                  if any(name.startswith(forbidden) for name in names):
+                      raise SystemExit(
+                          "Test content must not be packaged: 
{}".format(forbidden)
+                      )
           PY
 
       - name: Upload PyPaimon distributions
diff --git a/paimon-python/MANIFEST.in b/paimon-python/MANIFEST.in
index 0600d5a49b..d644332dce 100644
--- a/paimon-python/MANIFEST.in
+++ b/paimon-python/MANIFEST.in
@@ -22,3 +22,4 @@ include README.md
 recursive-include pypaimon *.py
 recursive-include pypaimon/sample/data *.jsonl
 recursive-exclude pypaimon/tests *
+recursive-exclude pypaimon/acceptance *
diff --git a/paimon-python/setup.py b/paimon-python/setup.py
index ba747f89b2..4b6b76d8ba 100644
--- a/paimon-python/setup.py
+++ b/paimon-python/setup.py
@@ -115,7 +115,10 @@ def _build_dev_package():
 
 atexit.register(_build_dev_package)
 
-PACKAGES = find_packages(include=["pypaimon*"], exclude=["pypaimon.tests*"])
+PACKAGES = find_packages(
+    include=["pypaimon*"],
+    exclude=["pypaimon.tests*", "pypaimon.acceptance*"],
+)
 
 
 def read_requirements():

Reply via email to