Skip to content

Commit f1f017d

Browse files
authored
tox-dev#488 document developing the project in PyCharm (tox-dev#713)
1 parent 6b16b09 commit f1f017d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CHANGELOG
22
=========
33

4-
Versions follow `Semantic Versioning <http://semver.org/>`_ (<major>.<minor>.<patch>).
4+
Versions follow `Semantic Versioning <https://semver.org/>`_ (<major>.<minor>.<patch>).
55

66
Backward incompatible (breaking) changes will only be introduced in major versions
77
with advance notice in the **Deprecations** section of releases.

doc/developers.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ This section contains information for users who want to extend the tox source co
77
.. contents::
88
:local:
99

10+
PyCharm
11+
-------
12+
1. To generate the **project interpreter** you can use ``tox -rvvve dev``.
13+
2. For tests we use **pytest**, therefore change the `Default test runner <https://www.jetbrains.com/help/pycharm/python-integrated-tools.html>`_ to ``pytest``.
14+
3. In order to be able to **debug** tests which create
15+
a virtual environment (the ones in ``test_z_cmdline.py``) one needs to disable the PyCharm feature
16+
`Attach to subprocess automatically while debugging <https://www.jetbrains.com/help/pycharm/python-debugger.html>`_
17+
(because virtualenv creation calls via subprocess to the ``pip`` executable, and PyCharm rewrites all calls to
18+
Python interpreters to attach to its debugger - however, this rewrite for pip makes it to have bad arguments:
19+
``no such option --port``).
20+
1021
Multiple Python versions on Windows
1122
-----------------------------------
1223
In order to run the unit tests locally all Python versions enlisted in ``tox.ini`` need to be installed.

0 commit comments

Comments
 (0)