Skip to content

Commit

Permalink
Add Python 3.12 support, drop 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
RazerM committed Oct 4, 2023
1 parent e5242ad commit 15b7ab6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: [3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: "actions/checkout@v4"
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: "actions/setup-python@v4"
with:
# Use latest Python, so it understands all syntax.
python-version: "3.11"
python-version: "3.12"

- run: "python -m pip install --upgrade coverage[toml]"

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
rev: v3.14.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "spacetrack"
version = "1.0.1"
description = "Python client for space-track.org"
readme = "README.rst"
requires-python = ">=3.7"
requires-python = ">=3.8"
license = { text = "MIT" }
authors = [
{ name = "Frazer McLean", email = "[email protected]" },
Expand All @@ -16,11 +16,11 @@ classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"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",
]
dependencies = [
"httpx",
Expand Down
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 2.4
envlist = py37,py38,py39,py310,py311,pep8,docs,coverage-report
envlist = py38,py39,py310,py311,py312,pep8,docs,coverage-report
isolated_build = True

[testenv]
Expand All @@ -12,22 +12,22 @@ commands =
coverage run -m pytest {posargs}

[testenv:coverage-report]
basepython = python3.11
basepython = python3.12
skip_install = true
depends = py37,py38,py39,py310,py311
depends = py38,py39,py310,py311,py312
commands =
coverage combine
coverage report

[testenv:pep8]
basepython = python3.11
basepython = python3.12
extras =
pep8test
commands =
flake8 .

[testenv:docs]
basepython = python3.11
basepython = python3.12
extras =
docstest
commands =
Expand All @@ -54,4 +54,5 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, pep8, docs
3.11: py311
3.12: py312, pep8, docs

0 comments on commit 15b7ab6

Please sign in to comment.