Skip to content

Commit

Permalink
Drop 3.8 and add 3.13 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Nov 8, 2024
1 parent 02600bb commit a950dba
Show file tree
Hide file tree
Showing 10 changed files with 446 additions and 163 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
build:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -57,6 +57,8 @@ jobs:
env:
COVERAGE_RUN: True
- name: Upload report to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: gaogaotiantian/objprint
file: ./coverage.xml
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
lint:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install flake8
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
deploy-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ name = "objprint"
authors = [{name = "Tian Gao", email = "[email protected]"}]
description = "A library that can print Python objects in human readable format"
readme = "README.md"
requires-python = ">=3.6"
requires-python = ">=3.9"
license = {file = "LICENSE"}
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"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",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent"
Expand Down
4 changes: 2 additions & 2 deletions src/objprint/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
def add_objprint(
orig_class: None = None,
format: str = "string", **kwargs) -> Callable[[T], T]:
...
... # pragma: no cover


@overload
def add_objprint(
orig_class: T,
format: str = "string", **kwargs) -> T:
...
... # pragma: no cover


def add_objprint(
Expand Down
2 changes: 2 additions & 0 deletions src/objprint/executing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Get information about what a frame is currently doing. Typical usage:
import executing
node = executing.Source.executing(frame).node
# node will be an AST node or None
"""
Expand Down
Loading

0 comments on commit a950dba

Please sign in to comment.