Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04432b1

Browse files
committed
revert testing changes
1 parent 2f237bd commit 04432b1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

AWSIoTPythonSDK/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.4.5"
1+
__version__ = "1.4.9"

continuous-delivery/publish_to_test_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ phases:
1414
- cd aws-iot-device-sdk-python
1515
- export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
1616
- echo "Updating package version to ${PKG_VERSION}"
17-
#- sed --in-place -E "s/__version__ = \".+\"/__version__ = \"${PKG_VERSION}\"/" AWSIoTPythonSDK/__init__.py
17+
- sed --in-place -E "s/__version__ = \".+\"/__version__ = \"${PKG_VERSION}\"/" AWSIoTPythonSDK/__init__.py
1818
build:
1919
commands:
2020
- echo Build started on `date`

continuous-delivery/test_test_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ phases:
2121
- CURRENT_TAG_VERSION=$(git describe --tags | cut -f2 -dv)
2222
# this is here because typing isn't in testpypi, so pull it from prod instead
2323
- python3 -m pip install typing
24-
- python3 continuous-delivery/pip-install-with-retry.py -i https://testpypi.python.org/simple --user AWSIoTPythonSDK-V1==1.4.5
24+
- python3 continuous-delivery/pip-install-with-retry.py -i https://testpypi.python.org/simple --user AWSIoTPythonSDK-V1==$CURRENT_TAG_VERSION
2525
- python3 samples/greengrass/basicDiscovery.py -e ${ENDPOINT} -c /tmp/certificate.pem -k /tmp/privatekey.pem -r /tmp/AmazonRootCA1.pem --print_discover_resp_only
2626

2727
post_build:

continuous-delivery/test_version_exists

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

0 commit comments

Comments
 (0)