Skip to content

Commit

Permalink
Use bat for Windows input
Browse files Browse the repository at this point in the history
  • Loading branch information
bhrutledge committed Jul 11, 2021
1 parent 4e4adfd commit ee40d83
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 62 deletions.
10 changes: 5 additions & 5 deletions source/guides/distributing-packages-using-setuptools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Requirements for packaging and distributing
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install twine
Expand Down Expand Up @@ -728,7 +728,7 @@ Before you can build wheels and sdists for your project, you'll need to install
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install build
Expand All @@ -747,7 +747,7 @@ Minimally, you should create a :term:`Source Distribution <Source Distribution (
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m build --sdist
Expand Down Expand Up @@ -804,7 +804,7 @@ To build the wheel:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m build --wheel
Expand Down Expand Up @@ -833,7 +833,7 @@ To build the wheel:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m build --wheel
Expand Down
2 changes: 1 addition & 1 deletion source/guides/dropping-older-python-versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Steps:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install  --upgrade setuptools twine
Expand Down
2 changes: 1 addition & 1 deletion source/guides/hosting-your-own-index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ description to configure their installer appropriately. For example with pip:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --extra-index-url https://python.example.com/ foobar
Expand Down
40 changes: 20 additions & 20 deletions source/guides/installing-using-pip-and-virtual-environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ installed.
The Python installers for Windows include pip. You can make sure that pip is
up-to-date by running:

.. code-block:: text
.. code-block:: bat
py -m pip install --upgrade pip
Expand Down Expand Up @@ -85,7 +85,7 @@ using pip.
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --user virtualenv
Expand Down Expand Up @@ -115,7 +115,7 @@ in the below commands.
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m venv env
Expand Down Expand Up @@ -144,7 +144,7 @@ virtual environment-specific
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
.\env\Scripts\activate
Expand All @@ -159,7 +159,7 @@ Python interpreter:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
where python
Expand All @@ -173,7 +173,7 @@ It should be in the ``env`` directory:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
...\env\Scripts\python.exe
Expand Down Expand Up @@ -210,7 +210,7 @@ Now that you're in your virtual environment you can install packages. Let's inst
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install requests
Expand Down Expand Up @@ -249,7 +249,7 @@ a specific version of ``requests``:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install requests==2.18.4
Expand All @@ -263,7 +263,7 @@ To install the latest ``2.x`` release of requests:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install requests>=2.0.0,<3.0.0
Expand All @@ -277,7 +277,7 @@ To install pre-release versions of packages, use the ``--pre`` flag:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --pre requests
Expand All @@ -296,7 +296,7 @@ specifying the extra in brackets:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install requests[security]
Expand All @@ -318,7 +318,7 @@ pip can install a package directly from source, for example:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
cd google-auth
py -m pip install .
Expand All @@ -335,7 +335,7 @@ installed package without needing to re-install:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --editable .
Expand Down Expand Up @@ -371,7 +371,7 @@ wheel, or tar file) you can install it directly with pip:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install requests-2.18.4.tar.gz
Expand All @@ -387,7 +387,7 @@ pip to look for packages there and not to use the
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --no-index --find-links=/local/dir/ requests
Expand All @@ -410,7 +410,7 @@ If you want to download packages from a different index than the
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --index-url http://index.example.com/simple/ SomeProject
Expand All @@ -426,7 +426,7 @@ and a separate index, you can use the ``--extra-index-url`` flag instead:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --extra-index-url http://index.example.com/simple/ SomeProject
Expand All @@ -444,7 +444,7 @@ install the latest version of ``requests`` and all of its dependencies:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --upgrade requests
Expand All @@ -470,7 +470,7 @@ And tell pip to install all of the packages in this file using the ``-r`` flag:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install -r requirements.txt
Expand All @@ -488,7 +488,7 @@ Pip can export a list of all installed packages and their versions using the
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip freeze
Expand Down
4 changes: 2 additions & 2 deletions source/guides/making-a-pypi-friendly-readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ such as ``text/plain``, ``text/x-rst`` (for reStructuredText), or ``text/markdow
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --user --upgrade setuptools wheel twine
Expand Down Expand Up @@ -115,7 +115,7 @@ You can check your README for markup errors before uploading as follows:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --upgrade twine
Expand Down
4 changes: 2 additions & 2 deletions source/guides/using-testpypi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ specifying the ``--index-url`` flag
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --index-url https://test.pypi.org/simple/ your-package
Expand All @@ -65,7 +65,7 @@ you're testing has dependencies:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple your-package
Expand Down
2 changes: 1 addition & 1 deletion source/tutorials/creating-documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Use ``pip`` to install Sphinx:
.. tab:: Windows

.. code-block:: text
.. code-block:: bat
py -m pip install -U sphinx
Expand Down
Loading

0 comments on commit ee40d83

Please sign in to comment.