Skip to content

Commit 4b0a7a8

Browse files
authored
Libssh2 upg (#179)
* Upgraded libssh2 to 1.10.0. * Regenerated with latest cython. * Updated docker files for new libssh2 and openssl versions. Removed obsolete file. * Updated readthedocs config. * Updated setup.py, CI cfgs, CI scripts. * Updated Changelog.
1 parent 0064a2d commit 4b0a7a8

File tree

583 files changed

+212304
-6306
lines changed

Some content is hidden

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

583 files changed

+212304
-6306
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ build_script:
6969
- for %%I in (%PYTHONVERS%) do cp C:/zlib/lib/zlibstatic.lib %%I/libs/
7070
- for %%I in (%PYTHONVERS%) do ls %%I/libs/
7171
- ci\\appveyor\\build_ssh2.bat
72-
- for %%I in (%PYTHONVERS%) do cp src/src/libssh2.lib %%I/libs/ || cp src/src/Release/libssh2.lib %%I/libs/
72+
- for %%I in (%PYTHONVERS%) do cp build_dir/src/libssh2.lib %%I/libs/ || cp build_dir/src/Release/libssh2.lib %%I/libs/
7373
- rm -f ssh2/*.c
7474
- ps: ls ssh2
7575
- for %%I in (%PYTHONVERS%) do %%I\python.exe -V

.circleci/config.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of ssh2-python.
2-
# Copyright (C) 2017-2021 Panos Kittenis and contributors.
2+
# Copyright (C) 2017-2022 Panos Kittenis and contributors.
33
#
44
# This library is free software; you can redistribute it and/or
55
# modify it under the terms of the GNU Lesser General Public
@@ -34,6 +34,7 @@ jobs:
3434
- run:
3535
name: Deps
3636
command: |
37+
sudo apt-get update
3738
sudo apt-get install cmake openssh-server
3839
pip install -r requirements_dev.txt
3940
- python/save-cache:
@@ -89,7 +90,7 @@ jobs:
8990
9091
manylinux-x86_64:
9192
machine:
92-
image: ubuntu-1604:201903-01
93+
image: ubuntu-2004:202201-02
9394
steps: &manylinux-steps
9495
- checkout
9596
- python/load-cache:
@@ -106,7 +107,6 @@ jobs:
106107
name: Deps
107108
command: |
108109
sudo apt-get install python3-pip
109-
pyenv global 3.7.0 || pyenv global 3.9.1
110110
pip install -U pip
111111
pip install twine
112112
which twine
@@ -145,7 +145,6 @@ workflows:
145145
parameters:
146146
python_ver:
147147
- "3.6"
148-
- "3.7"
149148
- "3.8"
150149
- "3.9"
151150
- "3.10"
@@ -164,11 +163,8 @@ workflows:
164163
matrix:
165164
parameters:
166165
xcode_ver:
166+
- "14.0.0"
167167
- "13.1.0"
168-
- "13.0.0"
169-
- "12.5.1"
170-
- "11.6.0"
171-
- "11.1.0"
172168
filters:
173169
tags:
174170
only: /.*/

.environment.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @pkittenis

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dist
44
build
55
*~
66
*.so
7-
src
7+
build_dir
88
wheelhouse
99
.idea/
1010
ssh2/libssh2.so*

.readthedocs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
conda:
2-
file: .environment.yml
1+
version: 2
2+
build:
3+
apt_packages:
4+
- cmake
5+
- openssl
36
python:
4-
setup_py_install: true
7+
install:
8+
- method: pip
9+
path: .

Changelog.rst

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

4+
1.0.0
5+
++++++
6+
7+
Changes
8+
--------
9+
10+
* Upgraded embedded and wheel libssh2 to 1.10.0.
11+
* Upgraded wheel OpenSSL to 1.1.1q.
12+
* Added testing for Python 3.10.
13+
* Removed testing for Python 3.7.
14+
15+
Packaging
16+
----------
17+
18+
* Added OSX 12.0 wheels.
19+
* Removed OSX <= 10.0 wheels.
20+
421
0.27.0
522
++++++
623

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ recursive-exclude docker *
33
include _setup_libssh2.py
44
include versioneer.py
55
include ssh2/_version.py
6-
exclude .travis.yml
6+
recursive-exclude .circleci
77
include LICENSE
88
include ssh2/*.pyx
99
include ssh2/*.pxd

_setup_libssh2.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from subprocess import check_call
2020
from glob import glob
2121
from shutil import copy2
22-
from multiprocessing import cpu_count
2322

2423

2524
def build_ssh2():
@@ -29,16 +28,16 @@ def build_ssh2():
2928
if os.path.exists('/usr/local/opt/openssl'):
3029
os.environ['OPENSSL_ROOT_DIR'] = '/usr/local/opt/openssl'
3130

32-
if not os.path.exists('src'):
33-
os.mkdir('src')
31+
if not os.path.exists('build_dir'):
32+
os.mkdir('build_dir')
3433

35-
os.chdir('src')
36-
check_call('cmake ../libssh2 -DBUILD_SHARED_LIBS=ON \
34+
os.chdir('build_dir')
35+
check_call('cmake ../libssh2/libssh2 -DBUILD_SHARED_LIBS=ON \
3736
-DENABLE_ZLIB_COMPRESSION=ON -DENABLE_CRYPT_NONE=ON \
3837
-DENABLE_MAC_NONE=ON -DCRYPTO_BACKEND=OpenSSL',
3938
shell=True, env=os.environ)
4039
check_call('cmake --build . --config Release', shell=True, env=os.environ)
4140
os.chdir('..')
4241

43-
for src in glob('src/src/libssh2.so*'):
42+
for src in glob('build_dir/src/libssh2.so*'):
4443
copy2(src, 'ssh2/')

ci/appveyor/build_ssh2.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
mkdir src
2-
cd src
1+
mkdir build_dir
2+
cd build_dir
33

44
ECHO "Building with platform %MSVC%"
5-
cmake ..\libssh2 -G "NMake Makefiles" ^
5+
cmake ..\libssh2\libssh2 -G "NMake Makefiles" ^
66
-DCMAKE_BUILD_TYPE=Release ^
77
-DCRYPTO_BACKEND=OpenSSL ^
88
-G"%MSVC%" ^

0 commit comments

Comments
 (0)