Skip to content

Commit

Permalink
Switch to uv build and deps management
Browse files Browse the repository at this point in the history
  • Loading branch information
tayden committed Jan 30, 2025
1 parent ad32143 commit 5ed9bc2
Show file tree
Hide file tree
Showing 4 changed files with 1,424 additions and 1,869 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
Expand All @@ -20,25 +19,24 @@ jobs:
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Set up Python
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.10'
version: "0.5.26"
enable-cache: true

- name: Setup Poetry
uses: abatilo/actions-poetry@v2
- name: "Set up Python"
uses: actions/setup-python@v5
with:
poetry-version: 1.6.1
python-version-file: "pyproject.toml"

- name: Install dependencies
run: |
poetry update
poetry run pip install --upgrade setuptools
run: uv sync --all-extras --dev

- name: Build and publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry version ${{ env.tag }}
sed -i "s/0.0.0/${{ env.tag }}/g" kelp_o_matic/__init__.py
poetry publish --build
sed -i "s/0.0.0/${{ env.tag }}/g" kelp_o_matic/__init__.py pyproject.toml
uv build
uv publish
Loading

0 comments on commit 5ed9bc2

Please sign in to comment.