]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix classes instantiation when invoked as __main__
authorSergey Matveev <stargrave@stargrave.org>
Sat, 21 Mar 2020 17:09:01 +0000 (20:09 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 22 Mar 2020 14:25:24 +0000 (17:25 +0300)
VERSION
doc/install.rst
doc/news.rst
pyderasn.py

diff --git a/VERSION b/VERSION
index f99416236e9fc148fb5b694705c04492d60793dd..37722ebbc756a3160e7f4aeb04d4c8f69e5fa8a3 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-7.3
+7.4
index 3d380eaa04c7b7cd047e03306c49a4ff291ee7fd..d4e0abe51382731d63b0828d4616f1e4b6005260 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-7.3.tar.xz
-    $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-7.3.tar.xz.sig
-    $ gpg --verify pyderasn-7.3.tar.xz.sig pyderasn-7.3.tar.xz
-    $ xz --decompress --stdout pyderasn-7.3.tar.xz | tar xf -
-    $ cd pyderasn-7.3
+    $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-7.4.tar.xz
+    $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-7.4.tar.xz.sig
+    $ gpg --verify pyderasn-7.4.tar.xz.sig pyderasn-7.4.tar.xz
+    $ xz --decompress --stdout pyderasn-7.4.tar.xz | tar xf -
+    $ cd pyderasn-7.4
     $ python setup.py install
     # or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH
 
@@ -19,7 +19,7 @@ You can also find it mirrored on :ref:`download <download>` page.
 You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
 
     $ cat > requirements.txt <<EOF
-    pyderasn==7.3 --hash=sha256:TO-BE-FILLED
+    pyderasn==7.4 --hash=sha256:TO-BE-FILLED
     six==1.14.0 --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a
     EOF
     $ pip install --requirement requirements.txt
index aaf834ce90c8baf59f690a9291d52857a3c76237..446418515f7417286cf4d58ea60c68687f1b24f6 100644 (file)
@@ -1,6 +1,13 @@
 News
 ====
 
+.. _release7.4:
+
+7.4
+---
+
+* Fix DEFINED BY pprinting when invoking as __main__ module
+
 .. _release7.3:
 
 7.3
index dbe706640e02878c438bafe8799efdb07d58bba3..3485a08722be78e20168974d5eb8a3e3a931e054 100755 (executable)
@@ -1185,7 +1185,7 @@ except ImportError:  # pragma: no cover
     def colored(what, *args, **kwargs):
         return what
 
-__version__ = "7.3"
+__version__ = "7.4"
 
 __all__ = (
     "agg_octet_string",
@@ -7495,4 +7495,5 @@ def main():  # pragma: no cover
 
 
 if __name__ == "__main__":
+    from pyderasn import *
     main()