.. highlight:: shell

============
Installation
============


Stable release
--------------

To install PyTest FTP Server, run this command in your terminal:

.. code-block:: console

    $ pip install pytest-localftpserver

If you don't have `pip`_ installed, this `Python installation guide`_ can guide
you through the process.

Or if you prefer to use `conda`_:

.. code-block:: console

    $ conda install -c conda-forge pytest-localftpserver

This are the preferred methods to install PyTest FTP Server, as it will always install the most recent stable release.

.. _pip: https://pip.pypa.io/en/stable/
.. _conda: https://www.anaconda.com/products/individual
.. _Python installation guide: https://docs.python-guide.org/starting/installation/


From sources
------------

The sources for PyTest FTP Server can be downloaded from the `Github repo`_.

You can either clone the public repository:

.. code-block:: console

    $ git clone git://github.com/oz123/pytest-localftpserver

Or download the `tarball`_:

.. code-block:: console

    $ curl  -OL https://github.com/oz123/pytest-localftpserver/tarball/master

Once you have a copy of the source, you can install it with:

.. code-block:: console

    $ python setup.py install


.. _Github repo: https://github.com/oz123/pytest-localftpserver
.. _tarball: https://github.com/oz123/pytest-localftpserver/tarball/master
