forked from ekiefl/pooltool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (27 loc) · 746 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
# Load environment variables from the `.env` file if it exists.
ifneq (,$(wildcard .env))
include .env
endif
.PHONY: docs
docs:
$(MAKE) -C docs/ clean-and-build-html
$(MAKE) -C docs/ view-html
.PHONY: clean
clean:
rm -rf dist
.PHONY: build
build: clean
poetry build
# Note: `poetry` does not appear to read the `POETRY_PYPI_TOKEN_<NAME>` environment variable,
# so we need to pass it explicitly in these publishing commands.
.PHONY: build-and-test-publish
build-and-test-publish: build
poetry publish \
--repository pypi-test \
--username __token__ \
--password ${POETRY_PYPI_TOKEN_PYPI_TEST}
.PHONY: build-and-publish
build-and-publish: build
poetry publish \
--username __token__ \
--password ${POETRY_PYPI_TOKEN_PYPI}