-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 1.17 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
.PHONY: test
configure: # does any pre-requisite installs
pip install poetry
pip install setuptools wheel
lint:
@echo "Running flake8..."
@flake8 foursight_core || echo "'flake8 foursight_core' failed."
@flake8 tests || echo "'flake8 tests' failed."
build: react
make configure
poetry install
build-noreact:
make configure
poetry install
update:
poetry update
test:
pytest -vv -m "not integrated" && pytest -vv -m "integrated"
test-for-ga:
make test
publish:
# New Python based publish script in dcicutils (2023-04-25).
poetry run publish-to-pypi
publish-for-ga:
# New Python based publish script in dcicutils (2023-04-25).
poetry run publish-to-pypi --noconfirm
.PHONY: react
react:
scripts/react_build.sh
react-run-local:
cd react ; npm start
info:
@: $(info Here are some 'make' options:)
$(info - Use 'make configure' to install poetry, though 'make build' will do it automatically.)
$(info - Use 'make build' to install dependencies using poetry.)
$(info - Use 'make test' to run tests with the normal options we use on travis)
$(info - Use 'make publish' to publish this library manually.)
$(info - Use 'make update' to update dependencies)