Skip to content

Commit

Permalink
Use uv for packaging and update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 28, 2024
1 parent 37c2cd6 commit 8444432
Show file tree
Hide file tree
Showing 6 changed files with 3,145 additions and 3,861 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
- 'docs/**'

jobs:
build:
lint:
name: Lint

runs-on: ubuntu-latest

steps:
Expand All @@ -18,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: '3.12'
cache: 'pip'

- name: Lint with ruff
Expand Down
35 changes: 15 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ on:
name: Create Release

jobs:
build:
name: Build wheels
runs-on: ubuntu-latest
release:
name: Build and publish

strategy:
matrix:
python-version: ['3.11']
runs-on: ubuntu-latest

permissions:
contents: write
Expand All @@ -23,27 +20,25 @@ jobs:
uses: actions/checkout@v4

- name: Create release
uses: softprops/action-gh-release@v2
uses: taiki-e/create-gh-release-action@v1
with:
title: lvmguider $version
changelog: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
name: lvmguider ${{ github.ref_name }}
enable-cache: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel build
- name: Build wheels
run: |
pyproject-build -w
python-version: '3.12'

- name: Build source
- name: Build source and dist
run: |
pyproject-build -s
uv build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Next version

### ⚙️ Engineering

* Use `uv` for packaging and update workflows.


## 0.5.4 - July 23, 2024

### ✨ Improved
Expand Down
Loading

0 comments on commit 8444432

Please sign in to comment.