Skip to content

Commit d038ed1

Browse files
committed
Updated build scripts
1 parent d2066c5 commit d038ed1

File tree

6 files changed

+30
-7
lines changed

6 files changed

+30
-7
lines changed

HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Release History
44
===============
55

6-
0.1.0rc2 (unreleased)
6+
0.1.0rc2 (2018-07-02)
77
+++++++++++++++++++++
88

99
- **Breaking change** Submodule `async` has been renamed to the internal `_async`.

build_many_linux_32bit.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export OPENSSL_ROOT_DIR="/opt/pyca/cryptography/openssl"
1414
/opt/python/cp34-cp34m/bin/python -m pip install cython==0.27.3 wheel
1515
/opt/python/cp35-cp35m/bin/python -m pip install cython==0.27.3 wheel
1616
/opt/python/cp36-cp36m/bin/python -m pip install cython==0.27.3 wheel
17+
/opt/python/cp37-cp37m/bin/python -m pip install cython==0.27.3 wheel
1718

1819
# Build the wheels
1920
pushd /data
@@ -25,3 +26,6 @@ auditwheel repair dist/uamqp-${UAMQP_VERSION}-cp35-cp35m-linux_i686.whl
2526

2627
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
2728
auditwheel repair dist/uamqp-${UAMQP_VERSION}-cp36-cp36m-linux_i686.whl
29+
30+
/opt/python/cp37-cp37m/bin/python setup.py bdist_wheel
31+
auditwheel repair dist/uamqp-${UAMQP_VERSION}-cp37-cp37m-linux_i686.whl

build_many_linux_64bit.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export OPENSSL_ROOT_DIR="/opt/pyca/cryptography/openssl"
1414
/opt/python/cp34-cp34m/bin/python -m pip install cython==0.27.3 wheel
1515
/opt/python/cp35-cp35m/bin/python -m pip install cython==0.27.3 wheel
1616
/opt/python/cp36-cp36m/bin/python -m pip install cython==0.27.3 wheel
17+
/opt/python/cp37-cp37m/bin/python -m pip install cython==0.27.3 wheel
1718

1819
# Build the wheels
1920
pushd /data
@@ -25,3 +26,6 @@ auditwheel repair dist/uamqp-${UAMQP_VERSION}-cp35-cp35m-linux_x86_64.whl
2526

2627
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
2728
auditwheel repair dist/uamqp-${UAMQP_VERSION}-cp36-cp36m-linux_x86_64.whl
29+
30+
/opt/python/cp37-cp37m/bin/python setup.py bdist_wheel
31+
auditwheel repair dist/uamqp-${UAMQP_VERSION}-cp37-cp37m-linux_x86_64.whl

build_osx.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ export CFLAGS="-I/tmp/openssl/include"
1313
python3.4 setup.py bdist_wheel
1414
python3.5 setup.py bdist_wheel
1515
python3.6 setup.py bdist_wheel
16+
python3.7 setup.py bdist_wheel

samples/test_azure_event_hubs_receive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def test_event_hubs_iter_receive_sync(live_eventhub_config):
145145
log.info(message.annotations.get(b'x-opt-sequence-number'))
146146
log.info(str(message))
147147
count += 1
148-
if count >= 100000:
149-
log.info("Got {} messages. Shutting down.".format(count))
148+
if count >= 10:
149+
log.info("Got {} messages. Breaking.".format(count))
150150
message.accept()
151151
break
152152
count = 0

samples/test_azure_event_hubs_receive_async.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,24 @@ async def test_event_hubs_iter_receive_async(live_eventhub_config):
8080
live_eventhub_config['consumer_group'],
8181
live_eventhub_config['partition'])
8282

83-
receive_client = uamqp.ReceiveClientAsync(source, debug=False, auth=sas_auth, timeout=10, prefetch=10)
84-
async for message in receive_client.receive_messages_iter_async():
85-
annotations = message.annotations
86-
log.info("Sequence Number: {}".format(annotations.get(b'x-opt-sequence-number')))
83+
receive_client = uamqp.ReceiveClientAsync(source, debug=False, auth=sas_auth, timeout=1000, prefetch=10)
84+
count = 0
85+
message_generator = receive_client.receive_messages_iter_async()
86+
async for message in message_generator:
87+
log.info("No. {} : {}".format(message.annotations.get(b'x-opt-sequence-number'), message))
88+
count += 1
89+
if count >= 10:
90+
log.info("Got {} messages. Breaking.".format(count))
91+
message.accept()
92+
break
93+
count = 0
94+
async for message in message_generator:
95+
count += 1
96+
if count >= 10:
97+
log.info("Got {} more messages. Shutting down.".format(count))
98+
message.accept()
99+
break
100+
await receive_client.close_async()
87101

88102

89103
@pytest.mark.asyncio

0 commit comments

Comments
 (0)