Skip to content

Commit

Permalink
Fix #110, add support for py36 (#112)
Browse files Browse the repository at this point in the history
* Fix #110 
* Align with paramiko, dropping support for py26 and py33
* Change CIRCLE_BUILD_IMAGE to ubuntu14.04 and add support for py36
  • Loading branch information
fernandezcuesta committed Feb 2, 2018
1 parent 6353c79 commit 22247c9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
12 changes: 6 additions & 6 deletions circle.yml
@@ -1,10 +1,10 @@
machine:
environment:
TOX_PY26: '2.6.8'
TOX_PY27: '2.7.10'
TOX_PY33: '3.3.3'
TOX_PY34: '3.4.3'
TOX_PY35: '3.5.0'
CIRCLE_BUILD_IMAGE: ubuntu-14.04
TOX_PY27: '2.7.12'
TOX_PY34: '3.4.4'
TOX_PY35: '3.5.3'
TOX_PY36: '3.6.2'

dependencies:
override:
Expand All @@ -14,7 +14,7 @@ dependencies:
- pip install --upgrade tox
- pip install --upgrade tox-pyenv
- pip install coveralls
- pyenv local $TOX_PY35 $TOX_PY34 $TOX_PY33 $TOX_PY27 $TOX_PY26
- pyenv local $TOX_PY36 $TOX_PY35 $TOX_PY34 $TOX_PY27
- pip install --upgrade bashtest
- python setup.py install
- bashtest README*
Expand Down
4 changes: 3 additions & 1 deletion sshtunnel.py
Expand Up @@ -1185,7 +1185,9 @@ def _check_tunnel(self, _srv):
s.settimeout(TUNNEL_TIMEOUT)
try:
# Windows raises WinError 10049 if trying to connect to 0.0.0.0
s.connect(('127.0.0.1', _srv.local_port))
connect_to = ('127.0.0.1', _srv.local_port) \
if _srv.local_host == '0.0.0.0' else _srv.local_address
s.connect(connect_to)
self.tunnel_is_up[_srv.local_address] = _srv.tunnel_ok.get(
timeout=TUNNEL_TIMEOUT * 1.1
)
Expand Down
13 changes: 6 additions & 7 deletions tox.ini
Expand Up @@ -11,17 +11,15 @@
# and also to help confirm pull requests to this project.

[tox]
envlist = syntax, py{26,27,33,34,35}, docs
envlist = syntax, py{27,34,35,36}, docs

[testenv]
basepython =
py26: python2.6
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
py36: python3.6
deps =
py26: unittest2
mock
pytest
pytest-cov
Expand All @@ -43,13 +41,14 @@ basepython = python
skip_install = True
deps =
check-manifest
docutils
flake8
mccabe
{py27,py33,py34}: readme
pygments
readme
commands =
check-manifest --ignore "tox.ini,tests*,*.yml"
# py26 doesn't have "setup.py check"
{py27,py33,py34}: python setup.py check -m -r -s
python setup.py check -m -r -s
flake8 .

[flake8]
Expand Down

0 comments on commit 22247c9

Please sign in to comment.