]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - doc/install.rst
Convenient decod() helper method
[pyderasn.git] / doc / install.rst
index d03034c86d7a835662d24c0ad5930635521d5ce3..40d93837c72543652b071232dc5c69951394eaff 100644 (file)
@@ -4,11 +4,11 @@ Install
 Preferable way is to :ref:`download <download>` tarball with the
 signature from `official website <http://pyderasn.cypherpunks.ru/>`__::
 
-    $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-|VERSION|.tar.xz
-    $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-5.4.tar.xz.sig
-    $ gpg --verify pyderasn-5.4.tar.xz.sig pyderasn-5.4.tar.xz
-    $ xz --decompress --stdout pyderasn-5.4.tar.xz | tar xf -
-    $ cd pyderasn-5.4
+    $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-5.6.tar.xz
+    $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-5.6.tar.xz.sig
+    $ gpg --verify pyderasn-5.6.tar.xz.sig pyderasn-5.6.tar.xz
+    $ xz --decompress --stdout pyderasn-5.6.tar.xz | tar xf -
+    $ cd pyderasn-5.6
     $ python setup.py install
     # or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH
 
@@ -16,9 +16,13 @@ PyDERASN depends on `six <https://pypi.org/project/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.
 
-You could use PIP (**no** authentication is performed!)::
+You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
 
-    $ pip install pyderasn
+    $ cat > requirements.txt <<EOF
+    pyderasn==5.6 --hash=sha256:TODO
+    six==1.13.0 --hash=sha256:30f610279e8b2578cab6db20741130331735c781b56053c59c4076da27f06b66
+    EOF
+    $ 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