File tree Expand file tree Collapse file tree 26 files changed +2166
-3267
lines changed
Expand file tree Collapse file tree 26 files changed +2166
-3267
lines changed Original file line number Diff line number Diff line change 1919 status : {}
2020jobs :
2121 automerge :
22- runs-on : ubuntu-20.04
22+ runs-on : ubuntu-latest
2323 steps :
2424 - name : automerge
25- uses : " pascalgn/automerge-action@v0.12.0 "
25+ uses : " pascalgn/automerge-action@v0.16 "
2626 env :
2727 GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change 77 create_pull_request :
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v3
10+ - uses : actions/checkout@v4
1111 with :
1212 ref : main
1313 - name : Reset main branch with dev changes
1414 run : |
1515 git fetch origin dev:dev
1616 git reset --hard dev
1717 - name : Create pull request from dev to main
18- uses : peter-evans/create-pull-request@v3
18+ uses : peter-evans/create-pull-request@v7
1919 with :
2020 token : ${{ secrets.GITHUBACTIONS }}
2121 title : Merge dev into main
Original file line number Diff line number Diff line change @@ -12,31 +12,29 @@ jobs:
1212 strategy :
1313 matrix :
1414 python-version :
15- - " 3.10 "
15+ - " 3.12 "
1616 steps :
1717 - uses : actions/cache@v4
1818 with :
1919 path : ~/.cache/pip
2020 key : ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
2121 restore-keys : |
2222 ${{ runner.os }}-pip-
23- - uses : actions/checkout@v3
23+ - uses : actions/checkout@v4
2424 - name : Set up Python ${{ matrix.python-version }}
25- uses : actions/setup-python@v2
25+ uses : actions/setup-python@v5
2626 with :
2727 python-version : ${{ matrix.python-version }}
2828 - name : Install dependencies
2929 run : |
30- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
31- icon pt -ic
32- ~/.local/bin/poetry env use python3
33- ~/.local/bin/poetry install -E all
34- - name : Lint with pylint
30+ curl -LsSf https://astral.sh/uv/install.sh | sh
31+ ~/.local/bin/uv sync --all-extras
32+ - name : Lint with ruff
3533 run : |
36- ~/.local/bin/poetry run pylint -E aiutil/ tests/
37- # - name: Lint with pytype
38- # run: |
39- # ~/.local/bin/poetry run pytype ./
34+ ~/.local/bin/uv run ruff check aiutil/ tests/
35+ - name : Lint with pytype
36+ run : |
37+ ~/.local/bin/uv run pytype ./
4038 - name : Check code format
4139 run : |
42- ~/.local/bin/poetry run black --check ./
40+ ~/.local/bin/uv run ruff format --check .
Original file line number Diff line number Diff line change @@ -12,18 +12,17 @@ jobs:
1212 pull-requests : write
1313 contents : write
1414 steps :
15- - uses : actions/checkout@v3
15+ - uses : actions/checkout@v4
1616 - name : Set up Python
17- uses : actions/setup-python@v2
17+ uses : actions/setup-python@v5
1818 with :
19- python-version : " 3.10 "
20- - name : Install Poetry
19+ python-version : " 3.12 "
20+ - name : Install uv
2121 run : |
22- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
23- icon pt -ic
22+ curl -LsSf https://astral.sh/uv/install.sh | sh
2423 - name : Build Package
2524 run : |
26- ~/.local/bin/poetry build
25+ ~/.local/bin/uv build
2726 ls -lha dist/
2827 - uses : " marvinpinto/action-automatic-releases@latest"
2928 with :
Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ jobs:
1212 pull-requests : write
1313 contents : write
1414 steps :
15- - uses : actions/checkout@v3
15+ - uses : actions/checkout@v4
1616 - name : Set up Python
17- uses : actions/setup-python@v2
17+ uses : actions/setup-python@v5
1818 with :
19- python-version : " 3.10 "
20- - name : Install Poetry
19+ python-version : " 3.12 "
20+ - name : Install uv
2121 run : |
22- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
23- icon pt -ic
22+ curl -LsSf https://astral.sh/uv/install.sh | sh
2423 - name : Build and Pubblish Package to PyPI
2524 run : |
26- ~/.local/bin/poetry publish -- build -u __token__ -p ${{ secrets.PYPI_AIUTIL }}
25+ ~/.local/bin/uv build
2726 ls -lha dist/
27+ ~/.local/bin/uv publish -u __token__ -p ${{ secrets.PYPI_AIUTIL }}
2828 - uses : " marvinpinto/action-automatic-releases@latest"
2929 with :
3030 repo_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -15,22 +15,21 @@ jobs:
1515 python-version :
1616 - " 3.10"
1717 - " 3.11"
18+ - " 3.12"
1819 steps :
19- - uses : actions/checkout@v3
20+ - uses : actions/checkout@v4
2021 - name : Set up Python ${{ matrix.python-version }}
21- uses : actions/setup-python@v2
22+ uses : actions/setup-python@v5
2223 with :
2324 python-version : ${{ matrix.python-version }}
2425 - name : Install dependencies
2526 run : |
2627 curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
27- icon docker -ic --user-to-docker ""
28- icon pt -ic
29- ~/.local/bin/poetry lock -n
30- ~/.local/bin/poetry env use python3
31- ~/.local/bin/poetry install -E all
28+ #icon docker -ic --user-to-docker ""
29+ curl -LsSf https://astral.sh/uv/install.sh | sh
30+ ~/.local/bin/uv sync
3231 brew install libmagic
3332 brew link libmagic
3433 - name : Test with pytest
3534 run : |
36- ~/.local/bin/poetry run pytest
35+ ~/.local/bin/uv run pytest
Original file line number Diff line number Diff line change @@ -14,19 +14,17 @@ jobs:
1414 python-version :
1515 - " 3.10"
1616 - " 3.11"
17+ - " 3.12"
1718 steps :
18- - uses : actions/checkout@v3
19+ - uses : actions/checkout@v4
1920 - name : Set up Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v2
21+ uses : actions/setup-python@v5
2122 with :
2223 python-version : ${{ matrix.python-version }}
2324 - name : Install dependencies
2425 run : |
25- curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash -
26- icon pt -ic
27- ~/.local/bin/poetry lock -n
28- ~/.local/bin/poetry env use python3
29- ~/.local/bin/poetry install -E all
26+ curl -LsSf https://astral.sh/uv/install.sh | sh
27+ ~/.local/bin/uv sync
3028 - name : Test with pytest
3129 run : |
32- ~/.local/bin/poetry run pytest
30+ ~/.local/bin/uv run pytest
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{ pkgs , ...} : {
22 channel = "stable-24.11" ;
33 packages = with pkgs ; [
4+ util-linux
45 bash-completion
56 gitui
67 neovim
78 ripgrep
89 rm-improved
910 bat
10- poetry
11+ fzf
12+ uv
1113 ] ;
1214 env = {
1315 PATH = [
2527 #onCreate = {
2628 #}
2729 onStart = {
28- poetry-project = ''
29- poetry config --local virtualenvs.in-project true
30- poetry install
31- '' ;
32- icon = ''
30+ icon = ''
3331 curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | bash -s -- \
3432 -d ~/.local/bin
3533 '' ;
Original file line number Diff line number Diff line change 11"""A utils Python package for data scientists."""
22
3- from . import poetry
4-
5- __version__ = "0.83.0"
3+ __version__ = "0.84.0"
You can’t perform that action at this time.
0 commit comments