]> Cypherpunks.ru repositories - pyderasn.git/blob - doc/install.rst
PEP8 friendliness
[pyderasn.git] / doc / install.rst
1 Install
2 =======
3
4 Preferable way is to :ref:`download <download>` tarball with the
5 signature from `official website <http://pyderasn.cypherpunks.ru/>`__::
6
7     % wget http://pyderasn.cypherpunks.ru/pyderasn-1.0.tar.xz
8     % wget http://pyderasn.cypherpunks.ru/pyderasn-1.0.tar.xz.sig
9     % gpg --verify pyderasn-1.0.tar.xz.sig pyderasn-1.0.tar.xz
10     % xz -d < pyderasn-1.0.tar.xz | tar xf -
11     % cd pyderasn-1.0
12     % python setup.py install
13     # or copy pyderasn.py (+six.py) to your PYTHONPATH
14
15 PyDERASN depends on `six <https://pypi.python.org/pypi/six>`__ package
16 for keeping compatibility with Py27/Py35. It is included in the tarball.
17 You can also find it mirrored on :ref:`download <download>` page.
18
19 You could use PIP (**no** authentication is performed!)::
20
21     % pip install pyderasn
22
23 You have to verify downloaded tarballs integrity and authenticity to be
24 sure that you retrieved trusted and untampered software. `GNU Privacy
25 Guard <https://www.gnupg.org/>`__ is used for that purpose.
26
27 For the very first time it is necessary to get signing public key and
28 import it. It is provided below, but you should check alternative
29 resources.
30
31 ::
32
33     pub   rsa2048/0x04A933D1BA20327A 2017-09-20
34           2ED6 C846 3051 02DF 5B4E  0383 04A9 33D1 BA20 327A
35     uid   PyDERASN releases <pyderasn@cypherpunks.ru>
36
37     % gpg --keyserver hkp://keys.gnupg.net/ --recv-keys 0x04A933D1BA20327A
38     % gpg --auto-key-locate dane --locate-keys pyderasn at cypherpunks dot ru
39     % gpg --auto-key-locate wkd --locate-keys pyderasn at cypherpunks dot ru
40     % gpg --auto-key-locate pka --locate-keys pyderasn at cypherpunks dot ru
41
42 .. literalinclude:: ../PUBKEY.asc