Skip to content

Commit

Permalink
Add support for Python 3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Dec 29, 2024
1 parent 8980e7f commit 7e88e20
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 10 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,28 @@ jobs:
checks:
name: uv run dev-cmd ci
needs: org-check
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
include:
- os: ubuntu-24.04
python-version: 3.8
- os: ubuntu-24.04
python-version: 3.9
- os: ubuntu-24.04
python-version: 3.10
- os: ubuntu-24.04
python-version: 3.11
- os: ubuntu-24.04
python-version: 3.12
- os: ubuntu-24.04
python-version: 3.13

- os: macos-15
python-version: 3.13

- os: windows-2022
python-version: 3.13
steps:
- name: Checkout dev-cmd
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 0.9.0

Add support for Python 3.8.

## 0.8.0

Add `-q` / `--quiet` to quiet `dev-cmd` output to just the output of the commands it runs.
Expand Down
2 changes: 1 addition & 1 deletion dev_cmd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 John Sirois.
# Licensed under the Apache License, Version 2.0 (see LICENSE).

__version__ = "0.8.0"
__version__ = "0.9.0"
4 changes: 2 additions & 2 deletions dev_cmd/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import sys
from enum import Enum
from typing import Union
from typing import Tuple, Union

import colors
from typing_extensions import TypeAlias
Expand Down Expand Up @@ -79,7 +79,7 @@ def bold(text: str) -> str:
return colors.bold(text) if USE_COLOR else text


ColorSpec: TypeAlias = Union[str, int, tuple[int, int, int]]
ColorSpec: TypeAlias = Union[str, int, Tuple[int, int, int]]


def color(
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ backend = "setuptools.build_meta"

[project]
name = "dev-cmd"
requires-python = ">=3.9"
requires-python = ">=3.8"
dependencies = [
"aioconsole",
"ansicolors",
Expand All @@ -20,7 +20,7 @@ readme = "README.md"
license = {file = "LICENSE"}
keywords = ["automation", "command", "runner", "testing"]
classifiers = [
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
Expand All @@ -29,7 +29,8 @@ classifiers = [
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"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 Down Expand Up @@ -107,6 +108,7 @@ lint = ["ruff", "check", "--fix"]
check-lint = ["ruff", "check"]

type-check = ["mypy", "dev_cmd", "tests"]
type-check-38 = ["mypy", "--python-version", "3.8", "dev_cmd", "tests"]
type-check-39 = ["mypy", "--python-version", "3.9", "dev_cmd", "tests"]
type-check-310 = ["mypy", "--python-version", "3.10", "dev_cmd", "tests"]
type-check-311 = ["mypy", "--python-version", "3.11", "dev_cmd", "tests"]
Expand All @@ -129,6 +131,7 @@ checks = [
# Parallelizing the type checks and test is safe (they don't modify files), and it nets a ~3x
# speedup over running them all serially.
[
"type-check-38",
"type-check-39",
"type-check-310",
"type-check-311",
Expand Down
9 changes: 7 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e88e20

Please sign in to comment.