@@ -23,13 +23,15 @@ TORCH_VERSION := 2.3.1
2323TORCHAUDIO_VERSION := 2.3.1
2424PLATFORM := cu121
2525
26+ PIP_TIME_LIMIT := --uploaded-prior-to=$(shell date -u -d '14 days ago' '+% Y-% m-% dT% H:% M:% SZ')
27+
2628venv :
2729 test -d .venv || python$(PYTHON_VERSION ) -m venv .venv
2830 . .venv/bin/activate && python -m pip install --upgrade pip
29- . .venv/bin/activate && python -m pip install --upgrade wheel
31+ . .venv/bin/activate && python -m pip install --upgrade wheel $( PIP_TIME_LIMIT )
3032 . .venv/bin/activate && python -m pip install torch==$(TORCH_VERSION ) +$(PLATFORM ) torchaudio==$(TORCHAUDIO_VERSION ) +$(PLATFORM ) \
3133 --index-url https://download.pytorch.org/whl/$(PLATFORM )
32- . .venv/bin/activate && python -m pip install -e .[dev]
34+ . .venv/bin/activate && python -m pip install -e .[dev] $( PIP_TIME_LIMIT )
3335
3436dist :
3537 . .venv/bin/activate && python -m build
@@ -52,13 +54,15 @@ check: tool
5254 . .venv/bin/activate && python -m mdformat --check * .md
5355 .venv/bin/codespell
5456 ./tools/taplo/taplo fmt --check * .toml
57+ ./tools/pinact/pinact run --check .github/workflows/* .yml
5558 ./tools/yamlfmt/yamlfmt --lint * .cff * .yml .github/workflows/* .yml
5659
5760format : tool
5861 . .venv/bin/activate && python -m ruff check --fix $(PROJECT ) tests
5962 . .venv/bin/activate && python -m ruff format $(PROJECT ) tests docs/source
6063 . .venv/bin/activate && python -m mdformat * .md
6164 ./tools/taplo/taplo fmt * .toml
65+ ./tools/pinact/pinact run -u --min-age 14 .github/workflows/* .yml
6266 ./tools/yamlfmt/yamlfmt * .cff * .yml .github/workflows/* .yml
6367
6468test-all : test-example test
@@ -86,7 +90,7 @@ tool-clean:
8690update : tool
8791 . .venv/bin/activate && python -m pip install --upgrade pip
8892 @./tools/taplo/taplo get -f pyproject.toml project.optional-dependencies.dev | while read -r package; do \
89- . .venv/bin/activate && python -m pip install --upgrade " $$ package" ; \
93+ . .venv/bin/activate && python -m pip install --upgrade " $$ package" $( PIP_TIME_LIMIT ) ; \
9094 done
9195
9296clean : dist-clean doc-clean test-clean tool-clean
0 commit comments