-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove generated front end bundle * add poetry and front end dist to vcs ignore * update build system manifest for poetry - Modify pyproject.toml file for poetry build system - Adds build script to generate front end as part of poetry build - Adds renaming script to remove architecture info from wheel file name - Updates Makefile to call the correct build steps with `make build` * chmod on release renaming script * re-add wheel extension to changed file name * ensure vsc autoversioning plugin * ensure vcs auto versioning plugin * revert vscode settings * add local dev install command * add version file to package output * only include poetry lock in sdist * run build setup as one shell * check if yarn is installed before building * deny poetry venvs creation * remove poetry installation and just check for poetry and yarn * update URLs for related info * Ensure spawning_complete happens only once on workers. * Update various test cases for new spawning_complete behavior. * Simplify additional test cases using the new get_messages function. * Set worker_state to 'running' in start_worker (this used to be by spawning_complete before #2728, but now that only happens once *all* workers have finished) * Simplify semaphore_wait example * Reverse accidental change * Update WorkerRunner.state when spawn cycle is done (it used to rely on the event happening) * Further simplify example * Rewrite confusing error messages if someone accesses an HTTP Web UI using https * Convert report time to locale time * Update HTML report tests * Use requests 2.32.2 or higher for Python 3.12, fixes #2555 * Upgrade Sphinx to latest version * Add to extensions also? Mentioned in https://sphinx-rtd-theme.readthedocs.io/en/stable/installing.html#how-to-install-and-use-the-theme * hash anchors in setup docs pages * testing version of pep440 generator * remove dist * ignore dist contents * include changes to pyproject from main - requests version * Remove unnecessary python https://sphinx-rtd-theme.readthedocs.io/en/stable/installing.html * Downgrade docutils to officially supported * Restore theme name * Fix ruff error * Rename css options * Conform to style * Add timestamp to chart tooltip * Add zoom to echarts * Update test * Fix empty timestamp formatting * Round total_avg_response_time from history * Reduce CSV_STATS_FLUSH_INTERVAL_SEC to 5 seconds by default (more reasonable in the time of SSD:s :) and remove it from the docs (because it will only rarely need to be adjusted, and increasing it is a very unusual need) * Dial back the API TOC * doc formatting fix * Modify timestamp generation to remove deprecation warning * Add newline at the end of the file * Fix incorrect error message detection for https requests introduced in 84ada19 * update build system manifest for poetry - Modify pyproject.toml file for poetry build system - Adds build script to generate front end as part of poetry build - Adds renaming script to remove architecture info from wheel file name - Updates Makefile to call the correct build steps with `make build` * remove merge object * test commit distance * jinja templating for format number * simple vesion formatting * take a stab at updating workflows for poetry * might as well add discussions forum while I'm here * add docs serve command to makefile * developing locust docs page * make readme and pyproject align in terms of URLs * remove unused py version in wheel * adjust dockerfile for poetry build * add dev dependency group * docs dependencies * docs dependencies and readme * venv for tests * RTD config for versioning * rtd step * don't run the build script on the remote * rtd * tests and tox * tox fixes * progress on CI runners locally * skip front end build * in-progress * run on remotes not my poor laptop * run on remotes not my poor laptop * ruff and mypy version * yarn timeout for windows, update mypy * windows plz * windows plz * add mypy as a dev dependency * tests * testing if this is actually a shell thing * increase fetch depth for dunamai versioning * I know what the problem is at least * test windows * tox install * revert vs code settings * remove oneshell directive from old installation process * Update maintainers and authors * move web ui to correct location * update file exclusions * skip fe build in fail-fast test * pin some version dependencies * update tox version * add wheel renaming to prepublishing steps --------- Co-authored-by: Lars Holmberg <[email protected]> Co-authored-by: Andrew Baldwin <[email protected]> Co-authored-by: Sam Wright <[email protected]> Co-authored-by: Lars Holmberg <[email protected]> Co-authored-by: JavierUhagón <[email protected]>
- Loading branch information
1 parent
0e490ac
commit 0da8fa1
Showing
21 changed files
with
309 additions
and
196 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
network-timeout 600000 |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import subprocess | ||
|
||
|
||
def build() -> None: | ||
if os.environ.get("SKIP_PRE_BUILD", "") == "true": | ||
print("Skipping front end build...") | ||
return | ||
print("Building front end...") | ||
subprocess.run(["make", "frontend_build"]) | ||
|
||
|
||
if __name__ == "__main__": | ||
build() |
Oops, something went wrong.