Skip to content

Commit b225a22

Browse files
committed
publish wheels
Signed-off-by: David Hotham <[email protected]>
1 parent f8d497a commit b225a22

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

projects/control-service/cicd/.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@ control_service_publish_api_client:
271271
stage: publish_artifacts
272272
script:
273273
- apk add --no-cache py-pip openjdk17-jdk git
274-
- pip install -U pip setuptools wheel twine
274+
- pip install -U pip build twine
275275
- ./projects/control-service/projects/gradlew -p ./projects/control-service/projects/model buildPython
276276
- cd projects/control-service/projects/model/apidefs/datajob-api/build
277277
- rm -rf dist/ && cd ./python
278-
- python setup.py sdist --formats=gztar
279-
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
278+
- python -m build
279+
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
280280
retry: !reference [.control_service_retry, retry_options]
281281
rules:
282282
- if: '$CI_PIPELINE_SOURCE == "schedule"'

projects/control-service/projects/model/apidefs/datajob-api/publish-python.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ cd build/python
99
python3.7 -m venv venv
1010
source venv/bin/activate
1111

12-
pip install -U pip setuptools wheel twine
12+
pip install -U pip build twine
1313
pip install -r requirements.txt
1414

1515
rm -rf dist/
16-
python setup.py sdist --formats=gztar
17-
twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz
16+
python -m build
17+
twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*

projects/vdk-control-cli/.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ vdk-control-cli-release:
7272
- echo "GIT_BRANCH='$CI_COMMIT_REF_NAME'" >> $build_info_file
7373
- echo "GITLAB_CI_JOB_ID='$CI_JOB_ID'" >> $build_info_file
7474
- echo "BUILD_DATE='$(date -u)'" >> $build_info_file
75-
- pip install -U pip setuptools wheel twine
76-
- python setup.py sdist --formats=gztar
77-
- twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
75+
- pip install -U pip build twine
76+
- python -m build
77+
- twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
7878
rules:
7979
- if: '$CI_PIPELINE_SOURCE == "schedule"'
8080
when: never

projects/vdk-core/cicd/release-vdk-core.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ else
2424
echo "GIT_BRANCH='$CI_COMMIT_REF_NAME'" >> $build_info_file
2525
fi
2626

27-
pip install -U pip setuptools wheel twine
28-
python setup.py sdist --formats=gztar
27+
pip install -U pip build twine
28+
python -m build
2929
# provide credentials as Gitlab variables
30-
twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
30+
twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose

projects/vdk-heartbeat/.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ vdk-heartbeat-release:
5555
stage: release
5656
script:
5757
- echo "$(cat version.txt | grep -o '[0-9]\.[0-9]').$CI_PIPELINE_ID" > version.txt
58-
- pip install -U pip setuptools wheel twine
59-
- python setup.py sdist --formats=gztar
60-
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
58+
- pip install -U pip build twine
59+
- python -m build
60+
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
6161
rules:
6262
- if: '$CI_PIPELINE_SOURCE == "schedule"'
6363
when: never

projects/vdk-plugins/.plugin-common.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
- echo "Release plugin $PLUGIN_NAME"
6464
- cd $PLUGIN_NAME/ || exit 1
6565
- sed -ri "s/__version__ = \"([[:digit:]]\.[[:digit:]]\.).*\"$/__version__ = \"\1${VDK_PATCH_VERSION}\"/g" setup.py
66-
- pip install -U pip setuptools wheel twine
67-
- python setup.py sdist --formats=gztar
66+
- pip install -U pip build twine
67+
- python -m build
6868
# provide the credentials as Gitlab variables
69-
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
69+
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
7070
retry: !reference [.retry, retry_options]
7171
rules:
7272
- if: '$CI_PIPELINE_SOURCE == "schedule"'

projects/vdk-plugins/airflow-provider-vdk/.airflow-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ release-airflow-provider-vdk:
4141
- echo "Releasing airflow-provider-vdk..."
4242
- cd airflow-provider-vdk/ || exit 1
4343
- sed -ri "s/__version__ = \"([[:digit:]]\.[[:digit:]]\.).*\"$/__version__ = \"\1${VDK_PATCH_VERSION}\"/g" setup.py
44-
- pip install -U pip setuptools wheel twine
45-
- python setup.py sdist --formats=gztar
44+
- pip install -U pip build twine
45+
- python -m build
4646
# provide the credentials as Gitlab variables
47-
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
47+
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
4848
retry: !reference [.retry, retry_options]
4949
rules:
5050
- if: '$CI_PIPELINE_SOURCE == "schedule"'

0 commit comments

Comments
 (0)