Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Jan 20, 2025
1 parent 1d5e08c commit 1fc8774
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 128 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: 'requirements-test.txt'
- name: Run ruff
run: |
make -C python pip-install
make ruff
clippy:
if: "!contains(github.event.head_commit.message, 'skip ci')"
Expand All @@ -59,7 +68,7 @@ jobs:
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: 'python/requirements-dev.txt'
cache-dependency-path: 'python/requirements-test.txt'
- name: Main Script
run: |
make -C python pip-install
Expand Down Expand Up @@ -90,7 +99,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'python/requirements-dev.txt'
cache-dependency-path: 'python/requirements-test.txt'
- name: Run tests
run: |
make -C python pip-install
Expand Down
66 changes: 38 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@ clippy: ## Run clippy lint checks
# {{{ testing

REQUIREMENTS=\
requirements-dev.txt \
requirements-test.txt \
requirements.txt

requirements.in:
@echo "# This file is autogenerated. Do not modify it!" > $@
@$(PYTHON) -c \
'import tomllib; \
c = tomllib.load(open("python/pyproject.toml", "rb")); \
c = tomllib.load(open("pyproject.toml", "rb")); \
print("\n".join(c["build-system"]["requires"]))' >> $@
.PHONY: requirements.in

requirements-dev.txt: requirements.in pyproject.toml
requirements-test.txt: requirements.in pyproject.toml
uv pip compile --upgrade --universal --python-version '3.10' \
--extra dev \
--extra test \
-o $@ $^
.PHONY: requirements-dev.txt
.PHONY: requirements-test.txt

requirements.txt: requirements.in pyproject.toml
uv pip compile --upgrade --universal --python-version '3.10' \
Expand All @@ -89,7 +89,7 @@ pin: $(REQUIREMENTS) ## Pin dependencies versions to requirements.txt
.PHONY: pin

pip-install: ## Install pinned dependencies from requirements.txt
$(PYTHON) -m pip install -r requirements-dev.txt
$(PYTHON) -m pip install -r requirements-test.txt
$(PYTHON) -m pip install --verbose --no-build-isolation --editable .
.PHONY: pip-install

Expand Down
8 changes: 5 additions & 3 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,20 @@ dependencies = [
"numpy>=2",
]
optional-dependencies.dev = [
"mypy",
"pyproject-fmt",
"pytest",
"reuse",
"ruff",
"typos",
"uv",
]
optional-dependencies.docs = [
"sphinx>=6",
"sphinx-book-theme",
]
optional-dependencies.test = [
"mypy",
"pytest",
"ruff",
]
urls.Documentation = "https://mittagleffler.readthedocs.io"
urls.Repository = "https://github.com/alexfikl/mittagleffler"

Expand Down
Loading

0 comments on commit 1fc8774

Please sign in to comment.