Skip to content

Commit 7794f69

Browse files
authored
Updated circle ci, travis cfgs. Updated tunnel run method. (#224)
1 parent 3a016cf commit 7794f69

File tree

3 files changed

+54
-53
lines changed

3 files changed

+54
-53
lines changed

.circleci/config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- run:
7171
name: deps
7272
command: |
73-
pip3 install twine
73+
pip3 install -U twine
7474
which twine
7575
- run:
7676
name: Build Wheel
@@ -88,9 +88,6 @@ jobs:
8888
image: ubuntu-1604:201903-01
8989
steps:
9090
- checkout
91-
- run:
92-
name: sdist
93-
command: python setup.py sdist
9491
- python/load-cache:
9592
key: manylinuxdepsv6-{{ .Branch }}.{{ arch }}
9693
dependency-file: requirements.txt
@@ -99,11 +96,14 @@ jobs:
9996
command: |
10097
sudo apt-get install python-pip
10198
pip install -U pip
102-
pip install twine
99+
pip install -U twine
103100
which twine
104101
- python/save-cache:
105102
key: manylinuxdepsv6-{{ .Branch }}.{{ arch }}
106103
dependency-file: requirements.txt
104+
- run:
105+
name: sdist
106+
command: python setup.py sdist
107107
- run:
108108
name: Build Wheels
109109
command: |
@@ -114,6 +114,7 @@ jobs:
114114
- run:
115115
name: PyPi Upload
116116
command: |
117+
ls -lh dist wheelhouse
117118
twine upload --skip-existing -u $PYPI_USER -p $PYPI_PASSWORD dist/* wheelhouse/*
118119
119120
workflows:

.travis.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -43,51 +43,51 @@ jobs:
4343

4444
- stage: test
4545

46-
- &osx-wheels
47-
stage: build packages
48-
if: tag IS present
49-
os: osx
50-
osx_image: xcode11.6
51-
before_install:
52-
- sudo -H pip install twine
53-
- which twine
54-
install: skip
55-
script:
56-
- ./ci/osx-wheel.sh
57-
after_success:
58-
- if [[ ! -z "$TRAVIS_TAG" ]]; then
59-
twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheels/*.whl;
60-
fi
61-
language: generic
62-
python: skip
46+
# - &osx-wheels
47+
# stage: build packages
48+
# if: tag IS present
49+
# os: osx
50+
# osx_image: xcode11.6
51+
# before_install:
52+
# - sudo -H pip install twine
53+
# - which twine
54+
# install: skip
55+
# script:
56+
# - ./ci/osx-wheel.sh
57+
# after_success:
58+
# - if [[ ! -z "$TRAVIS_TAG" ]]; then
59+
# twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheels/*.whl;
60+
# fi
61+
# language: generic
62+
# python: skip
6363

64-
- <<: *osx-wheels
65-
osx_image: xcode11.3
64+
# - <<: *osx-wheels
65+
# osx_image: xcode11.3
6666

67-
- stage: build packages
68-
if: tag IS present
69-
env:
70-
- WHEELS=1
71-
os: linux
72-
python: 3.6
73-
before_install: skip
74-
install:
75-
- pip install twine
76-
script:
77-
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
78-
./ci/travis/build-manylinux.sh;
79-
after_success:
80-
- if [[ ! -z "$TRAVIS_TAG" ]]; then
81-
twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
82-
fi
83-
deploy:
84-
- provider: pypi
85-
user: pkittenis
86-
password:
87-
secure: ZQJ41Nguc7Y5XHvtN8lITIiW1S1jvy0p50rssMUJpa9wVZIh0HcW0K/Xv2v17fDNuOvQlVbsF0sY/BmcRfH7c7nzwt7fRXGOjXbZk5djqwusKXL6zlVN7OKjAY6j2EByOjD9UpDDkB5tDqb4lRBCX87wknii/t+7/8P0ddoBojM=
88-
on:
89-
repo: ParallelSSH/parallel-ssh
90-
tags: true
91-
distributions: sdist
92-
upload_docs: false
93-
cleanup: false
67+
# - stage: build packages
68+
# if: tag IS present
69+
# env:
70+
# - WHEELS=1
71+
# os: linux
72+
# python: 3.6
73+
# before_install: skip
74+
# install:
75+
# - pip install twine
76+
# script:
77+
# - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
78+
# ./ci/travis/build-manylinux.sh;
79+
# after_success:
80+
# - if [[ ! -z "$TRAVIS_TAG" ]]; then
81+
# twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
82+
# fi
83+
# deploy:
84+
# - provider: pypi
85+
# user: pkittenis
86+
# password:
87+
# secure: ZQJ41Nguc7Y5XHvtN8lITIiW1S1jvy0p50rssMUJpa9wVZIh0HcW0K/Xv2v17fDNuOvQlVbsF0sY/BmcRfH7c7nzwt7fRXGOjXbZk5djqwusKXL6zlVN7OKjAY6j2EByOjD9UpDDkB5tDqb4lRBCX87wknii/t+7/8P0ddoBojM=
88+
# on:
89+
# repo: ParallelSSH/parallel-ssh
90+
# tags: true
91+
# distributions: sdist
92+
# upload_docs: false
93+
# cleanup: false

pssh/clients/native/tunnel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ def run(self):
292292
logger.error("Tunnel initilisation failed - %s", ex)
293293
self.exception = ex
294294
return
295-
logger.debug("Hub ID in run function: %s", self._hub.thread_ident)
296-
consume_let = spawn(self._consume_q)
297295
try:
296+
logger.debug("Hub ID in run function: %s", self._hub.thread_ident)
297+
consume_let = spawn(self._consume_q)
298298
consume_let.get()
299299
except Exception as ex:
300300
logger.error("Tunnel thread caught exception and will exit:",

0 commit comments

Comments
 (0)