| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
|
| |
|
| |
|
|
|
| |
Adding support for SSL private keys with a password. This PR also adds support for future SSL tests.
|
| |
|
|
|
| |
Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
|
|
|
| |
Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
|
| |
|
| |
|
|
|
| |
@akx Thank you so much for this! Thanks again for introducing me to a new tool that I'm sliding into my workflow as well.
|
| |
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Co-authored-by: Anas <anas.el.amraoui@live.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* Adding vulture for static analysis
Removing dead code found previously by vulture in local runs.
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove support for end-of-life Python 2.7
Python 2.7 is end of life. It is no longer receiving bug fixes,
including for security issues. Python 2.7 went EOL on 2020-01-01. For
additional details on support Python versions, see:
Supported: https://devguide.python.org/#status-of-python-branches
EOL: https://devguide.python.org/devcycle/#end-of-life-branches
Removing support for EOL Pythons will reduce testing and maintenance
resources while allowing the library to move towards a modern Python 3
style. Python 2.7 users can continue to use the previous version of
redis-py.
Was able to simplify the code:
- Removed redis._compat module
- Removed __future__ imports
- Removed object from class definition (all classes are new style)
- Removed long (Python 3 unified numeric types)
- Removed deprecated __nonzero__ method
- Use simpler Python 3 super() syntax
- Use unified OSError exception
- Use yield from syntax
Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. All make targets are now PHONY.
2. Cleaned up the 'dev' target so that it passes --build
to docker-compose.
3. Added pypy-specific tox environments. And added a new
Dockerfile to build an image for the "test" container
that contains pypy and pypy3.
4. Added a `make clean` target. It removes containers but
requires the user to confirm.
5. Specify the depends_on order for slave -> master and
made all sentinels depend on the slave coming up. The
container running doesn't mean that redis is actually
ready though, so I wrapped the "test" target in the
Makefile with a wait script that waits until
master is responding on port 6379.
|
|
|
|
|
|
|
|
|
| |
flake8 catches a wider net of mistakes than pycodestyle and is more
commonly used by the larger community. For example, it catches unused
imports, a few of which existed. These have since been removed.
Two "noqa" comments were added. One ignores the _compat.py file as it
has a large amount of Python version specific code. The second is in
utils.py which intentionally does not use an import.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Python command line argument -b causes Python to emit a warning when
bytes and str usage is mixed. This is generally considered bad practice
as either one or the other is required. Enabling this feature during
tests helps catch them before reaching production.
The warning appeared as:
tests/test_scripting.py::TestScripting::test_eval_msgpack_pipeline_error_in_lua
.../redis-py/redis/client.py:3967: BytesWarning: str() on a bytes instance
cmd = ' '.join(imap(safe_unicode, command))
|
| |
|
|
|
|
|
|
| |
Helps identify problematic or buggy code. When a warning is displayed,
it should be analyzed and fixed.
The r and r2 fixture now close the client after the test is complete.
|
|
|
|
|
|
|
|
|
|
| |
Python 3.4 has been EOL since 2019-03-18.
Removing from the test matrix helps reduce testing resources.
For additional details on unsupported Python versions, see:
https://devguide.python.org/devcycle/#end-of-life-branches
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tox can now always be used as the test entry point and allows for
contributors to easily test the full test matrix locally.
Starting with setuptools v41.5.0 (27 Oct 2019) the `setup.py test`
command is formally deprecated. It now emits a warning on use. Prior to
this version, it use was discouraged by the setuptools developers.
Now, always use tox as the one testing entry point. It handles multiple
version of Python and Redis.
The Travis CI configuration was reworked to use tox to install
dependencies and run tests in the same manner that contributors would do
locally.
|
| |
|
|
|
|
|
|
|
|
|
| |
For details, see:
https://tox.readthedocs.io/en/latest/config.html#conf-extras
Removes the need to duplicate the version string in tox.ini. Allow
setup.py to be the single source of truth.
|
|
|
|
|
|
|
|
|
|
| |
Allows using Python version 3.7 without sudo declarations.
Travis officially added support for Xenial on 2018-11-08.
https://blog.travis-ci.com/2018-11-08-xenial-release
Add Python 3.7 to tox.ini and setup.py as well.
|
|
|
|
|
| |
Now that redis-py has removed support for EOL Pythons, can once again
run tests using the latest version of pytest.
|
|
|
|
|
|
|
|
| |
Python 3.3 is EOL. It is no longer receiving bug fixes, including for
security issues. It has been EOL since 2017-09-29. For additional
details of the status of Python versions, see:
https://devguide.python.org/#status-of-python-branches
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Python 2.6 is EOL. It is no longer receiving bug fixes, including for
security issues. It has been EOL since 2013-10-29. For additional
details of the status of Python versions, see:
https://devguide.python.org/#status-of-python-branches
For discussions on why removing Python 2.6 benefits the entire
community, please see:
https://snarky.ca/stop-using-python-2-6/
http://www.curiousefficiency.org/posts/2015/04/stop-supporting-python26.html
|
|
|
|
|
| |
Per Travis CI configuration and trove classifiers, Python 3.2 is not
supported. Remove it from tox.ini.
|