Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ updates:
directory: /.github/workflows
schedule:
interval: monthly
cooldown:
default-days: 7
groups:
actions:
patterns:
- '*'
gha-patches:
update-types:
- patch

- package-ecosystem: uv
directory: /
schedule:
interval: monthly
cooldown:
default-days: 7
groups:
uv.lock-patches:
update-types:
- patch
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- master
pull_request:
schedule:
- cron: '1 0 * * *'
workflow_dispatch:


Expand Down Expand Up @@ -34,7 +32,8 @@ jobs:
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: '3.14'
enable-cache: false
prune-cache: false
cache-suffix: test-module
- run: uv run --group test python -c "import unyt ; unyt.test()"

test:
Expand Down Expand Up @@ -106,7 +105,7 @@ jobs:
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: false
prune-cache: false
- name: Install test env
run: uv sync --group covcheck ${{ matrix.sync-args }}
- name: Run tests
Expand Down Expand Up @@ -139,7 +138,7 @@ jobs:
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: '3.14'
enable-cache: false
prune-cache: false

- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
Expand Down Expand Up @@ -172,7 +171,7 @@ jobs:
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: '3.10'
enable-cache: false
prune-cache: false
- run: uv sync --group doc --group test
- name: Build docs
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: '3.14'
enable-cache: false
- name: Build distributions
run: uv build
- name: Publish package distributions to PyPI
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ repos:
- id: check-yaml
- id: check-toml

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.22
hooks:
- id: uv-lock

# TODO: replace this with ruff when it supports embedded python blocks
# see https://github.com/astral-sh/ruff/issues/8237
- repo: https://github.com/adamchainz/blacken-docs
Expand Down
17 changes: 6 additions & 11 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
# golang: "1.17"
commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv sync --frozen --group doc
- uv run --no-sync python -m sphinx -M html "." "_build" -W

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand All @@ -22,10 +24,3 @@ sphinx:
# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- method: pip
path: .
- requirements: docs/requirements.txt
4 changes: 0 additions & 4 deletions docs/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ requires-python = ">=3.10"
dependencies = [
"numpy>=1.21.3, <3.0",
"sympy>=1.9.0",
"packaging>=20.9",
"packaging>=22.0",
]

[project.readme]
Expand Down
2,005 changes: 2,005 additions & 0 deletions uv.lock

Large diffs are not rendered by default.