diff --git a/docs/development/environment.rst b/docs/development/environment.rst index a0b4dd17a..1a0744ba9 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -18,15 +18,14 @@ below. * `Git `_ * Checkout the OctoPrint sources from their Git repository: - * ``git clone https://github.com/foosel/OctoPrint.git`` - * ``git clone -b https://github.com/foosel/OctoPrint.git`` + * ``git clone -b devel https://github.com/foosel/OctoPrint.git`` * Enter the checked out source folder: ``cd OctoPrint`` - * Create a virtual environment in the checked out source folder to use for installing and running OctoPrint and its - dependencies (this avoids potential versioning issues for the dependencies with system wide installed - instances): + * Create a virtual environments in the checked out source folder for both Python 2.7 and Python 3.7 to use for + installing and running OctoPrint and its dependencies (this avoids potential versioning issues for the dependencies + with system wide installed instances): * PY2: ``virtualenv --python=python2 venv2`` * PY3: ``virtualenv --python=python3 venv3`` - * Activate the virtual environment: + * Activate a virtual environments: * PY2 : ``source venv2/bin/activate`` (Linux, MacOS) or ``source venv2/Scripts/activate`` (Git Bash under Windows, see below) * PY3 : ``source venv3/bin/activate`` (Linux, MacOS) or ``source venv3/Scripts/activate`` (Git Bash under Windows, see below) * Update ``pip`` in the virtual environment: @@ -43,11 +42,21 @@ When the virtual environment is activated you can then: * run the test suite from the checked out source folder via ``nosetests --with-doctest`` * build the documentation from the ``docs`` sub folder of the checked out sources via ``sphinx-build -b html . _build`` +To switch the activated virtual environment, first deactivate the currently selected one: + + * ``deactivate`` + +and then activate the other one as described above. + .. _sec-development-environment-source-linux: Linux ..... +.. todo:: + + This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development. + This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different location, please substitute accordingly. @@ -80,7 +89,7 @@ Then: .. code-block:: none cd ~/devel - git clone https://github.com/foosel/OctoPrint.git + git clone -b devel https://github.com/foosel/OctoPrint.git cd OctoPrint virtualenv venv source ./venv/bin/activate @@ -95,12 +104,16 @@ environment. Windows ....... +.. todo:: + + This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development. + This assumes you'll host your OctoPrint development checkout at ``C:\Devel\OctoPrint``. If you want to use a different location, please substitute accordingly. First download & install: - * `Python 2.7.12 Windows x86 MSI installer `_ + * `Python 2.7.15 Windows x86 MSI installer `_ * make sure to have the installer add Python to the ``PATH`` and have it install ``pip`` too @@ -130,6 +143,10 @@ Mac OS X This guide is based on the `Setup Guide for Mac OS X on OctoPrint's wiki `_. Please report back if it works for you, due to lack of access to a Mac I cannot test it myself. Thanks. +.. todo:: + + This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development. + This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different location, please substitute accordingly. @@ -168,6 +185,10 @@ You'll need a user account with administrator privileges. IDE Setup --------- +.. todo:: + + This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development. + .. todo:: Using another IDE than the ones below? Please send a diff --git a/docs/modules/users.rst b/docs/modules/users.rst index 732059f62..2cf3163f5 100644 --- a/docs/modules/users.rst +++ b/docs/modules/users.rst @@ -1,7 +1,7 @@ .. _sec-modules-users: octoprint.access.users ---------------- +---------------------- .. automodule:: octoprint.access.users :members: