]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - doc/install.rst
Properly raise version
[pyderasn.git] / doc / install.rst
index a9c04350a3e91b5fa88ee4c3426713818a4c2510..c05ee24b6ec035d032644cb333211b57c1dfc191 100644 (file)
@@ -2,22 +2,24 @@ Install
 =======
 
 Preferable way is to :ref:`download <download>` tarball with the
-signature from `official website <http://pyderasn.cypherpunks.ru/>`__::
+signature from `official website <http://www.pyderasn.cypherpunks.ru/>`__::
 
-    % wget http://pyderasn.cypherpunks.ru/pyderasn-1.0.tar.xz
-    % wget http://pyderasn.cypherpunks.ru/pyderasn-1.0.tar.xz.sig
-    % gpg --verify pyderasn-1.0.tar.xz.sig pyderasn-1.0.tar.xz
-    % xz -d < pyderasn-1.0.tar.xz | tar xf -
-    % cd pyderasn-1.0
-    % python setup.py install
+    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.1.tar.zst
+    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.1.tar.zst.sig
+    $ gpg --verify pyderasn-9.1.tar.zst.sig pyderasn-9.1.tar.zst
+    $ zstd -d < pyderasn-9.1.tar.zst | tar xf -
+    $ cd pyderasn-9.1
+    $ python setup.py install
+    # or copy pyderasn.py (possibly termcolor.py) to your PYTHONPATH
 
-PyDERASN depends on `six <https://pypi.python.org/pypi/six>`__ package
-for keeping compatibility with Py27/Py35. It is included in the tarball.
-You can also find it mirrored on :ref:`download <download>` page.
+* ``termcolor`` is an optional dependency used for output colourizing.
+* ``urwid`` is an optional dependency used for :ref:`interactive browser <browser>`.
+* ``dateutil`` is an optional dependency used for ``.totzdatetime()`` method.
 
-You could use PIP (**no** authentication is performed!)::
+You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
 
-    % pip install pyderasn
+    $ echo pyderasn==9.1 --hash=sha256:TO-BE-FILLED > requirements.txt
+    $ pip install --requirement requirements.txt
 
 You have to verify downloaded tarballs integrity and authenticity to be
 sure that you retrieved trusted and untampered software. `GNU Privacy
@@ -33,9 +35,7 @@ resources.
           2ED6 C846 3051 02DF 5B4E  0383 04A9 33D1 BA20 327A
     uid   PyDERASN releases <pyderasn@cypherpunks.ru>
 
-    % gpg --keyserver hkp://keys.gnupg.net/ --recv-keys 0x04A933D1BA20327A
-    % gpg --auto-key-locate dane --locate-keys pyderasn at cypherpunks dot ru
-    % gpg --auto-key-locate wkd --locate-keys pyderasn at cypherpunks dot ru
-    % gpg --auto-key-locate pka --locate-keys pyderasn at cypherpunks dot ru
+    $ gpg --auto-key-locate dane --locate-keys pyderasn at cypherpunks dot ru
+    $ gpg --auto-key-locate wkd --locate-keys pyderasn at cypherpunks dot ru
 
 .. literalinclude:: ../PUBKEY.asc