Skip to content

Commit

Permalink
add more uv!
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 committed Oct 19, 2024
1 parent b946b87 commit 4861a2c
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 20 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,11 @@ jobs:
- name: Set up Python
run: uv python install 3.13

- name: Installing distribution (dev mode)
# this adds the .so to the inner lib files so we can test
run: |
uv run --no-project ./setup.py develop
- name: Run tests
shell: bash
run: |
uv venv
uv pip install pytest coverage
uv run --no-project coverage run -m pytest
uv sync
uv run coverage run -m pytest
- name: Coverage comment
id: coverage_comment
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Installing distribution (dev mode)
# this adds the .so to the inner lib files so we can test
run: |
uv run --no-project ./setup.py develop
- name: Run tests
shell: bash
run: |
uv venv
uv pip install pytest
uv run --no-project pytest
uv sync
uv run pytest
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[project]
name = "neofoodclub.py"
version = "1.0.12"
description = "A Python implementation of functionality used in https://neofood.club"
readme = "README.md"
requires-python = ">=3.9"
dependencies = []

[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
Expand Down Expand Up @@ -49,3 +57,10 @@ quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.uv]
dev-dependencies = [
"coverage>=7.6.3",
"pytest>=8.3.3",
"setuptools-rust>=1.10.2",
]
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# /// script
# requires-python = ">=3.9"
# dependencies = [
# "setuptools-rust",
# ]
# ///
import re
from pathlib import Path

Expand Down
Loading

0 comments on commit 4861a2c

Please sign in to comment.