Skip to content

Drop support for python 3.7 and add 3.13 to CI #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
include:
- os: windows-latest
python-version: "3.9"
python-version: "3.11"
- os: macos-latest
python-version: "3.9"
python-version: "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ repos:
rev: v1.6.1
hooks:
- id: mypy
# markdown-it-py 3.0 uses Python 3.8 syntax
additional_dependencies: ["rich", "markdown-it-py<3.0.0"]
additional_dependencies: ["rich"]
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: User Interfaces",
]
keywords = ["argparse", "rich", "help-formatter", "optparse"]
dependencies = [
"rich >= 11.0.0",
]
requires-python = ">=3.7"
requires-python = ">=3.8"

[project.urls]
Homepage = "https://github.com/hamdanal/rich-argparse"
Expand All @@ -43,7 +43,7 @@ build.packages = ["rich_argparse"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37,py38,py39,py310,py311,py312
envlist = py{38,39,310,311,312,313}
skip_missing_interpreters = true

[testenv]
Expand All @@ -67,7 +67,7 @@ isort.extra-standard-library = ["typing_extensions"]
flake8-tidy-imports.ban-relative-imports = "all"

[tool.mypy]
python_version = "3.7"
python_version = "3.8"
strict = true

[[tool.mypy.overrides]]
Expand Down
7 changes: 1 addition & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
import io
import os
import sys
from typing import Any, Generic, TypeVar
from typing import Any, Generic, Protocol, TypeVar
from unittest.mock import patch

import pytest

if sys.version_info >= (3, 8): # pragma: >=3.8 cover
from typing import Protocol
else: # pragma: <3.8 cover
from typing_extensions import Protocol


class Parser(Protocol):
def format_help(self) -> str:
Expand Down
1 change: 0 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pytest
coverage[toml]
covdefaults
typing_extensions;python_version<"3.8"