forked from locustio/locust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dispatch_typing_strict_optional
- Loading branch information
Showing
31 changed files
with
966 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,5 @@ yarn-error.log | |
.venv | ||
.DS_Store | ||
.python-version | ||
poetry.lock | ||
locust/webui/dist/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,46 @@ | ||
test: | ||
tox | ||
|
||
build: | ||
rm -f dist/* && python3 -m pip install --upgrade build && python3 -m build . | ||
.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/* | ||
|
||
build_docs: | ||
setup_docs_dependencies: | ||
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!" | ||
|
||
sass_watch: | ||
sass --watch locust/static/sass:locust/static/css | ||
|
||
sass_build: | ||
sass --update locust/static/sass:locust/static/css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.