Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sync target #70

Merged
merged 2 commits into from
Sep 5, 2024
Merged
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
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"--cov-report=xml"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"python.analysis.extraPaths": [
"./contrib/*"
]
}
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,32 @@ docs-watch:
clean:
rm -rf ./docs/build

sync-jumpstarter:
uv sync --all-extras --inexact

test-jumpstarter:
uv run --isolated --package jumpstarter pytest jumpstarter tests

build-jumpstarter:
uvx --from build pyproject-build --installer uv --outdir dist

sync-contrib-%: contrib/%
uv sync --all-extras --inexact --package jumpstarter_driver_$(<F)

test-contrib-%: contrib/%
uv run --isolated --package jumpstarter_driver_$(<F) pytest $<

build-contrib-%: contrib/%
uvx --from build pyproject-build --installer uv --outdir dist $<

sync-contrib: $(addprefix sync-,$(CONTRIB_TARGETS))

test-contrib: $(addprefix test-,$(CONTRIB_TARGETS))

build-contrib: $(addprefix build-,$(CONTRIB_TARGETS))

sync: sync-jumpstarter sync-contrib

test: test-jumpstarter test-contrib

build: build-jumpstarter build-contrib
Expand Down