File tree Expand file tree Collapse file tree 5 files changed +34
-26
lines changed
Filter options
Expand file tree Collapse file tree 5 files changed +34
-26
lines changed
Original file line number Diff line number Diff line change 1
- image : Visual Studio 2019
1
+ # appveyor.yml - https://www.appveyor.com/docs/lang/python
2
+ # https://www.appveyor.com/docs/windows-images-software/#visual-studio-2022
3
+ ---
4
+ image : Visual Studio 2022
2
5
environment :
3
- global :
4
- PATH : " C:\\ Python27\\ Scripts\\ ;%PATH%"
5
6
matrix :
6
- - TOXENV : py27-base
7
- - TOXENV : py27-optional
8
- - TOXENV : py35-base
9
- - TOXENV : py35-optional
10
- - TOXENV : py36-base
11
- - TOXENV : py36-optional
7
+ - PY_PYTHON : 2.7
8
+ TOXENV : py27-base
9
+ - PY_PYTHON : 2.7
10
+ TOXENV : py27-optional
11
+ - PY_PYTHON : 3.7
12
+ TOXENV : py37-base
13
+ - PY_PYTHON : 3.7
14
+ TOXENV : py37-optional
12
15
13
16
install :
14
17
- git submodule update --init --recursive
15
- - python -m pip install tox
18
+ - py --list
19
+ - py -VV
20
+ - py -m pip install --upgrade pip
21
+ - py -m pip install tox
16
22
17
23
build : off
18
24
19
25
test_script :
20
- - tox
26
+ - py -m tox
21
27
22
28
after_test :
23
- - python debug-info.py
29
+ - py debug-info.py
Original file line number Diff line number Diff line change 7
7
strategy :
8
8
fail-fast : false
9
9
matrix :
10
- # 2.7, 3.5, and 3.6 run on Windows via AppVeyor
11
- python : ["3.7 ", "3.8 ", "3.9 ", "3.10 ", "3.11 "]
10
+ # 2.7 and 3.7 run on Windows via AppVeyor
11
+ python : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 "]
12
12
os : [ubuntu-latest, windows-latest]
13
13
deps : [base, optional]
14
14
include :
15
15
- python : " pypy-2.7"
16
16
os : ubuntu-latest
17
17
deps : base
18
- - python : " pypy-3.8 "
18
+ - python : " pypy-3.10 "
19
19
os : ubuntu-latest
20
20
deps : base
21
- - python : " 2.7"
22
- os : ubuntu-latest
23
- deps : oldest
24
- - python : " 3.7"
21
+ - python : " 3.8"
25
22
os : ubuntu-latest
26
23
deps : oldest
27
24
runs-on : ${{ matrix.os }}
28
25
steps :
29
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
30
27
with :
31
28
submodules : true
32
29
- if : ${{ matrix.deps == 'base' }}
33
- uses : actions/setup-python@v4
30
+ uses : actions/setup-python@v5
34
31
with :
35
32
python-version : ${{ matrix.python }}
36
33
cache : pip
37
34
cache-dependency-path : |
38
35
requirements.txt
39
36
requirements-test.txt
40
37
- if : ${{ matrix.deps == 'optional' }}
41
- uses : actions/setup-python@v4
38
+ uses : actions/setup-python@v5
42
39
with :
43
40
python-version : ${{ matrix.python }}
44
41
cache : pip
47
44
requirements-optional.txt
48
45
requirements-test.txt
49
46
- if : ${{ matrix.deps == 'oldest' }}
50
- uses : actions/setup-python@v4
47
+ uses : actions/setup-python@v5
51
48
with :
52
49
python-version : ${{ matrix.python }}
53
50
cache : pip
Original file line number Diff line number Diff line change @@ -246,7 +246,9 @@ def runtest(self):
246
246
def repr_failure (self , excinfo ):
247
247
traceback = excinfo .traceback
248
248
ntraceback = traceback .cut (path = __file__ )
249
- excinfo .traceback = ntraceback .filter ()
249
+ pytest_ver = getattr (pytest , "version_tuple" , ())
250
+ filter_args = (excinfo ,) if pytest_ver >= (7 , 4 , 0 ) else ()
251
+ excinfo .traceback = ntraceback .filter (* filter_args )
250
252
251
253
return excinfo .getrepr (funcargs = True ,
252
254
showlocals = False ,
Original file line number Diff line number Diff line change @@ -135,7 +135,9 @@ def runtest(self):
135
135
def repr_failure (self , excinfo ):
136
136
traceback = excinfo .traceback
137
137
ntraceback = traceback .cut (path = __file__ )
138
- excinfo .traceback = ntraceback .filter ()
138
+ pytest_ver = getattr (pytest , "version_tuple" , ())
139
+ filter_args = (excinfo ,) if pytest_ver >= (7 , 4 , 0 ) else ()
140
+ excinfo .traceback = ntraceback .filter (* filter_args )
139
141
140
142
return excinfo .getrepr (funcargs = True ,
141
143
showlocals = False ,
Original file line number Diff line number Diff line change 3
3
flake8==3.9.2 ; python_version < '3.6'
4
4
flake8>=5.0.4; python_version >= '3.6'
5
5
pytest>=4.6.10,<5 ; python_version < '3'
6
- pytest>=5.4.2,<7 ; python_version >= '3'
6
+ pytest>=5.4.2,<8 ; python_version >= '3'
7
7
coverage>=5.1,<6
8
8
pytest-expect>=1.1.0,<2
9
9
mock>=3.0.5,<4 ; python_version < '3.6'
10
10
mock>=4.0.2,<5 ; python_version >= '3.6'
11
+ setuptools; python_version >= '3.12'
You can’t perform that action at this time.
0 commit comments