File tree Expand file tree Collapse file tree 4 files changed +108
-61
lines changed Expand file tree Collapse file tree 4 files changed +108
-61
lines changed Original file line number Diff line number Diff line change 10
10
11
11
$python_versions = " 3.7.9 3.8.10 3.9.13 3.10.10 3.11.2"
12
12
13
- $PYRFC_BUILD_CYTHON = " yes"
13
+ $env: PYRFC_BUILD_CYTHON = " yes"
14
14
15
15
$action = $args [0 ]
16
16
17
17
$python_versions.Split (" " ) | ForEach {
18
18
$version = $_
19
- Write-Output $version
20
- pyenv global $version
19
+
20
+ pyenv shell $version
21
+ python - V
22
+
21
23
If ($action -eq " pip" ) {
22
24
python - m pip install -- upgrade pip
23
25
} else {
24
26
If ($action -ne " test" ) {
25
- python setup.py bdist_wheel
27
+ python setup.py bdist_wheel
26
28
pip install -- upgrade -- force -- find-links = dist pyrfc
27
29
}
28
- pytest - vvx
30
+ If ($action -ne " skip-test" ) {
31
+ pytest - vvx
32
+ }
29
33
}
30
34
}
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ cdef SAP_UC* fillString(pyuc) except NULL:
252
252
cdef RFC_RC rc
253
253
cdef RFC_ERROR_INFO errorInfo
254
254
ucbytes = pyuc.encode()
255
- cdef unsigned ucbytes_len = len (ucbytes)
255
+ cdef unsigned ucbytes_len = < unsigned > len (ucbytes)
256
256
cdef unsigned sapuc_size = ucbytes_len + 1
257
257
cdef SAP_UC* sapuc = mallocU(sapuc_size)
258
258
sapuc[0 ] = 0
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ cdef class ConnectionParameters:
199
199
cdef RFC_CONNECTION_PARAMETER * _params
200
200
201
201
def __cinit__ (self , **params ):
202
- self ._params_count = len (params)
202
+ self ._params_count = < unsigned > len (params)
203
203
if self ._params_count < 1 :
204
204
raise RFCError(" Connection parameters missing" )
205
205
self ._params = < RFC_CONNECTION_PARAMETER* > malloc(self ._params_count * sizeof(RFC_CONNECTION_PARAMETER))
You can’t perform that action at this time.
0 commit comments