Changeset View
Changeset View
Standalone View
Standalone View
docs/developer-setup.rst
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
Install all the swh packages (in develop mode):: | Install all the swh packages (in develop mode):: | ||||
(swh) ~/swh-environment$ pip install pre-commit flake8 pifpaf tox wheel mypy | (swh) ~/swh-environment$ pip install pre-commit flake8 pifpaf tox wheel mypy | ||||
(swh) ~/swh-environment$ pip install $(./bin/pip-swh-packages) | (swh) ~/swh-environment$ pip install $(./bin/pip-swh-packages) | ||||
(swh) ~/swh-environment$ pip install $(./bin/pip-swh-packages --with-testing) | (swh) ~/swh-environment$ pip install $(./bin/pip-swh-packages --with-testing) | ||||
[...] | [...] | ||||
.. Note:: If you experience issues in :program:`pip` package resolution, try using | |||||
``--use-deprecated=legacy-resolver`` CLI option. | |||||
It can be set in :file:`~/.config/pip/pip.conf` until the issue is solved:: | |||||
[install] | |||||
use-deprecated=legacy-resolver | |||||
Executing unit tests | Executing unit tests | ||||
-------------------- | -------------------- | ||||
Unit tests are using the pytest_ framework, and can be executed directly or via | Unit tests are using the pytest_ framework, and can be executed directly or via | ||||
tox_. The main difference between these 2 test execution environments is: | tox_. The main difference between these 2 test execution environments is: | ||||
- When executed via tox_, all the dependencies (including swh ones) are | - When executed via tox_, all the dependencies (including swh ones) are | ||||
installed from pypi_: you test your modifications against the latest | installed from pypi_: you test your modifications against the latest | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |