File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,14 @@ phases:
9
9
- python3 -m pip install --user --upgrade twine setuptools wheel boto3 PyOpenSSL six
10
10
pre_build :
11
11
commands :
12
+ - cd aws-iot-device-sdk-python-v2
12
13
- pypirc=$(aws secretsmanager get-secret-value --secret-id "prod/aws-crt-python/.pypirc" --query "SecretString" | cut -f2 -d\") && echo "$pypirc" > ~/.pypirc
13
14
- export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
15
+ - echo "Updating package version to ${PKG_VERSION}"
16
+ - sed --in-place -E "s/version='.+'/version='${PKG_VERSION}'/" setup.py
14
17
build :
15
18
commands :
16
- - echo Build started on `date`
17
- - cd aws-iot-device-sdk-python-v2
18
- - sed --in-place -E "s/version='.+'/version='${PKG_VERSION}'/" setup.py
19
+ - echo Build started on `date`
19
20
- python3 setup.py sdist bdist_wheel --universal
20
21
- python3 -m twine upload -r pypi dist/*
21
22
post_build :
Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ phases:
10
10
pre_build :
11
11
commands :
12
12
- pypirc=$(aws secretsmanager get-secret-value --secret-id "alpha/aws-crt-python/.pypirc" --query "SecretString" | cut -f2 -d\") && echo "$pypirc" > ~/.pypirc
13
+ - cd aws-iot-device-sdk-python-v2
13
14
- export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
15
+ - echo "Updating package version to ${PKG_VERSION}"
16
+ - sed --in-place -E "s/version='.+'/version='${PKG_VERSION}'/" setup.py
14
17
build :
15
18
commands :
16
- - echo Build started on `date`
17
- - cd aws-iot-device-sdk-python-v2
18
- - sed --in-place -E "s/version='.+'/version='${PKG_VERSION}'/" setup.py
19
+ - echo Build started on `date`
19
20
- python3 setup.py sdist bdist_wheel --universal
20
21
- python3 -m twine upload -r testpypi dist/*
21
22
post_build :
You can’t perform that action at this time.
0 commit comments