From: Sergey Matveev Date: Tue, 17 Dec 2019 16:35:14 +0000 (+0300) Subject: Add PEP-396 compatible module's __version__ X-Git-Tag: 4.1~1 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=613ccc82b67b8b81e1c3d811377c6c472b55fe9c Add PEP-396 compatible module's __version__ --- diff --git a/VERSION b/VERSION index 5186d07..7d5c902 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0 +4.1 diff --git a/download.texi b/download.texi index 1439b05..6dd1efb 100644 --- a/download.texi +++ b/download.texi @@ -1,18 +1,20 @@ @node Download @unnumbered Download +@set VERSION 4.1 + No additional dependencies except Python 2.7/3.x interpreter are required. Preferable way is to download tarball with the signature: -@verbatim -$ wget http://pygost.cypherpunks.ru/pygost-4.0.tar.xz -$ wget http://pygost.cypherpunks.ru/pygost-4.0.tar.xz.sig -$ gpg --verify pygost-4.0.tar.xz.sig pygost-4.0.tar.xz -$ xz -d < pygost-4.0.tar.xz | tar xf - -$ cd pygost-4.0 +@example +$ [fetch|wget] http://pygost.cypherpunks.ru/pygost-@value{VERSION}.tar.xz +$ [fetch|wget] http://pygost.cypherpunks.ru/pygost-@value{VERSION}.tar.xz.sig +$ gpg --verify pygost-@value{VERSION}.tar.xz.sig pygost-@value{VERSION}.tar.xz +$ xz --decompress --stdout pygost-@value{VERSION}.tar.xz | tar xf - +$ cd pygost-@value{VERSION} $ python setup.py install -@end verbatim +@end example @multitable {XXXXX} {XXXX-XX-XX} {XXXX KiB} {link sign} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} @headitem Version @tab Date @tab Size @tab Tarball @tab SHA256 checksum @tab Streebog-256 checksum @@ -92,11 +94,15 @@ $ python setup.py install @end multitable -But also you can use PIP (@strong{no} authentication is performed!): +But also you can use pip (@strong{no} OpenPGP authentication is +performed!) with PyPI: -@verbatim -$ pip install pygost==3.15 -@end verbatim +@example +$ cat > requirements.txt < @item @url{https://lists.cypherpunks.ru/mailman/listinfo/gost, gost} maillist @item -@verbatim +@example $ gpg --auto-key-locate dane --locate-keys pygost at cypherpunks dot ru $ gpg --auto-key-locate wkd --locate-keys pygost at cypherpunks dot ru -@end verbatim +@end example @item @verbatiminclude PUBKEY.asc diff --git a/news.texi b/news.texi index b1bf15c..852e836 100644 --- a/news.texi +++ b/news.texi @@ -3,6 +3,22 @@ @table @strong +@anchor{Release 4.1} +@item 4.1 + @itemize + @item PEP-396 compatible module's @code{__version__} + @item Curve parameters aliases: +@verbatim +id-GostR3410-2001-CryptoPro-XchA-ParamSet -> id-GostR3410-2001-CryptoPro-A-ParamSet +id-GostR3410-2001-CryptoPro-XchB-ParamSet -> id-GostR3410-2001-CryptoPro-C-ParamSet +id-tc26-gost-3410-2012-256-paramSetB -> id-GostR3410-2001-CryptoPro-A-ParamSet +id-tc26-gost-3410-2012-256-paramSetC -> id-GostR3410-2001-CryptoPro-B-ParamSet +id-tc26-gost-3410-2012-256-paramSetD -> id-GostR3410-2001-CryptoPro-C-ParamSet +@end verbatim + @item Forbid any later GNU GPL version autousage (project's licence + now is GNU GPLv3 only) + @end itemize + @anchor{Release 4.0} @item 4.0 @itemize diff --git a/pygost/__init__.py b/pygost/__init__.py index 82c1d43..4991c37 100644 --- a/pygost/__init__.py +++ b/pygost/__init__.py @@ -2,3 +2,5 @@ PyGOST is free software: see the file COPYING for copying conditions. """ + +__version__ = "4.1" diff --git a/www.texi b/www.texi index 86bc3ef..4248b50 100644 --- a/www.texi +++ b/www.texi @@ -60,7 +60,7 @@ Currently supported algorithms are: Example 34.10-2012 keypair generation, signing and verifying: -@verbatim +@example >>> from pygost.gost3410 import CURVES >>> curve = CURVES["id-tc26-gost-3410-12-512-paramSetA"] >>> from os import urandom @@ -80,7 +80,7 @@ Example 34.10-2012 keypair generation, signing and verifying: >>> from pygost.gost3410 import verify >>> verify(curve, pub, dgst, signature, mode=2012) True -@end verbatim +@end example Please send questions, bug reports and patches to @url{https://lists.cypherpunks.ru/mailman/listinfo/gost, gost}