-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
51 lines (38 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SPHINX_BUILDARGS=
# Note that these are keys generated by the docker rsconnect service, so are
# not really secrets. They are saved to json to make it easy to use rsconnect
# as multiple users from the tests
RSC_API_KEYS=pins/tests/rsconnect_api_keys.json
dev: pins/tests/rsconnect_api_keys.json
dev-start:
docker compose up -d
docker compose exec -T rsconnect bash < script/setup-rsconnect/add-users.sh
# curl fails with error 52 without a short sleep....
sleep 5
curl -s --retry 10 --retry-connrefused http://localhost:3939
dev-stop:
docker compose down
rm -f $(RSC_API_KEYS)
$(RSC_API_KEYS): dev-start
python script/setup-rsconnect/dump_api_keys.py $@
README.md:
quarto render README.qmd
test: test-most test-rsc
test-most:
pytest pins -m "not fs_rsc and not fs_s3" --workers 4 --tests-per-worker 1 -vv
test-rsc:
pytest pins -m "fs_rsc"
docs-build:
cd docs && python -m quartodoc build --verbose
cd docs && quarto render
docs-clean:
rm -rf docs/_build docs/api/api_card
requirements/dev.txt: pyproject.toml
@# allows you to do this...
@# make requirements | tee > requirements/some_file.txt
@pip-compile pyproject.toml --rebuild --extra doc --extra test --extra check --output-file=- > $@
binder/requirements.txt: requirements/dev.txt
cp $< $@
ci-compat-check:
# TODO: mark as dummy
$(MAKE) -C script/$@