15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
version : 2.1
17
17
18
- orbs :
19
- python :
circleci/[email protected]
20
18
21
19
jobs :
22
20
python_test :
23
21
parameters :
24
22
python_ver :
25
23
type : string
26
- default : " 3.6 "
24
+ default : " 3.10 "
27
25
docker :
28
- - image : circleci /python:<< parameters.python_ver >>
26
+ - image : cimg /python:<< parameters.python_ver >>
29
27
steps :
30
28
- checkout
31
- - python/load-cache :
32
- dependency-file : requirements_dev.txt
33
- key : depsv3-{{ .Branch }}.{{ arch }}-PY<< parameters.python_ver >>
34
29
- run :
35
30
name : Deps
36
31
command : |
37
32
sudo apt-get update
38
33
sudo apt-get install cmake openssh-server
39
34
pip install -r requirements_dev.txt
40
- - python/save-cache :
41
- dependency-file : requirements_dev.txt
42
- key : depsv3-{{ .Branch }}.{{ arch }}-PY<< parameters.python_ver >>
43
35
- run :
44
36
command : |
37
+ pip uninstall -y cython
45
38
python setup.py build_ext --inplace
46
39
eval "$(ssh-agent -s)"
47
40
name : Build
@@ -50,20 +43,32 @@ jobs:
50
43
set -x
51
44
ls -lhtr ssh2/
52
45
pwd
53
- pytest tests
46
+ python -m pytest tests
47
+ name : Test
48
+ - run :
49
+ command : |
50
+ python -m pytest ci/integration_tests
51
+ name : Integration
52
+ - run :
53
+ command : |
54
54
flake8 ssh2
55
+ name : Flake
56
+ - run :
57
+ command : |
55
58
python setup.py sdist
56
59
cd dist; pip install *; python -c 'from ssh2.session import Session; Session()'; cd ..
60
+ name : Sdist Install
61
+ - run :
62
+ command : |
57
63
cd doc
58
64
make html
59
65
cd ..
60
- name : Test
66
+ name : Docs
61
67
62
68
osx :
63
69
parameters :
64
70
xcode_ver :
65
71
type : string
66
- default : " 11.6.0"
67
72
macos :
68
73
xcode : << parameters.xcode_ver >>
69
74
environment :
75
80
name : deps
76
81
command : |
77
82
brew install cmake git-lfs python libssh2
83
+ brew link --force openssl
84
+ brew link --force libssh2
78
85
pip3 install twine
79
86
which twine
80
87
- run :
90
97
91
98
manylinux-x86_64 :
92
99
machine :
93
- image : ubuntu-2004:202201-02
100
+ image : ubuntu-2004:current
94
101
steps : &manylinux-steps
95
102
- checkout
96
- - python/load-cache :
97
- key : manylinuxdepsv6-{{ .Branch }}.{{ arch }}
98
- dependency-file : requirements_dev.txt
99
103
- run :
100
104
name : Git LFS
101
105
command : |
@@ -110,11 +114,7 @@ jobs:
110
114
pip install -U pip
111
115
pip install twine
112
116
which twine
113
- which python
114
117
which python3
115
- - python/save-cache :
116
- key : manylinuxdepsv6-{{ .Branch }}.{{ arch }}
117
- dependency-file : requirements_dev.txt
118
118
- run :
119
119
name : Build Wheels
120
120
command : |
@@ -134,22 +134,22 @@ jobs:
134
134
135
135
manylinux2014-aarch64 :
136
136
machine :
137
- image : ubuntu-2004:202101-01
137
+ image : ubuntu-2004:current
138
138
resource_class : arm.medium
139
139
steps : *manylinux-steps
140
140
141
141
workflows :
142
- version : 2.1
142
+ version : 2
143
143
main :
144
144
jobs :
145
145
- python_test :
146
146
matrix :
147
147
parameters :
148
148
python_ver :
149
- - " 3.6"
150
149
- " 3.8"
151
- - " 3.9"
152
150
- " 3.10"
151
+ - " 3.11"
152
+ - " 3.12"
153
153
filters :
154
154
tags :
155
155
ignore : /.*/
@@ -166,7 +166,8 @@ workflows:
166
166
parameters :
167
167
xcode_ver :
168
168
- " 14.0.0"
169
- - " 13.1.0"
169
+ - " 15.0.0"
170
+ - " 16.0.0"
170
171
filters :
171
172
tags :
172
173
only : /.*/
0 commit comments