Commit Graph

35 Commits

Author SHA1 Message Date
Amadeu Pereira 36b6640d65 Add locust-cloud docs 2025-04-24 11:32:56 +01:00
Matthew Quinn 496fc3d5b0
Switch to uv/hatch instead of Poetry (#3039) 2025-02-17 11:36:49 +01:00
Matthew Quinn 047682befc locking 2024-08-26 12:44:07 +01:00
Matthew Quinn cf78766a74 merge updates 2024-08-26 12:26:33 +01:00
Matthew Quinn 1059fc8680 vscode revert 2024-08-26 12:16:12 +01:00
Matthew Quinn 9d56fc9d59 sorting pipeline 2024-08-19 20:10:08 +01:00
Matthew Quinn 009db23cdb add poe to control pre-build hooks 2024-08-18 12:53:05 +01:00
Matthew Quinn 0da8fa101b
Poetry build system (#2725)
* 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 https://github.com/locustio/locust/pull/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 84ada19a22

* 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 <lars@getlocust.com>
Co-authored-by: Andrew Baldwin <andrew.baldwin44@gmail.com>
Co-authored-by: Sam Wright <samuel@plaindocs.com>
Co-authored-by: Lars Holmberg <Lars.Holmberg@svenskaspel.se>
Co-authored-by: JavierUhagón <javier.uhagontorralvo@telefonica.com>
2024-07-05 10:05:49 +02:00
Patricia Piolon 8133b86f81 new frontend build 2024-02-28 10:44:56 +01:00
fooqoo 3c419d4ac1 Update highres logo for modern ui 2024-02-23 21:32:41 +09:00
fooqoo 9b2e6e4fdd Add .venv to .gitignore for Python virtual environment exclusion 2024-01-14 17:11:40 +09:00
Lars Holmberg b0a7e74f5a Update vite to 4.5.1 2024-01-02 10:52:04 +01:00
Lars Holmberg d43db9ba2b git-ignore .env (another common name for virtualenv dir) 2023-08-07 17:32:41 +02:00
Mikael Göransson 5d5c10e2d3 added mypy to tox
fixed typing errors in locust/test.
2022-03-07 13:40:46 +01:00
Thierry Ygé 1a538cbd9b Issue #1832 Display current testscript used 2021-09-01 11:07:26 +02:00
Lars Holmberg 15ceabd7c3 Auto-generate version number using setuptools_scm and git tags 2021-08-10 10:17:54 +02:00
Jonatan Heyman 03fcd89ddf Use SASS for Locust web UI CSS
* Use SASS that is compiled to vanilla CSS and checked in to version control. This introduces a dependency on SASS for editing the styling of the Web UI.
* Add sass_watch and sass_build Make tasks
* Use Breakpoint SASS lib for media queries.
* Use javascript variables for new/edit test links.
* Use CSS gradient instead of image for top bar background.
2020-12-02 17:07:11 +01:00
Lars Holmberg 0ca66dd6b8 git-ignore .pytest_cache 2020-11-11 18:20:18 +01:00
Max Williams ec0ba781aa Add 2 things to .gitignore 2020-08-03 17:14:42 +02:00
Lars Holmberg 23eb5e033e gitignore auto generated file 2020-05-22 13:58:06 +02:00
Jonatan Heyman e40edfed6e Add config file keys to settings table in the Configuration docs.
Remove advanced configuration examples from Quickstart docs in favor of just linking to the Configuration docs.
2020-05-01 16:27:58 +02:00
Jonatan Heyman 97491e4f3c * Explicitly set environment variable names for command line options.
* Automatically generate documentation for all available environment variables.
* Rename env variables LOCUST_MASTER, LOCUST_MASTER_PORT in order to make it less likely that they collide with env vars automatically added by Kubernetes. Also change the name of LOCUST_WORKER and LOCUST_MASTER_HOST for consistency.
* Rename env variable CSVFILEBASE to LOCUST_CSV.
* Remove --csv-base-name command line option.
2020-04-28 18:41:53 +02:00
Jonatan Heyman 51547a0e58 Automatically run "locust --help" command when building docs, and include it in the Quickstart section 2020-04-07 16:37:34 +02:00
Jon Dufresne aa741c95ba Remove test dependency unittest2 (#755)
As locust no longer support Python 2.6, there is no need to install
unittest2. The unittest shipped with the Python 2.7+ stdlib is the same
as unittest2.

Results in fewer dependencies and slightly faster installation during
testing.

Python 2.6 support was removed in version 0.8.
2018-03-23 12:07:06 -04:00
Peter Darrow 96ace147d1 Add support for running tests against Python 3.3-3.5 2016-06-08 09:07:07 -03:00
Juan Facorro 3e7a63129f Removed unittest2-0.5.1-py2.7.egg dir and mock.egg file. Added to .gitignore. 2014-09-24 11:19:07 -03:00
Christopher Grebs 1fea5c3995 Merged gevent/zmq updates, ported to requests >= 1.2
* Updated gevent/zmq libraries
 * Switched to unittest2 discovery
 * Fixed some deprecated code
 * Removed requirements.txt files, everything is in setup.py
 * Fixed test_average test being not executed
2013-08-14 09:35:53 -07:00
Aaron Daubman aeda52d31b Add parent to TaskSet to enable netsted TaskSets to access parent members, various pedantry 2012-12-20 13:44:21 -05:00
Joakim Hamren 109797b803 Added Vagrant example. 2012-09-26 18:21:53 +02:00
Jonatan Heyman e61e7c1743 Ignore dist directory 2011-12-10 16:53:04 +01:00
Jonatan Heyman c97118dadd Updated setup.py description. Added python egg-stuff to .gitignore. 2011-12-05 14:25:02 +01:00
Carl Byström 19c8988932 Ignore IntelliJ project files 2011-05-20 18:44:11 +02:00
Jonatan Heyman 60a2a3b799 Removed .idea directory and added it to .gitignore 2011-02-25 14:34:35 +01:00
Jonatan Heyman 45b148b14a Added sphinx documentation for Locust 2011-02-08 23:59:02 +01:00
Jonatan Heyman e61a5e517e Added .gitignore file. 2011-01-27 19:09:05 +01:00