strong-toothbrush-37759
03/22/2022, 7:43 PMpytest-django
) which are loaded when pytest starts. When I generate a lockfile using ./pants generate-lockfile
I get pytest-django==3.10.0
but pytest-django==4.1.0
is what I need and what is written in our requirements-dev.txt
actually 🤔bitter-ability-32190
03/22/2022, 7:47 PMstrong-toothbrush-37759
03/22/2022, 7:49 PMextra_requirements
for the pants.toml
is the correct place?rapid-crayon-8232
03/22/2022, 7:49 PMpants.toml
add the extra requirements you want for pytest:
[pytest]
version = "pytest>=7.0,<8.0"
args = ["-ra -q -vv --no-header"]
extra_requirements.add = ["pytest-icdiff", "pygments", "pytest-django==4.10.0"]
lockfile = "monorepo/build-support/lockfiles/pytest.txt"
• or simply add pytest-django
(added in requirements.txt
) as a dependency to you python_test
targetstrong-toothbrush-37759
03/22/2022, 7:50 PMstrong-toothbrush-37759
03/22/2022, 8:03 PMstrong-toothbrush-37759
03/22/2022, 8:03 PM