Skip to content

Commit

Permalink
build: drop 3.8, add 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Nov 4, 2024
1 parent 0f9fedb commit c8ff939
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
# The last listed Python version is the default.
python-version: |
pypy-3.9
3.8
3.9
3.10
3.11
3.12
3.13
- name: "Restore cache"
id: "restore-cache"
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
- name: "Set up Python"
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"
cache: pip
cache-dependency-path: 'requirements/*.txt'

Expand All @@ -192,7 +192,7 @@ jobs:
- name: "Set up Python"
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"
cache: pip
cache-dependency-path: 'requirements/*.txt'

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sterile: clean ## remove absolutely all built artifacts
rm -fr .tox

coverage: clean ## generate and view HTML coverage report
tox -e py38,py312,coverage
tox -e py39,py313,coverage
$(BROWSER)htmlcov/index.html

docs: botedits ## generate Sphinx HTML documentation, including API docs
Expand Down Expand Up @@ -83,7 +83,7 @@ requirements: ## install development environment requirements
pip-sync requirements/dev.txt

test: ## run tests in the current virtualenv
tox -e py38
tox -e py39

test-all: ## run tests on every supported Python combination
tox
Expand Down
2 changes: 1 addition & 1 deletion changelog.d/20240505_065319_nedbat_py38.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Changed
.......

- Dropped support for Python 3.7.
- Dropped support for Python 3.7 and 3.8, and added 3.13.
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ classifiers =
License :: OSI Approved :: Apache Software License
Natural Language :: English
Programming Language :: Python :: 3
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
Programming Language :: Python :: 3.13
project_urls =
# For some reason, these appear in reverse order on pypi...
Mastodon = https://hachyderm.io/@nedbat
Expand All @@ -33,7 +33,7 @@ packages =
scriv
package_dir =
= src
python_requires = >= 3.8
python_requires = >= 3.9
install_requires =
# begin_install_requires
attrs
Expand Down Expand Up @@ -96,7 +96,7 @@ others =
*/scriv

[mypy]
python_version = 3.8
python_version = 3.9
show_column_numbers = true
show_error_codes = true
ignore_missing_imports = true
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
version = "2020.0.0"
description = "Lovely Spam! Wonderful Spam!"
readme = "README.rst"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = {file = "LICENSE.txt"}
keywords = ["egg", "bacon", "sausage", "tomatoes", "Lobster Thermidor"]
authors = [
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tox]
envlist =
# Run on all our Pythons:
py3{8,9,10,11,12},
py3{9,10,11,12,13},
# Run with no extras on lowest and highest version:
py3{8,12}-no_extras,
py3{9,13}-no_extras,
# And the rest:
pypy3, coverage, docs, quality
labels =
ci-tests = py3{8,9,10,11,12},py3{8,12}-no_extras,pypy3
ci-tests = py3{9,10,11,12,13},py3{9,13}-no_extras,pypy3

[testenv]
package = wheel
Expand All @@ -29,7 +29,7 @@ commands =
coverage run -p -m pytest -Wd {posargs}

[testenv:coverage]
depends = py38,py39,py310,py311,py312,pypy3
depends = py39,py310,py311,py312,py313,pypy3
basepython = python3.12
commands =
coverage combine -q
Expand Down

0 comments on commit c8ff939

Please sign in to comment.