Skip to content

Commit f1d46fc

Browse files
authored
Upgrade (#398)
* Fixed issue with stdin flush for libssh clients * Updated changelog * Updated sshd template * Updated versioneer * Updated logging * Refactored tests, imports * Updated CI cfg * Updated docstrings * Updated imports * Updated readme * Prettify tests
1 parent c7fc51a commit f1d46fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1296
-610
lines changed

.circleci/config.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
version: 2.1
22

3-
orbs:
4-
python: circleci/python@0.3.2
53

64
jobs:
75
python_test:
86
parameters:
97
python_ver:
108
type: string
11-
default: "3.6"
9+
default: "3.10"
1210
docker:
13-
- image: circleci/python:<< parameters.python_ver >>
11+
- image: cimg/python:<< parameters.python_ver >>
1412
steps:
1513
- checkout
16-
- python/load-cache:
17-
dependency-file: requirements_dev.txt
18-
key: depsv3-{{ .Branch }}.{{ arch }}-PY<< parameters.python_ver >>
1914
- run:
2015
name: Deps
2116
command: |
@@ -24,23 +19,25 @@ jobs:
2419
- run:
2520
command: |
2621
pip install -U -r requirements_dev.txt
22+
set -x
23+
eval "$(ssh-agent -s)"
2724
name: Build
28-
- python/save-cache:
29-
dependency-file: requirements_dev.txt
30-
key: depsv3-{{ .Branch }}.{{ arch }}-PY<< parameters.python_ver >>
3125
- run:
3226
command: |
3327
python setup.py check --restructuredtext
3428
name: Check readme
3529
- run:
3630
command: |
3731
flake8 pssh
32+
flake8 tests ci/integration_tests
3833
name: flake
3934
- run:
4035
command: |
41-
set -x
42-
eval "$(ssh-agent -s)"
4336
pytest
37+
name: Test
38+
- run:
39+
command: |
40+
pytest ci/integration_tests
4441
name: Integration tests
4542
- run:
4643
command: |
@@ -59,22 +56,16 @@ jobs:
5956

6057
release:
6158
docker:
62-
- image: circleci/python:3.8
59+
- image: cimg/python:3.10
6360
steps:
6461
- checkout
65-
- python/load-cache:
66-
key: releasedepsv1-{{ .Branch }}.{{ arch }}
67-
dependency-file: requirements.txt
6862
- run:
6963
name: Deps
7064
command: |
7165
sudo apt-get update
7266
sudo apt-get install python3-pip
7367
pip install -U pip
7468
pip install -U twine
75-
- python/save-cache:
76-
key: releasedepsv1-{{ .Branch }}.{{ arch }}
77-
dependency-file: requirements.txt
7869
- run:
7970
name: Build Wheels/Source Dist
8071
command: |
@@ -94,10 +85,10 @@ workflows:
9485
matrix:
9586
parameters:
9687
python_ver:
97-
- "3.6"
9888
- "3.8"
99-
- "3.9"
10089
- "3.10"
90+
- "3.11"
91+
- "3.12"
10192
filters:
10293
tags:
10394
ignore: /.*/

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ coverage:
99
ignore:
1010
- "embedded_server/.*"
1111
- "tests/.*"
12+
- "ci/integration_tests/.*"

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pypy
4545
# Documentation builds
4646
doc/_build
4747

48-
tests/unit_test_cert_key-cert.pub
49-
tests/embedded_server/principals
50-
tests/embedded_server/sshd_config_*
51-
tests/embedded_server/*.pid
48+
ci/integration_tests/int_test_cert_key-cert.pub
49+
ci/integration_tests/embedded_server/principals
50+
ci/integration_tests/embedded_server/sshd_config_*
51+
ci/integration_tests/embedded_server/*.pid

Changelog.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
Change Log
22
============
33

4+
5+
2.13.0
6+
+++++++
7+
8+
Changes
9+
-------
10+
11+
* Minimum version updates for ``ssh2-python`` and `ssh-python``.
12+
* Added support for Python 3.12+, removed support for Python <3.8.
13+
* Package tests under top level ``tests`` directory are now cross platform and may be run by vendors.
14+
Project CI specific ntegration tests moved into their own space.
15+
16+
17+
Fixes
18+
------
19+
20+
* Calling ``HostOutput.stdin.flush`` with a ``pssh.clients.ssh`` client would raise exception.
21+
22+
423
2.12.0
524
+++++++
625

MANIFEST.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@ include pssh/_version.py
33
include LICENSE
44
include COPYING
55
include COPYING.LESSER
6+
exclude .codecov.yml
7+
exclude .coveragerc
8+
exclude .git*
9+
exclude .pre-commit*
10+
exclude .readthedocs.yml
611
recursive-exclude tests *
12+
recursive-exclude ci *
13+
recursive-exclude .circleci *
14+
recursive-exclude .github *

README.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Native code based clients with extremely high performance, making use of C libra
2525
:alt: Latest documentation
2626

2727
.. _`read the docs`: https://parallel-ssh.readthedocs.org/en/latest/
28+
.. _`SFTP and SCP documentation`: https://parallel-ssh.readthedocs.io/en/latest/advanced.html#sftp-scp
2829

2930
************
3031
Installation
@@ -239,7 +240,7 @@ To copy a local file to remote hosts in parallel with SCP:
239240
cmds = client.scp_send('../test', 'test_dir/test')
240241
joinall(cmds, raise_error=True)
241242
242-
See `SFTP and SCP documentation <https://parallel-ssh.readthedocs.io/en/latest/advanced.html#sftp-scp>`_ for more examples.
243+
See `SFTP and SCP documentation`_ for more examples.
243244

244245

245246
*****
@@ -275,8 +276,4 @@ In addition, per-host configurable file name functionality is provided for both
275276

276277
Directory recursion is supported in both cases via the ``recurse`` parameter - defaults to off.
277278

278-
See `SFTP and SCP documentation <https://parallel-ssh.readthedocs.io/en/latest/advanced.html#sftp-scp>`_ for more examples.
279-
280-
281-
.. image:: https://ga-beacon.appspot.com/UA-9132694-7/parallel-ssh/README.rst?pixel
282-
:target: https://github.com/igrigorik/ga-beacon
279+
See `SFTP and SCP documentation`_ for more examples.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)