forked from locustio/locust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.42 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
test:
tox
.PHONY: build
build: setup_dependencies
rm -rf dist/* && poetry build && ./rename-wheel.sh
install: setup_dependencies
poetry install --with dev
setup_dependencies: check-poetry check-yarn
poetry config virtualenvs.create false
poetry self add "poetry-dynamic-versioning[plugin]"
.SILENT:
.PHONY: check-poetry
check-poetry:
command -v poetry >/dev/null 2>&1 || { echo >&2 "Locust requires the poetry binary to be available in this shell to build the Python package.\nSee: https://docs.locust.io/en/stable/developing-locust.html#install-locust-for-development"; exit 1; }
.SILENT:
.PHONY: check-yarn
check-yarn:
command -v yarn >/dev/null 2>&1 || { echo >&2 "Locust requires the yarn binary to be available in this shell to build the web front-end.\nSee: https://docs.locust.io/en/stable/developing-locust.html#making-changes-to-locust-s-web-ui"; exit 1; }
frontend_build:
yarn webui:install && yarn webui:build
release: build
twine upload dist/*
setup_docs_dependencies:
SKIP_PRE_BUILD=true poetry install --with docs
build_docs: setup_docs_dependencies
sphinx-build -b html docs/ docs/_build/
# This command can be used to serve the built documentation at http://localhost for
# easier offline viewing
.SILENT:
.PHONY: serve_docs
serve_docs:
echo "Serving docs at http://localhost:80"
python -m http.server 80 -d docs/_build
changelog:
@echo "Not supported any more. Run ./generate_changelog.py <version_number> instead!"