chore: switch from poetry to uv

This commit is contained in:
monosans
2024-10-01 15:53:42 +03:00
parent ab1ed88d19
commit 67fb516536
8 changed files with 1369 additions and 1516 deletions
+5 -8
View File
@@ -13,7 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx run pre-commit run --all-files
- uses: astral-sh/setup-uv@v3
- run: uv tool run --from pre-commit@latest --with pre-commit-uv --no-cache --python 3.12 pre-commit run --all-files
build:
strategy:
matrix:
@@ -33,14 +34,10 @@ jobs:
attestations: write
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
with:
python-version: "3.12"
cache: poetry
check-latest: true
- run: poetry install --only=main,nuitka --sync --no-root --extras=non-termux --no-interaction
- run: poetry run --no-interaction python -m nuitka --standalone --python-flag='-m' --assume-yes-for-downloads proxy_scraper_checker
enable-cache: true
- run: uv run --extra non-termux --extra nuitka --no-dev --frozen --python 3.12 nuitka --standalone --python-flag='-m' --assume-yes-for-downloads --lto=yes proxy_scraper_checker
- run: mv config.toml proxy_scraper_checker.dist/
- uses: actions/attest-build-provenance@v1
with: