pyUmbral/docs/source/installation.rst

88 lines
1.8 KiB
ReStructuredText
Raw Normal View History

Installing pyUmbral
====================
2021-03-21 03:06:03 +00:00
Using pip
-------------------------
2019-02-19 12:18:52 +00:00
The easiest way to install pyUmbral is using ``pip``:
.. code-block:: bash
$ pip3 install umbral
Build from source code
-------------------------
2019-02-20 10:19:51 +00:00
pyUmbral is maintained on GitHub: https://github.com/nucypher/pyUmbral.
Clone the repository to download the source code.
.. code-block:: bash
$ git clone https://github.com/nucypher/pyUmbral.git
2018-02-21 07:30:07 +00:00
Once you have acquired the source code, you can...
*...embed pyUmbral modules into your own codebase...*
.. code-block:: python
from umbral import pre, keys, config
*...install pyUmbral with pipenv...*
.. code-block:: bash
$ pipenv install .
*...or install it with python-pip...*
.. code-block:: bash
$ pip3 install .
Install dependencies
---------------------
2019-02-19 12:18:52 +00:00
The NuCypher team uses pipenv for managing pyUmbral's dependencies.
The recommended installation procedure is as follows:
.. code-block:: bash
$ sudo pip3 install pipenv
$ pipenv install
2019-02-19 12:18:52 +00:00
Post-installation, you can activate the pyUmbral's virtual environment
in your current terminal session by running :code:`pipenv shell`.
If your installation is successful, the following command will succeed without error.
.. code-block:: bash
2019-02-20 10:19:51 +00:00
$ pipenv run python
>>> import umbral
For more information on pipenv, The official documentation is located here: https://docs.pipenv.org/.
2018-02-21 07:30:24 +00:00
Development Installation
-------------------------
2018-02-21 07:30:24 +00:00
If you want to participate in developing pyUmbral, you'll probably want to run the test suite and / or
build the documentation, and for that, you must install some additional development requirements.
.. code-block:: bash
$ pipenv install --dev --three
2018-02-21 07:30:24 +00:00
To build the documentation locally:
.. code-block:: bash
$ pipenv run make html --directory=docs