-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added check for is_closing to protocol.pyx so _on_connection_lost is called exactly once * Removed IDLE state. Now connection starts from DISCONNECTED state * Simplified disconnect and reconnect process. * Added Lock for disonnect() process * Added `is_fully_connected` property proxy to Protocol's one * Added ContextManager protocol for Connection class * Fixed reconnect issues (closes #11)
- Loading branch information
1 parent
b4c2118
commit 64707c0
Showing
14 changed files
with
547 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -x | ||
|
||
|
||
if [[ -z "${TRAVIS_TAG}" || "${BUILD}" != *wheels* ]]; then | ||
# Not a release | ||
exit 0 | ||
fi | ||
|
||
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then | ||
PYENV_ROOT="$HOME/.pyenv" | ||
PATH="$PYENV_ROOT/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
fi | ||
|
||
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then | ||
for pyver in ${RELEASE_PYTHON_VERSIONS}; do | ||
ML_PYTHON_VERSION=$(python3 -c \ | ||
"print('cp{maj}{min}-cp{maj}{min}m'.format( \ | ||
maj='${pyver}'.split('.')[0], \ | ||
min='${pyver}'.split('.')[1]))") | ||
|
||
for arch in x86_64 i686; do | ||
ML_IMAGE="quay.io/pypa/manylinux1_${arch}" | ||
docker pull "${ML_IMAGE}" | ||
docker run --rm \ | ||
-v "${_root}":/io \ | ||
-e "PYMODULE=${PYMODULE}" \ | ||
-e "PYTHON_VERSION=${ML_PYTHON_VERSION}" \ | ||
-e "ASYNCPG_VERSION=${PACKAGE_VERSION}" \ | ||
"${ML_IMAGE}" /io/.ci/build-manylinux-wheels.sh | ||
|
||
_upload_wheels | ||
done | ||
done | ||
|
||
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then | ||
make clean | ||
python setup.py bdist_wheel | ||
|
||
pip install ${PYMODULE}[test] -f "file:///${_root}/dist" | ||
make -C "${_root}" ASYNCPG_VERSION="${PACKAGE_VERSION}" testinstalled | ||
|
||
_upload_wheels | ||
|
||
else | ||
echo "Cannot build on ${TRAVIS_OS_NAME}." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .connection import Connection, connect | ||
from .iproto.protocol import Iterator, Response | ||
|
||
__version__ = '0.1.13' | ||
__version__ = '0.2.0' |
Oops, something went wrong.