Skip to content

Commit a2cec55

Browse files
authored
Drop support for python 3.7 and add 3.13 to CI (#103)
Closes #95
1 parent 9841bfc commit a2cec55

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ubuntu-latest]
23-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
23+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2424
include:
2525
- os: windows-latest
26-
python-version: "3.9"
26+
python-version: "3.11"
2727
- os: macos-latest
28-
python-version: "3.9"
28+
python-version: "3.11"
2929
runs-on: ${{ matrix.os }}
3030
steps:
3131
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ repos:
2929
rev: v1.6.1
3030
hooks:
3131
- id: mypy
32-
# markdown-it-py 3.0 uses Python 3.8 syntax
33-
additional_dependencies: ["rich", "markdown-it-py<3.0.0"]
32+
additional_dependencies: ["rich"]

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ classifiers = [
1717
"Intended Audience :: Developers",
1818
"License :: OSI Approved :: MIT License",
1919
"Operating System :: OS Independent",
20-
"Programming Language :: Python :: 3.7",
2120
"Programming Language :: Python :: 3.8",
2221
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
2524
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
2626
"Topic :: Software Development :: User Interfaces",
2727
]
2828
keywords = ["argparse", "rich", "help-formatter", "optparse"]
2929
dependencies = [
3030
"rich >= 11.0.0",
3131
]
32-
requires-python = ">=3.7"
32+
requires-python = ">=3.8"
3333

3434
[project.urls]
3535
Homepage = "https://github.com/hamdanal/rich-argparse"
@@ -43,7 +43,7 @@ build.packages = ["rich_argparse"]
4343
[tool.tox]
4444
legacy_tox_ini = """
4545
[tox]
46-
envlist = py37,py38,py39,py310,py311,py312
46+
envlist = py{38,39,310,311,312,313}
4747
skip_missing_interpreters = true
4848
4949
[testenv]
@@ -67,7 +67,7 @@ isort.extra-standard-library = ["typing_extensions"]
6767
flake8-tidy-imports.ban-relative-imports = "all"
6868

6969
[tool.mypy]
70-
python_version = "3.7"
70+
python_version = "3.8"
7171
strict = true
7272

7373
[[tool.mypy.overrides]]

tests/conftest.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@
33
import io
44
import os
55
import sys
6-
from typing import Any, Generic, TypeVar
6+
from typing import Any, Generic, Protocol, TypeVar
77
from unittest.mock import patch
88

99
import pytest
1010

11-
if sys.version_info >= (3, 8): # pragma: >=3.8 cover
12-
from typing import Protocol
13-
else: # pragma: <3.8 cover
14-
from typing_extensions import Protocol
15-
1611

1712
class Parser(Protocol):
1813
def format_help(self) -> str:

tests/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pytest
22
coverage[toml]
33
covdefaults
4-
typing_extensions;python_version<"3.8"

0 commit comments

Comments
 (0)