-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update geventhttpclient #796
Conversation
if a TaskSet has an `on_stop` method, it will be run before the proccess exits. It will also look for a property on the class named `always_run_on_stop`, which if True will run regardless if the `on_start` method finished.
This should also take care of the greenlets
We want to make sure order is perserved
They were used in a previous commit, but are not used any more
Removed always_run_on_stop variable as it is no longer used
Adding unit to Response Time chart
update README with http urls
Adds support for setup, teardown, and on_stop methods
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.
Wheels are the new standard of python distribution. Advantages of wheels includes: - Faster installation - Avoids arbitrary code execution for installation by avoiding setup.py - Allows better caching for testing and continuous integration - Creates .pyc files as part of installation to ensure they match the python interpreter used - More consistent installs across platforms and machines As locust is a pure Python package (no C files) for both Python 2 & 3, the wheel can be distributed as universal. When you wouldd normally run `python setup.py sdist upload`, run instead `python setup.py sdist bdist_wheel upload`. The wheel includes the LICENSE file through the [metadata] attribute license_file. For additional information on Python wheels, see: https://pythonwheels.com/ For the detailed PEP, see: https://www.python.org/dev/peps/pep-0427/
Slightly speed up builds and reduce load on PyPI servers. For more information, see: https://docs.travis-ci.com/user/caching/#pip-cache
response.content is a byte string. It should be compared against other byte strings. To examine the response content as text, use the response.text attribute. Fixes warnings when Python is passed the -b argument (Issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str.) BytesWarning: str() on a bytes instance For additional information on the -b argument, see: https://docs.python.org/3/using/cmdline.html#cmdoption-b For additional information on response.text, see: http://docs.python-requests.org/en/master/api/#requests.Response.text
The dependency pyzmq is already listed in setup.py. Tox will install all package dependencies by default. The dependencies do not need to be respecified in tox.ini. Remove the redundant dependency specification.
The environment variables, CI TRAVIS TRAVIS_* TOXENV, do not influence locust nor its tests. Keep the tox configuration minimal by excluding them. Avoids any future unexpected differences between CI and local test runs.
drop unitt2 and use tox in 'make test' target
* [docs] crank up maxdepth for the index page * [docs] move changelog to the end
Docs: update test statistics page with example responses
Added user-defined wait_function to locust and TaskSet. Fixes #18.
Introduce **kwargs to request_success/failure parameter list
Support for Python 2.6 was previously removed from Locust. This removes the leftover compatibility workarounds that were put in place for Python 2.6's outdated unittest module.
@heyman Hi, I merged this on my own PC and using
And if I use And, when I'm not using
You may check the code of |
Enable pip cache in Travis CI
Codecov Report
@@ Coverage Diff @@
## geventhttpclient #796 +/- ##
===================================================
- Coverage 68.63% 66.1% -2.54%
===================================================
Files 15 14 -1
Lines 1540 1422 -118
Branches 233 224 -9
===================================================
- Hits 1057 940 -117
- Misses 429 431 +2
+ Partials 54 51 -3
Continue to review full report at Codecov.
|
docs: Syntax highlight code and commands
Distribute package as a universal wheel
Our workflow has generally used Pull Requests to merge into master, not for merging master onto other dev branches on behalf of someone else... so this PR kinda confused me. @heyman can you update your geventhttpclient branch with latest from master? (either via this PR or just merging your local and pushing directly) @ityoung for reference, we have #713 open for merging the geventhttpclient branch to master once ready. |
@cgoldberg Yes I found #713 , and I found the branch @heyman I have merged from master on my local computer, and found some problem, hope you can fix that, it's a real good work! |
* Removing py33 from tox; no longer supported by TravisCI * Removing py33 from Travis conf; no longer supported * Change unsupported wsgi to pywsgi * Remove reference to Python 3.3, no longer supported.
I create an issue #795 before, and found that can be merge straightly with no conflict.. awkward >_<
hope to be merged. @heyman