Skip to content

Commit

Permalink
Update supported Python versions from 3.8 to 3.12 (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo authored Apr 18, 2024
1 parent 1cb2e0c commit 6450b83
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 21 deletions.
51 changes: 38 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
tags:
pull_request:

jobs:
Expand All @@ -16,29 +15,55 @@ jobs:
include:
# linux
- os: ubuntu-latest
python: 3.7
toxenv: py37
python: "3.12"
toxenv: py312
- os: ubuntu-latest
python: 3.8
toxenv: py38
python: "3.11"
toxenv: py311
- os: ubuntu-latest
python: "3.10"
toxenv: py310
- os: ubuntu-latest
python: 3.9
python: "3.9"
toxenv: py39
# Blocked by https://github.com/web-platform-tests/wpt/issues/35978
# - os: ubuntu-latest
# python: "3.10"
# toxenv: py310
- os: ubuntu-latest
python: "3.8"
toxenv: py38
# windows
- os: windows-latest
python: 3.8
python: "3.12"
toxenv: py312
- os: windows-latest
python: "3.11"
toxenv: py311
- os: windows-latest
python: "3.10"
toxenv: py310
- os: windows-latest
python: "3.9"
toxenv: py39
- os: windows-latest
python: "3.8"
toxenv: py38
# macos
- os: macos-latest
python: 3.8
python: "3.12"
toxenv: py312
- os: macos-latest
python: "3.11"
toxenv: py311
- os: macos-latest
python: "3.10"
toxenv: py310
- os: macos-latest
python: "3.9"
toxenv: py39
- os: macos-latest
python: "3.8"
toxenv: py38
# misc
- os: ubuntu-latest
python: 3.8
python: "3.11"
toxenv: pylama

steps:
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
.idea/
.cache/
.pytest_cache/
.tox/
.vscode/
build/
dist/
*.egg-info
*.pyc
.coverage
.pytest_cache/
.vscode/
build
dist
.DS_Store
2 changes: 1 addition & 1 deletion requirements/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ coveralls[yaml]==3.3.1
pytest==7.4.4
pytest-cov==4.1.0
pytest-mock==3.11.1
wptserve==3.0
wptserve==4.0.2
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ def get_version():
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def httpd():
doc_root=os.path.join(HERE, 'data'),
routes=routes,
)
httpd.start(block=False)
httpd.start()
yield httpd
httpd.stop()

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, pylama
envlist = py38, py39, py310, py311, py312, pylama

[testenv]
usedevelop = true
Expand Down

0 comments on commit 6450b83

Please sign in to comment.