##// END OF EJS Templates
wheel: add a platform level to the wheel directories...
marmoute -
r53134:05addf26 stable
parent child Browse files
Show More
@@ -56,17 +56,17 variables:
56 FLAVOR: ""
56 FLAVOR: ""
57 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
57 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
58 CI_CLEVER_CLOUD_FLAVOR: "XS"
58 CI_CLEVER_CLOUD_FLAVOR: "XS"
59 before_script:
59 script:
60 - PLATFORM=`/opt/python/cp313-cp313/bin/python -c 'import sys; print(sys.platform)'`
60 - echo $WHEEL_TYPE
61 - echo $WHEEL_TYPE
61 - test -n "$WHEEL_TYPE"
62 - test -n "$WHEEL_TYPE"
62 - echo $FLAVOR
63 - echo $FLAVOR
63 - mkdir -p wheels/$WHEEL_TYPE/$BUILD_PY_ID
64 - mkdir -p wheels/$PLATFORM/$WHEEL_TYPE/$BUILD_PY_ID
64 script:
65 - /opt/python/$BUILD_PY_ID/bin/python setup.py bdist_wheel --dist-dir tmp-wheelhouse
65 - /opt/python/$BUILD_PY_ID/bin/python setup.py bdist_wheel --dist-dir tmp-wheelhouse
66 - auditwheel repair tmp-wheelhouse/*.whl -w wheels/$WHEEL_TYPE/$BUILD_PY_ID
66 - auditwheel repair tmp-wheelhouse/*.whl -w wheels/$PLATFORM/$WHEEL_TYPE/$BUILD_PY_ID
67 artifacts:
67 artifacts:
68 paths:
68 paths:
69 - wheels/$WHEEL_TYPE/$BUILD_PY_ID
69 - wheels/
70 expire_in: 1 week
70 expire_in: 1 week
71
71
72 build-c-wheel:
72 build-c-wheel:
@@ -111,13 +111,15 build-c-wheel:
111 - PORT_START=`expr 19051 + 1009 '*' $CI_CONCURRENT_ID`
111 - PORT_START=`expr 19051 + 1009 '*' $CI_CONCURRENT_ID`
112 - PORT_ARG="--port $PORT_START"
112 - PORT_ARG="--port $PORT_START"
113 - echo $PORT_ARG
113 - echo $PORT_ARG
114 - PLATFORM=`$PYTHON -c 'import sys; print(sys.platform)'`
115 - echo $PLATFORM
114 - WHEEL_ARG=""
116 - WHEEL_ARG=""
115 - SHARDING_ARGS=""
117 - SHARDING_ARGS=""
116 - if test -n "$WHEEL_TYPE"; then
118 - if test -n "$WHEEL_TYPE"; then
117 PY_TAG=`$PYTHON -c 'import sys; v=sys.version_info; t=f"cp{v.major}{v.minor}"; print(f"{t}-{t}")'`;
119 PY_TAG=`$PYTHON -c 'import sys; v=sys.version_info; t=f"cp{v.major}{v.minor}"; print(f"{t}-{t}")'`;
118 echo "$PY_TAG";
120 echo "$PY_TAG";
119 test -n "PY_TAG";
121 test -n "PY_TAG";
120 WHEEL="`ls -1 $CI_PROJECT_DIR/wheels/$WHEEL_TYPE/$PY_TAG/*.whl`";
122 WHEEL="`ls -1 $CI_PROJECT_DIR/wheels/$PLATFORM/$WHEEL_TYPE/$PY_TAG/*.whl`";
121 test -n "$WHEEL";
123 test -n "$WHEEL";
122 echo installing from $WHEEL;
124 echo installing from $WHEEL;
123 WHEEL_ARG="--hg-wheel $WHEEL";
125 WHEEL_ARG="--hg-wheel $WHEEL";
@@ -429,11 +431,12 build-c-wheel-macos:
429 variables:
431 variables:
430 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
432 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
431 script:
433 script:
434 - PLATFORM=`$PYTHON -c 'import sys; print(sys.platform)'`
432 - rm -rf tmp-wheels
435 - rm -rf tmp-wheels
433 - cibuildwheel --output-dir tmp-wheels/
436 - cibuildwheel --output-dir tmp-wheels/
434 - for py_version in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313; do
437 - for py_version in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313; do
435 mkdir -p wheels/c/$py_version/;
438 mkdir -p wheels/$PLATFORM/c/$py_version/;
436 mv tmp-wheels/*$py_version*.whl wheels/c/$py_version/;
439 mv tmp-wheels/*$py_version*.whl wheels/$PLATFORM/c/$py_version/;
437 done
440 done
438 - rm -rf tmp-wheels
441 - rm -rf tmp-wheels
439 artifacts:
442 artifacts:
General Comments 0
You need to be logged in to leave comments. Login now