Skip to content

Commit a8ec2e7

Browse files
authored
Merge pull request #99 from TG1999/update_ci
Drop python 3.6 and use 3.11 in CI
2 parents 3d5edee + dab9c9a commit a8ec2e7

5 files changed

Lines changed: 14 additions & 36 deletions

File tree

.travis.yml

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

azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
parameters:
1212
job_name: ubuntu18_cpython
1313
image_name: ubuntu-18.04
14-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
14+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
1515
test_suites:
1616
all: |
1717
source venv/bin/activate
@@ -21,7 +21,7 @@ jobs:
2121
parameters:
2222
job_name: ubuntu20_cpython
2323
image_name: ubuntu-20.04
24-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
24+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
2525
test_suites:
2626
all: |
2727
source venv/bin/activate
@@ -31,7 +31,7 @@ jobs:
3131
parameters:
3232
job_name: macos1015_cpython
3333
image_name: macos-10.15
34-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
34+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
3535
test_suites:
3636
all: |
3737
source venv/bin/activate
@@ -41,7 +41,7 @@ jobs:
4141
parameters:
4242
job_name: macos11_cpython
4343
image_name: macos-11
44-
python_versions: ['3.7', '3.8', '3.9', '3.10']
44+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
4545
test_suites:
4646
all: |
4747
source venv/bin/activate
@@ -51,7 +51,7 @@ jobs:
5151
parameters:
5252
job_name: win2019_cpython
5353
image_name: windows-2019
54-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
54+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
5555
test_suites:
5656
all: |
5757
call venv\Scripts\activate.bat
@@ -61,7 +61,7 @@ jobs:
6161
parameters:
6262
job_name: win2022_cpython
6363
image_name: windows-2022
64-
python_versions: ['3.7', '3.8', '3.9', '3.10']
64+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
6565
test_suites:
6666
all: |
6767
call venv\Scripts\activate.bat

requirements-dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ execnet==1.9.0
22
importlib-metadata==4.8.1
33
iniconfig==1.1.1
44
pluggy==1.0.0
5-
py==1.10.0
6-
pytest==6.2.5
7-
pytest-forked==1.3.0
8-
pytest-xdist==2.4.0
5+
py==1.11.0
6+
pytest==7.2.0
7+
pytest-forked==1.4.0
8+
pytest-xdist==3.2.0
99
toml==0.10.2
1010
typing-extensions==3.10.0.2
1111
zipp==3.6.0

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ zip_safe = false
5454

5555
setup_requires = setuptools_scm[toml] >= 4
5656

57-
python_requires = >=3.6.*
57+
python_requires = >=3.7
5858

5959
install_requires =
6060
attrs

tests/test_rpm_vercmp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def create_test_function(ver1, ver2, expected, name):
7474
"""
7575

7676
def test_rpm_version(self):
77-
print(f"testing (ver1={ver1}, ver2={ver2}, expected=expected{expected}")
77+
ver1_str = str(ver1).encode("utf-8")
78+
ver2_str = str(ver2).encode("utf-8")
79+
print(f"testing (ver1={ver1_str}, ver2={ver2_str}, expected=expected{expected}")
7880
result = vercmp.vercmp(ver1, ver2)
7981
if result != expected:
8082
assert result == (expected, ver1, ver2)

0 commit comments

Comments
 (0)