File: installation.rst

package info (click to toggle)
python-questionary 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 960 kB
  • sloc: python: 3,917; makefile: 66
file content (58 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.. _installation:

************
Installation
************

Use a Published Release
#######################

To install Questionary, simply run this command in your terminal of
choice:

.. code-block:: console

  $ pip install questionary

Build from Source
#################

Installing from source code is only necessary, if you want to
make changes to the Questionary source code. Questionary is actively
`developed on GitHub <https://github.com/tmbo/questionary>`_.

You can either clone the public repository:

.. code-block:: console

  $ git clone git@github.com:tmbo/questionary.git

Or, download the tarball:

.. code-block:: console

  $ curl -OL https://github.com/tmbo/questionary/tarball/master

.. note::
  If you are using windows, you can also download a zip instead:

  .. code-block:: console

    $ curl -OL https://github.com/tmbo/questionary/zipball/master

Questionary uses `Poetry <https://python-poetry.org/>`_ for packaging and
dependency management. If you want to build Questionary from source, you
must install Poetry first:

.. code-block:: console

  $ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3

There are several other ways to install Poetry, as seen in
`the official guide <https://python-poetry.org/docs/#installation>`_.

To install Questionary and its dependencies in editable mode, execute

.. code-block:: console

  $ make install