diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-02-27 10:38:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 10:38:30 +0100 |
commit | 90dafaef06809eab8fb1dda8bc0955b959fe1e23 (patch) | |
tree | 25cf388cb8da3594e65a096ab6f0364759de6ab0 | |
parent | 5bdd5034c556d2d4986a365a666e923bccef2a94 (diff) | |
download | pylint-git-90dafaef06809eab8fb1dda8bc0955b959fe1e23.tar.gz |
Add a testutil extra-require and add gitpython to it (#5842)
Closes #5486
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | doc/whatsnew/2.13.rst | 6 | ||||
-rw-r--r-- | requirements_test_min.txt | 3 | ||||
-rw-r--r-- | setup.cfg | 3 |
4 files changed, 16 insertions, 2 deletions
@@ -43,6 +43,12 @@ Release date: TBA Closes #5322 +* Added a ``testutil`` extra require to the packaging, as ``gitpython`` should not be a dependency + all the time but is still required to use the primer helper code in ``pylint.testutil``. You can + install it with ``pip install pylint[testutil]``. + + Closes #5486 + * Added several checkers to deal with unicode security issues (see `Trojan Sources <https://trojansource.codes/>`_ and `PEP 672 <https://www.python.org/dev/peps/pep-0672/>`_ for details) that also diff --git a/doc/whatsnew/2.13.rst b/doc/whatsnew/2.13.rst index 580f0b69d..21f13c004 100644 --- a/doc/whatsnew/2.13.rst +++ b/doc/whatsnew/2.13.rst @@ -254,6 +254,12 @@ Other Changes Closes #3793 +* Added a ``testutil`` extra require to the packaging, as ``gitpython`` should not be a dependency + all the time but is still required to use the primer helper code in ``pylint.testutil``. You can + install it with ``pip install pylint[testutil]``. + + Closes #5486 + * Fixed a false positive for ``used-before-assignment`` when a named expression appears as the first value in a container. diff --git a/requirements_test_min.txt b/requirements_test_min.txt index c2c82c554..79f99044b 100644 --- a/requirements_test_min.txt +++ b/requirements_test_min.txt @@ -1,6 +1,5 @@ --e . +-e .[testutil] # astroid dependency is also defined in setup.cfg astroid==2.9.3 # Pinned to a specific version for tests pytest~=7.0 pytest-benchmark~=3.4 -gitpython>3 @@ -56,6 +56,9 @@ install_requires = typing-extensions>=3.10.0;python_version<"3.10" python_requires = >=3.6.2 +[options.extras_require] +testutil=gitpython>3 + [options.packages.find] include = pylint* |