Skip to content

Commit

Permalink
Rename 'testing' extra to 'dev' (#12052)
Browse files Browse the repository at this point in the history
Minor, but seems `dev` is more standard for the development extras than `testing`, being the default for tools like `poetry`.
  • Loading branch information
nicoddemus authored Mar 7, 2024
1 parent 03e5471 commit 86945f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ Here is a simple overview, with pytest-specific bits:
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
an editable install with the ``testing`` extra::
an editable install with the ``dev`` extra::

$ python3 -m venv .venv
$ source .venv/bin/activate # Linux
$ .venv/Scripts/activate.bat # Windows
$ pip install -e ".[testing]"
$ pip install -e ".[dev]"

Afterwards, you can edit the files and run pytest normally::

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies = [
'tomli>=1; python_version < "3.11"',
]
[project.optional-dependencies]
testing = [
dev = [
"argcomplete",
"attrs>=19.2",
"hypothesis>=3.56",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ setenv =
lsof: _PYTEST_TOX_POSARGS_LSOF=--lsof

xdist: _PYTEST_TOX_POSARGS_XDIST=-n auto
extras = testing
extras = dev
deps =
doctesting: PyYAML
exceptiongroup: exceptiongroup>=1.0.0rc8
Expand Down

0 comments on commit 86945f9

Please sign in to comment.