Skip to content

Commit

Permalink
revert testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Apr 13, 2022
1 parent 2f237bd commit 04432b1
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion AWSIoTPythonSDK/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.4.5"
__version__ = "1.4.9"
2 changes: 1 addition & 1 deletion continuous-delivery/publish_to_test_pypi.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ phases:
- cd aws-iot-device-sdk-python
- export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
- echo "Updating package version to ${PKG_VERSION}"
#- sed --in-place -E "s/__version__ = \".+\"/__version__ = \"${PKG_VERSION}\"/" AWSIoTPythonSDK/__init__.py
- sed --in-place -E "s/__version__ = \".+\"/__version__ = \"${PKG_VERSION}\"/" AWSIoTPythonSDK/__init__.py
build:
commands:
- echo Build started on `date`
2 changes: 1 addition & 1 deletion continuous-delivery/test_test_pypi.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ phases:
- CURRENT_TAG_VERSION=$(git describe --tags | cut -f2 -dv)
# this is here because typing isn't in testpypi, so pull it from prod instead
- python3 -m pip install typing
- python3 continuous-delivery/pip-install-with-retry.py -i https://testpypi.python.org/simple --user AWSIoTPythonSDK-V1==1.4.5
- python3 continuous-delivery/pip-install-with-retry.py -i https://testpypi.python.org/simple --user AWSIoTPythonSDK-V1==$CURRENT_TAG_VERSION
- python3 samples/greengrass/basicDiscovery.py -e ${ENDPOINT} -c /tmp/certificate.pem -k /tmp/privatekey.pem -r /tmp/AmazonRootCA1.pem --print_discover_resp_only

post_build:
10 changes: 5 additions & 5 deletions continuous-delivery/test_version_exists
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ git describe --tags
CURRENT_TAG=$(git describe --tags | cut -f2 -dv)
# convert v0.2.12-2-g50254a9 to 0.2.12
CURRENT_TAG_VERSION=$(git describe --tags | cut -f1 -d'-' | cut -f2 -dv)
# if there's a hash on the tag, then this is not a release tagged commit
# if [ "$CURRENT_TAG" != "$CURRENT_TAG_VERSION" ]; then
# echo "Current tag version is not a release tag, cut a new release if you want to publish."
# exit 1
# fi
if there's a hash on the tag, then this is not a release tagged commit
if [ "$CURRENT_TAG" != "$CURRENT_TAG_VERSION" ]; then
echo "Current tag version is not a release tag, cut a new release if you want to publish."
exit 1
fi
if python3 -m pip install --no-cache-dir -vvv AWSIoTPythonSDK==$CURRENT_TAG_VERSION; then
echo "$CURRENT_TAG_VERSION is already in pypi, cut a new tag if you want to upload another version."

0 comments on commit 04432b1

Please sign in to comment.