Skip to content

Commit ddb38b4

Browse files
authored
Test with Python 3.11, use major version updates of flake8 and tox (#134)
1 parent e9ef660 commit ddb38b4

File tree

7 files changed

+37
-23
lines changed

7 files changed

+37
-23
lines changed

.github/workflows/ci-workflow.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [3.7, 3.8, 3.9, "3.10"]
11+
python-version: [3.8, 3.9, "3.10", "3.11"]
1212
steps:
1313
- name: Checkout sources
14-
uses: actions/checkout@master
14+
uses: actions/checkout@v3
1515

1616
- name: Set up Python ${{ matrix.python-version }}
1717
uses: actions/setup-python@v4
@@ -20,24 +20,24 @@ jobs:
2020

2121
- name: Install dependencies
2222
run: |
23-
python -m pip install --upgrade pip virtualenv setuptools
23+
python -m pip install --upgrade pip
2424
pip install -r requirements-build.txt
2525
2626
- name: Set tox setting
2727
id: ToxSetting
2828
run: |
29-
if [[ "${{ matrix.python-version }}" == "3.7" ]]
29+
if [[ "${{ matrix.python-version }}" == "3.8" ]]
3030
then
31-
echo "::set-output name=toxenv::py37"
32-
elif [[ "${{ matrix.python-version }}" == "3.8" ]]
33-
then
34-
echo "::set-output name=toxenv::py38"
31+
echo "toxenv=py38" >> $GITHUB_OUTPUT
3532
elif [[ "${{ matrix.python-version }}" == "3.9" ]]
3633
then
37-
echo "::set-output name=toxenv::py39"
34+
echo "toxenv=py39" >> $GITHUB_OUTPUT
3835
elif [[ "${{ matrix.python-version }}" == "3.10" ]]
3936
then
40-
echo "::set-output name=toxenv::py310"
37+
echo "toxenv=py310" >> $GITHUB_OUTPUT
38+
elif [[ "${{ matrix.python-version }}" == "3.11" ]]
39+
then
40+
echo "toxenv=py311" >> $GITHUB_OUTPUT
4141
else
4242
exit 1
4343
fi

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ sudo: false
33

44
matrix:
55
include:
6-
- python: 3.7
7-
dist: focal
8-
env: TOXENV=py37
96
- python: 3.8
107
dist: focal
118
env: TOXENV=py38
129
- python: 3.9
1310
dist: focal
1411
env: TOXENV=py39
15-
- python: nightly
12+
- python: 3.10
1613
dist: focal
1714
env: TOXENV=py310
15+
- python: nightly
16+
dist: focal
17+
env: TOXENV=py311
1818
allow_failures:
19-
- env: TOXENV=py310
19+
- env: TOXENV=py311
2020

2121
before_install:
2222
- python -m pip install --upgrade setuptools pip virtualenv

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
2.1.0 - 2022-12-13
5+
==================
6+
7+
### Added
8+
- Support Python 3.11
9+
10+
## Removed
11+
- No longer support Python 3.7
12+
13+
414
2.0.1 - 2022-11-04
515
==================
616

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ All notable changes to this project will be documented in [CHANGELOG](./CHANGELO
1212

1313
---
1414
## Built with
15-
- Python - support Python 3.7, 3.8, 3.9, 3.10.
15+
- Python - support Python 3.8, 3.9, 3.10, 3.11.
1616
- [Dependabot version updates](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates) is [enabled](.github/dependabot.yml) in this repository.
1717
- [CodeQL](https://codeql.github.com) is [enabled](.github/workflows/codeql-analysis.yml) in this repository.
1818

requirements-build.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file is used for running tox, flake8 and building the wheel
22
pip~=22.3
3+
virtualenv~=20.17
4+
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
35
logilab-common~=1.9
46
m2r~=0.3
5-
tox~=3.27
6-
virtualenv~=20.17
7+
tox~=4.0

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
codecov~=2.1
33
cov-core~=1.15
44
coverage~=6.5
5-
flake8~=5.0
5+
flake8~=6.0
66
mock~=4.0
77
pytest~=7.2
88
pytest-cov~=4.0

tox.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
[tox]
2-
envlist = py37,py38,py39,py310
2+
envlist = py38,py39,py310,py311
33
skip_missing_interpreters = True
44

55
[testenv]
66
basepython =
7-
py37: python3.7
87
py38: python3.8
98
py39: python3.9
109
py310: python3.10
10+
py311: python3.11
1111
install_command =
1212
python -m pip install {opts} {packages} -cconstraints.txt
1313
deps =
1414
-rrequirements-test.txt
1515
pip_pre = True
1616
passenv =
1717
CODECOV_TOKEN # codecov
18-
TOXENV CI TRAVIS TRAVIS_* # travis and codecov
18+
TOXENV # travis and codecov
19+
CI
20+
TRAVIS
21+
TRAVIS_*
1922
commands =
2023
pip check
2124
python -m pytest --junit-xml "junit-{envname}.xml"
2225

23-
[testenv:py39]
26+
[testenv:py311]
2427
commands =
2528
pip check
2629
python -m pytest --cov . --cov-config=tox.ini --cov-report xml:coverage-{envname}.xml --junit-xml "junit-{envname}.xml" ssllabsscan

0 commit comments

Comments
 (0)