From fd5e79bd803a287aa6f7074333029347bcceef1d Mon Sep 17 00:00:00 2001 From: Jiajie Zhong Date: Sat, 19 Mar 2022 22:07:24 +0800 Subject: [PATCH] [python] Separate py from main dist and auto add gpg sign (#8999) * Add new profile `python` to separate build python package from `release`. Now someone who does not interested in python api could build package without python environment * Add auto gpg asc sign when run `mvn instal -Ppython` * Add property to skip gpg sign `python.sign.skip` * Set `python.sign.skip=false` sign python dist by default Co-authored-by: kezhenxu94 --- dolphinscheduler-dist/pom.xml | 17 +++++++++++++ dolphinscheduler-python/pom.xml | 42 +++++++++++++++++++++++++++++---- pom.xml | 2 ++ 3 files changed, 57 insertions(+), 4 deletions(-) diff --git a/dolphinscheduler-dist/pom.xml b/dolphinscheduler-dist/pom.xml index 0a8eee1a31..34455743a0 100644 --- a/dolphinscheduler-dist/pom.xml +++ b/dolphinscheduler-dist/pom.xml @@ -70,6 +70,9 @@ release + + false + @@ -104,6 +107,20 @@ + + + + + + + + python + + + + maven-assembly-plugin + + python package diff --git a/dolphinscheduler-python/pom.xml b/dolphinscheduler-python/pom.xml index 72d18525ec..00aaaf8f38 100644 --- a/dolphinscheduler-python/pom.xml +++ b/dolphinscheduler-python/pom.xml @@ -105,7 +105,7 @@ - release + python @@ -119,7 +119,7 @@ exec - python3 + python ${project.basedir}/pydolphinscheduler -m @@ -138,7 +138,7 @@ exec - python3 + python ${project.basedir}/pydolphinscheduler setup.py @@ -153,7 +153,7 @@ exec - python3 + python ${project.basedir}/pydolphinscheduler -m @@ -161,6 +161,40 @@ + + sign-source + prepare-package + + exec + + + ${python.sign.skip} + bash + ${project.basedir}/pydolphinscheduler + + -c + + gpg --armor --sign dist/*.tar.gz + + + + + sign-wheel + prepare-package + + exec + + + ${python.sign.skip} + bash + ${project.basedir}/pydolphinscheduler + + -c + + gpg --armor --sign dist/*.whl + + + diff --git a/pom.xml b/pom.xml index d78fef9456..f02898d8f9 100644 --- a/pom.xml +++ b/pom.xml @@ -138,6 +138,8 @@ ${project.version} true true + + true