Rename 'testing' extra to 'dev' (#12052)
Minor, but seems `dev` is more standard for the development extras than `testing`, being the default for tools like `poetry`.
This commit is contained in:
parent
03e54712dd
commit
86945f9a1f
|
@ -297,12 +297,12 @@ Here is a simple overview, with pytest-specific bits:
|
||||||
When committing, ``pre-commit`` will re-format the files if necessary.
|
When committing, ``pre-commit`` will re-format the files if necessary.
|
||||||
|
|
||||||
#. If instead of using ``tox`` you prefer to run the tests directly, then we suggest to create a virtual environment and use
|
#. If instead of using ``tox`` you prefer to run the tests directly, then we suggest to create a virtual environment and use
|
||||||
an editable install with the ``testing`` extra::
|
an editable install with the ``dev`` extra::
|
||||||
|
|
||||||
$ python3 -m venv .venv
|
$ python3 -m venv .venv
|
||||||
$ source .venv/bin/activate # Linux
|
$ source .venv/bin/activate # Linux
|
||||||
$ .venv/Scripts/activate.bat # Windows
|
$ .venv/Scripts/activate.bat # Windows
|
||||||
$ pip install -e ".[testing]"
|
$ pip install -e ".[dev]"
|
||||||
|
|
||||||
Afterwards, you can edit the files and run pytest normally::
|
Afterwards, you can edit the files and run pytest normally::
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ dependencies = [
|
||||||
'tomli>=1; python_version < "3.11"',
|
'tomli>=1; python_version < "3.11"',
|
||||||
]
|
]
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
testing = [
|
dev = [
|
||||||
"argcomplete",
|
"argcomplete",
|
||||||
"attrs>=19.2",
|
"attrs>=19.2",
|
||||||
"hypothesis>=3.56",
|
"hypothesis>=3.56",
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -56,7 +56,7 @@ setenv =
|
||||||
lsof: _PYTEST_TOX_POSARGS_LSOF=--lsof
|
lsof: _PYTEST_TOX_POSARGS_LSOF=--lsof
|
||||||
|
|
||||||
xdist: _PYTEST_TOX_POSARGS_XDIST=-n auto
|
xdist: _PYTEST_TOX_POSARGS_XDIST=-n auto
|
||||||
extras = testing
|
extras = dev
|
||||||
deps =
|
deps =
|
||||||
doctesting: PyYAML
|
doctesting: PyYAML
|
||||||
exceptiongroup: exceptiongroup>=1.0.0rc8
|
exceptiongroup: exceptiongroup>=1.0.0rc8
|
||||||
|
|
Loading…
Reference in New Issue