Skip to content

Commit

Permalink
Clean up code-blocks in tutorials/wiki/installation
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy committed Aug 18, 2018
1 parent e7e8821 commit 919ff69
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions docs/tutorials/wiki/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ On UNIX

.. code-block:: bash
$ cd ~
$ cookiecutter gh:Pylons/pyramid-cookiecutter-zodb --checkout master
cd ~
cookiecutter gh:Pylons/pyramid-cookiecutter-zodb --checkout master
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\> cd \
c:\> cookiecutter gh:Pylons/pyramid-cookiecutter-zodb --checkout master
cd \
cookiecutter gh:Pylons/pyramid-cookiecutter-zodb --checkout master
On all operating systems
^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -60,14 +60,14 @@ On UNIX

.. code-block:: bash
$ cd tutorial
cd tutorial
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\> cd tutorial
cd tutorial
Set and use a ``VENV`` environment variable
Expand All @@ -80,14 +80,14 @@ On UNIX

.. code-block:: bash
$ export VENV=~/tutorial
export VENV=~/tutorial
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\tutorial> set VENV=c:\tutorial
set VENV=c:\tutorial
Create a virtual environment
Expand All @@ -98,7 +98,7 @@ On UNIX

.. code-block:: bash
$ python3 -m venv $VENV
python3 -m venv $VENV
On Windows
^^^^^^^^^^
Expand All @@ -109,13 +109,13 @@ Python 2.7:

.. code-block:: doscon
c:\tutorial> c:\Python27\Scripts\virtualenv %VENV%
c:\Python27\Scripts\virtualenv %VENV%
Python 3.6:

.. code-block:: doscon
c:\tutorial> python -m venv %VENV%
python -m venv %VENV%
Upgrade packaging tools in the virtual environment
Expand All @@ -126,14 +126,14 @@ On UNIX

.. code-block:: bash
$ $VENV/bin/pip install --upgrade pip setuptools
$VENV/bin/pip install --upgrade pip setuptools
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\tutorial> %VENV%\Scripts\pip install --upgrade pip setuptools
%VENV%\Scripts\pip install --upgrade pip setuptools
.. _installing_project_in_dev_mode_zodb:
Expand All @@ -148,14 +148,14 @@ On UNIX

.. code-block:: bash
$ $VENV/bin/pip install -e ".[testing]"
$VENV/bin/pip install -e ".[testing]"
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\tutorial> %VENV%\Scripts\pip install -e ".[testing]"
%VENV%\Scripts\pip install -e ".[testing]"
On all operating systems
^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -203,21 +203,21 @@ On UNIX

.. code-block:: bash
$ $VENV/bin/py.test -q
$VENV/bin/py.test -q
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\tutorial> %VENV%\Scripts\py.test -q
%VENV%\Scripts\py.test -q
For a successful test run, you should see output that ends like this:

.. code-block:: bash
.
1 passed in 0.24 seconds
.
1 passed in 0.24 seconds
Expose test coverage information
Expand All @@ -236,14 +236,14 @@ On UNIX

.. code-block:: bash
$ $VENV/bin/py.test --cov --cov-report=term-missing
$VENV/bin/py.test --cov --cov-report=term-missing
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\tutorial> %VENV%\Scripts\py.test --cov --cov-report=term-missing
%VENV%\Scripts\py.test --cov --cov-report=term-missing
If successful, you will see output something like this:

Expand Down Expand Up @@ -285,14 +285,14 @@ On UNIX

.. code-block:: bash
$ $VENV/bin/py.test --cov=tutorial tutorial/tests.py -q
$VENV/bin/py.test --cov=tutorial tutorial/tests.py -q
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\tutorial> %VENV%\Scripts\py.test --cov=tutorial tutorial\tests.py -q
%VENV%\Scripts\py.test --cov=tutorial tutorial\tests.py -q
py.test follows :ref:`conventions for Python test discovery
<pytest:test discovery>`, and the configuration defaults from the cookiecutter
Expand All @@ -316,14 +316,14 @@ On UNIX

.. code-block:: bash
$ $VENV/bin/pserve development.ini --reload
$VENV/bin/pserve development.ini --reload
On Windows
^^^^^^^^^^

.. code-block:: doscon
c:\tutorial> %VENV%\Scripts\pserve development.ini --reload
%VENV%\Scripts\pserve development.ini --reload
.. note::

Expand Down

0 comments on commit 919ff69

Please sign in to comment.