Skip to content

Commit d366d0c

Browse files
committed
chore: change build system to uv
1 parent 17cbc6e commit d366d0c

File tree

4 files changed

+99
-15
lines changed

4 files changed

+99
-15
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.9", "3.10", "3.11"]
19+
python-version: ["3.9", "3.10", "3.11", "3.12"]
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v3
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ matrix.python-version }}
27+
- name: Set up uv
28+
run: curl -LsSf https://astral.sh/uv/0.3.2/install.sh | sh
2729
- name: Install dependencies
28-
run: |
29-
python -m pip install pytest flit
30-
flit install -s
30+
run: uv sync --all-extras --dev
3131
- name: run test
32-
run: pytest
32+
run: uv run pytest

.github/workflows/python-publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,15 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Set up Python
26-
uses: actions/setup-python@v3
26+
uses: actions/setup-python@v4
2727
with:
2828
python-version: '3.x'
29+
- name: Set up uv
30+
run: curl -LsSf https://astral.sh/uv/0.3.2/install.sh | sh
2931
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip
32-
pip install build
33-
- name: Build package
34-
run: python -m build
32+
run: uvx --from build pyproject-build --installer uv
3533
- name: Publish package
3634
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3735
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "function-schema"
3-
version = "0.3.5"
3+
version = "0.3.6"
44
requires-python = ">= 3.9"
55
description = "A small utility to generate JSON schemas for python functions."
66
readme = "README.md"

uv.lock

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)