@@ -22,14 +22,30 @@ Building & Installing
2222
2323The following assumes that the commands are executed from the root of the repository:
2424
25- - The project can be built and installed with ``python setup.py build `` and
26- ``python setup.py install ``.
27- - The unit tests can be run with ``python setup.py test ``. The tests can be run with ``python2 ``,
28- ``python3 ``, ``pypy `` or ``pypy3 `` to test with other python versions, if they are installed.
29- Maybe, you need to execute ``pip3 install python-can[test] `` (or only ``pip `` for Python 2),
30- if some dependencies are missing.
31- - The docs can be built with ``sphinx-build doc/ doc/_build ``. Appending ``-n `` to the command
32- makes Sphinx complain about more subtle problems.
25+ The project can be built with::
26+
27+ pip install wheel
28+ python setup.py sdist bdist_wheel
29+
30+ The project can be installed in editable mode with::
31+
32+ pip install -e .
33+
34+ The unit tests can be run with::
35+
36+ pip install tox
37+ tox
38+
39+ The documentation can be built with::
40+
41+ pip install -r doc/doc-requirements.txt
42+ python -m sphinx -an doc build
43+
44+ The linters can be run with::
45+
46+ pip install -r requirements-lint.txt
47+ pylint --rcfile=.pylintrc-wip can/**.py
48+ black --check --verbose can
3349
3450
3551Creating a new interface/backend
@@ -81,7 +97,7 @@ Creating a new Release
8197- Update `CONTRIBUTORS.txt ` with any new contributors.
8298- For larger changes update ``doc/history.rst ``.
8399- Sanity check that documentation has stayed inline with code.
84- - Create a temporary virtual environment. Run ``python setup.py install `` and ``python setup.py test ``.
100+ - Create a temporary virtual environment. Run ``python setup.py install `` and ``tox ``.
85101- Create and upload the distribution: ``python setup.py sdist bdist_wheel ``.
86102- Sign the packages with gpg ``gpg --detach-sign -a dist/python_can-X.Y.Z-py3-none-any.whl ``.
87103- Upload with twine ``twine upload dist/python-can-X.Y.Z* ``.
0 commit comments