File tree Expand file tree Collapse file tree 5 files changed +33
-2
lines changed Expand file tree Collapse file tree 5 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,20 @@ parameters:
9
9
cache-version :
10
10
type : string
11
11
default : v3
12
+
13
+ executors :
14
+ macos :
15
+ macos :
16
+ xcode : 14.0.0
17
+ resource_class : medium
18
+
12
19
jobs :
13
20
pip-install-test :
14
- executor : python/default
21
+ parameters :
22
+ executor :
23
+ type : executor
24
+ default : python/default
25
+ executor : << parameters.executor >>
15
26
steps :
16
27
- checkout
17
28
- python/install-packages :
@@ -115,6 +126,10 @@ workflows:
115
126
test-deploy :
116
127
jobs :
117
128
# Make sure to include "filters: *filters" in every test job you want to run as part of your deployment.
129
+ - pip-install-test :
130
+ name : " pip-install-macos"
131
+ filters : *filters
132
+ executor : macos
118
133
- pip-install-test :
119
134
filters : *filters
120
135
- pip-install-test-args :
@@ -242,6 +257,7 @@ workflows:
242
257
requires :
243
258
- orb-tools/pack
244
259
- pip-install-test
260
+ - pip-install-macos
245
261
- pip-install-test-args
246
262
- pipenv-test
247
263
- poetry-test
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ parameters:
6
6
default : " ."
7
7
description : Path to the directory containing your python project. Not needed if 'setup.py' lives in root project dir
8
8
steps :
9
+ - run :
10
+ name : Alias Python
11
+ command : <<include(scripts/alias-python.sh)>>
9
12
- run :
10
13
name : Install wheel
11
14
command : pip install wheel
Original file line number Diff line number Diff line change 73
73
- run :
74
74
name : " Export automatic environment detection script"
75
75
command : << include(scripts/export-detect-env.sh) >>
76
+ - run :
77
+ name : Alias Python
78
+ command : <<include(scripts/alias-python.sh)>>
76
79
# restore caches
77
80
- when :
78
81
condition :
Original file line number Diff line number Diff line change
1
+ if [ ! " ${BASH_ENV_PYTHON_ALIASED} " ]; then
2
+ echo ' if [ ! $(command -v python) ]; then
3
+ shopt -s expand_aliases
4
+ alias python=python3
5
+ alias pip=pip3
6
+ fi
7
+
8
+ BASH_ENV_PYTHON_ALIASED=true' >> " $BASH_ENV "
9
+ fi
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ if [ ! -f "${LOCKFILE_PATH}" ]; then
22
22
if [ -z " ${LOCK_FILE} " ]; then
23
23
echo " WARNING: Could not determine lockfile path for ${DETECT_PKG_MNGR:- PARAM_PKG_MNGR} "
24
24
else
25
- FULL_LOCK_FILE=$( readlink -f -v " ${LOCK_FILE} " )
25
+ FULL_LOCK_FILE=$( readlink -f " ${LOCK_FILE} " )
26
26
27
27
if [ -f " ${LOCK_FILE} " ]; then
28
28
echo " INFO: Copying ${FULL_LOCK_FILE} to ${LOCKFILE_PATH} "
You can’t perform that action at this time.
0 commit comments