Skip to content

Commit 15aabbd

Browse files
authored
Merge pull request #438 from legendu-net/3.13
Support Python 3.13
2 parents 25c3f98 + 9ec62df commit 15aabbd

File tree

13 files changed

+612
-210
lines changed

13 files changed

+612
-210
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- name: Lint with ruff
3333
run: |
3434
~/.local/bin/uv run ruff check aiutil/ tests/
35-
- name: Lint with pytype
36-
run: |
37-
~/.local/bin/uv run pytype ./
35+
#- name: Lint with pytype
36+
# run: |
37+
# ~/.local/bin/uv run pytype ./
3838
- name: Check code format
3939
run: |
4040
~/.local/bin/uv run ruff format --check .

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: release
22
on:
3-
push:
4-
tags:
5-
- v*
3+
release:
4+
types: [published]
5+
#push:
6+
# tags: ["v*"]
67
jobs:
78
release:
89
name: Release

.github/workflows/test_macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- "3.10"
1717
- "3.11"
1818
- "3.12"
19+
- "3.13"
1920
steps:
2021
- uses: actions/checkout@v4
2122
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/test_ubuntu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- "3.10"
1616
- "3.11"
1717
- "3.12"
18+
- "3.13"
1819
steps:
1920
- uses: actions/checkout@v4
2021
- name: Set up Python ${{ matrix.python-version }}

.idx/dev.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{pkgs, ...}: {
22
channel = "stable-24.11";
33
packages = with pkgs; [
4+
ncurses
45
util-linux
6+
clang
57
file
68
bash-completion
79
gitui
@@ -25,14 +27,14 @@
2527
"ms-python.debugpy"
2628
];
2729
workspace = {
28-
#onCreate = {
29-
#}
30-
onStart = {
30+
onCreate = {
3131
icon = ''
3232
curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | bash -s -- \
3333
-d ~/.local/bin
3434
'';
3535
};
36+
onStart = {
37+
};
3638
};
3739
# Enable previews and customize configuration
3840
previews = {};

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is a Python pacakage that contains misc utils for AI/ML.
1414
- `aiutil.cv`: some more tools (in addition to OpenCV) for image processing
1515
- `aiutil.shell`: parse command-line output to a pandas DataFrame
1616
- `aiutil.shebang`: auto correct SheBang of scripts
17-
- `aiutil.poetry`: tools for making it even easier to manage Python project using Poetry
17+
- `aiutil.pydev`: tools for making it even easier to manage Python project
1818
- `aiutil.pdf`: easy and flexible extracting of PDF pages
1919
- `aiutil.memory`: query and consume memory to a specified range
2020
- `aiutil.notebook`: Jupyter/Lab notebook related tools

aiutil/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _split_dir_1(
158158
path.rename(desdir / path.name)
159159

160160

161-
def find_images(root_dir: str | Path | list[str] | list[Path]) -> list[Path]:
161+
def find_images(root_dir: str | Path | list[str | Path]) -> list[Path]:
162162
"""Find all PNG images in a (sequence) of dir(s) or its/their subdirs.
163163
164164
:param root_dir: A (list) of dir(s).

0 commit comments

Comments
 (0)