Skip to content

Commit a0b0967

Browse files
authoredSep 2, 2020
Host config (#215)
* Added HostConfig class and tests. Added parallel client implementation for new host config type and tests. * Added HostConfig documentation * Updated paramiko client for new host config type. * Updated changelog * Added remote channel closing to scp recv/send. * Re-did session init and authentication methods to avoid sharing session in threads. * Moved thread pool to offload handshake for native client. * Updated tunnel del
1 parent 0143982 commit a0b0967

18 files changed

+379
-609
lines changed
 

‎.travis.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ install:
2828
script:
2929
# For testing SSH agent related functionality
3030
- eval `ssh-agent -s`
31-
- pytest --cov-append --cov=pssh tests/test_imports.py tests/test_output.py tests/test_utils.py
31+
- pytest --cov-append --cov=pssh tests/test_imports.py tests/test_output.py tests/test_utils.py tests/test_host_config.py
3232
- pytest --reruns 5 --cov-append --cov=pssh tests/miko
3333
- pytest --reruns 10 --cov-append --cov=pssh tests/native/test_tunnel.py tests/native/test_agent.py
3434
- pytest --reruns 5 --cov-append --cov=pssh tests/native/test_*_client.py
@@ -46,9 +46,6 @@ jobs:
4646
include:
4747

4848
- stage: test
49-
if: (type = push OR \
50-
(type = pull_request AND fork = true)) AND \
51-
tag IS blank
5249

5350
- &osx-wheels
5451
stage: build packages
@@ -96,5 +93,5 @@ jobs:
9693
repo: ParallelSSH/parallel-ssh
9794
tags: true
9895
distributions: sdist
99-
skip_upload_docs: true
100-
skip_cleanup: true
96+
upload_docs: false
97+
cleanup: false

‎Changelog.rst

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
Change Log
22
============
33

4-
1.12.2 (unreleased)
5-
+++++++++++++++++++
4+
1.13.0 (unreleased)
5+
++++++++++++++++++++
6+
7+
Changes
8+
--------
9+
10+
* Added ``pssh.config.HostConfig`` for providing per-host configuration. Replaces dictionary ``host_config`` which is now deprecated. See `per-host configuration <https://parallel-ssh.readthedocs.io/en/latest/advanced.html#per-host-configuration>`_ documentation.
11+
* ``ParallelSSHClient.scp_send`` and ``scp_recv`` with directory target path will now copy source file to directory keeping existing name instead of failing when recurse is off - #183.
612

713
Fixes
814
------
915

10-
* `ParallelSSHClient.copy_file` with recurse enabled and absolute destination path would create empty directory in home directory of user - #197.
11-
* `ParallelSSHClient.copy_file` and `scp_recv` with recurse enabled would not create remote directories when copying empty local directories.
12-
* `ParallelSSHClient.scp_send` would require SFTP when recurse is off and remote destination path contains directory - #157.
13-
* `ParallelSSHClient.scp_recv` could block infinitely on large - 200-300MB or more - files.
16+
* ``ParallelSSHClient.copy_file`` with recurse enabled and absolute destination path would create empty directory in home directory of user - #197.
17+
* ``ParallelSSHClient.copy_file`` and ``scp_recv`` with recurse enabled would not create remote directories when copying empty local directories.
18+
* ``ParallelSSHClient.scp_send`` would require SFTP when recurse is off and remote destination path contains directory - #157.
19+
* ``ParallelSSHClient.scp_recv`` could block infinitely on large - 200-300MB or more - files.
20+
1421

1522
1.12.1
1623
++++++

0 commit comments

Comments
 (0)
Failed to load comments.