Skip to content

Commit

Permalink
Drop support for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Kirsche committed Oct 22, 2024
1 parent 6f73f6f commit a30d7a2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
name: "Python ${{ matrix.python-version }} on ${{ matrix.platform }}"
runs-on: "${{ matrix.platform }}"
env:
USING_COVERAGE: '3.8'
USING_COVERAGE: '3.9'

strategy:
fail-fast: false
matrix:
platform: ["ubuntu-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.8", "pypy3.9"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9"]

steps:
- uses: "actions/checkout@v4"
Expand All @@ -43,7 +43,7 @@ jobs:
# parsing errors in older versions for modern code.
- uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"

- name: "Combine coverage"
run: |
Expand All @@ -70,7 +70,7 @@ jobs:
- uses: "actions/setup-python@v5"

with:
python-version: "3.8"
python-version: "3.9"

- name: "Install pep517 and twine"
run: "python -m pip install pep517 twine"
Expand All @@ -97,7 +97,7 @@ jobs:
- uses: "actions/setup-python@v5"

with:
python-version: "3.8"
python-version: "3.9"

- name: "Install in dev mode"
run: "python -m pip install -e .[dev]"
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -37,7 +36,7 @@ keywords = [
"web",
]
name = "PyJWT"
requires-python = ">=3.8"
requires-python = ">=3.9"

[project.license]
text = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ exclude = [
line-length = 88
indent-width = 4

# Assume Python 3.8
target-version = "py38"
# Assume Python 3.9
target-version = "py39"

[lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
Expand Down
12 changes: 5 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
min_python_version = 3.8
min_python_version = 3.9
ignore= E501, E203, W503, E704

[pytest]
Expand All @@ -12,21 +12,19 @@ filterwarnings =

[gh-actions]
python =
3.8: py38, typing
3.9: py39
3.10: py310
3.11: py311, docs
3.12: py312
3.13: py313
pypy3.8: pypy3
pypy3.9: pypy3


[tox]
envlist =
lint
typing
py{38,39,310,311,312,313,py3}-{crypto,nocrypto}
py{39,310,311,312,313,py3}-{crypto,nocrypto}
docs
pypi-description
coverage-report
Expand Down Expand Up @@ -57,14 +55,14 @@ commands =


[testenv:lint]
basepython = python3.8
basepython = python3.9
extras = dev
passenv = HOMEPATH # needed on Windows
commands = pre-commit run --all-files


[testenv:pypi-description]
basepython = python3.8
basepython = python3.9
skip_install = true
deps =
twine
Expand All @@ -75,7 +73,7 @@ commands =


[testenv:coverage-report]
basepython = python3.8
basepython = python3.9
skip_install = true
deps = coverage[toml]==5.0.4
commands =
Expand Down

0 comments on commit a30d7a2

Please sign in to comment.