-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (29 loc) · 946 Bytes
/
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
.PHONY: build
configure:
pip install --upgrade pip
pip install poetry
update:
poetry update
build:
make configure
poetry install
test:
poetry run pytest -vv
help:
@make info
clean:
rm -rf *.egg-info
publish:
poetry run publish-to-pypi
publish-for-ga:
# Need this poetry install first for some reason in GitHub Actions, otherwise getting this:
# Warning: 'publish-to-pypi' is an entry point defined in pyproject.toml, but it's not installed as a script. You may get improper `sys.argv[0]`.
# Only a warning, but then it does not find dcicutils for some reason.
poetry install
poetry run publish-to-pypi --noconfirm
info:
@: $(info Here are some 'make' options:)
$(info - Use 'make configure' to configure the repo by installing poetry.)
$(info - Use 'make update' to update dependencies and the lock file.)
$(info - Use 'make build' to install entry point commands.)
$(info - Use 'make test' to run tests.)