File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ phases:
1010 pre_build :
1111 commands :
1212 - pypirc=$(aws secretsmanager get-secret-value --secret-id "prod/aws-crt-python/.pypirc" --query "SecretString" | cut -f2 -d\") && echo "$pypirc" > ~/.pypirc
13+ - export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
1314 build :
1415 commands :
1516 - echo Build started on `date`
1617 - cd aws-iot-device-sdk-python-v2
18+ - sed --in-place -E "s/version='.+'/version='${PKG_VERSION}'/" setup.py
1719 - python3 setup.py sdist bdist_wheel --universal
1820 - python3 -m twine upload -r pypi dist/*
1921 post_build :
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ phases:
1010 pre_build :
1111 commands :
1212 - pypirc=$(aws secretsmanager get-secret-value --secret-id "alpha/aws-crt-python/.pypirc" --query "SecretString" | cut -f2 -d\") && echo "$pypirc" > ~/.pypirc
13+ - export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
1314 build :
1415 commands :
1516 - echo Build started on `date`
1617 - cd aws-iot-device-sdk-python-v2
18+ - sed --in-place -E "s/version='.+'/version='${PKG_VERSION}'/" setup.py
1719 - python3 setup.py sdist bdist_wheel --universal
1820 - python3 -m twine upload -r testpypi dist/*
1921 post_build :
Original file line number Diff line number Diff line change 1717
1818setup (
1919 name = 'awsiotsdk' ,
20- version = '1.0.6 ' ,
20+ version = '1.0.0-dev ' ,
2121 description = 'AWS IoT SDK based on the AWS Common Runtime' ,
2222 author = 'AWS SDK Common Runtime Team' ,
2323 url = 'https://github.com/aws/aws-iot-device-sdk-python-v2' ,
2424 packages = ['awsiot' ],
2525 install_requires = [
26- 'awscrt==0.5.13 ' ,
26+ 'awscrt==0.5.15 ' ,
2727 'futures;python_version<"3.2"' ,
2828 'typing;python_version<"3.5"' ,
2929 ],
You can’t perform that action at this time.
0 commit comments