summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2020-03-21 20:09:01 +0300
committerSergey Matveev <stargrave@stargrave.org>2020-03-22 17:25:24 +0300
commit17e573524f4d7b3775c2cb39c8ba5f798e1fe9d1 (patch)
tree498d837d35f14ffaec8315d2f4a0637213b12a67
parent55b1914e9dd3c574f4748ac27e89f6786abb4ec3 (diff)
downloadpyderasn-17e573524f4d7b3775c2cb39c8ba5f798e1fe9d1.tar.xz
Fix classes instantiation when invoked as __main__
-rw-r--r--VERSION2
-rw-r--r--doc/install.rst12
-rw-r--r--doc/news.rst7
-rwxr-xr-xpyderasn.py3
4 files changed, 16 insertions, 8 deletions
diff --git a/VERSION b/VERSION
index f994162..37722eb 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-7.3
+7.4
diff --git a/doc/install.rst b/doc/install.rst
index 3d380ea..d4e0abe 100644
--- a/doc/install.rst
+++ b/doc/install.rst
@@ -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
diff --git a/doc/news.rst b/doc/news.rst
index aaf834c..4464185 100644
--- a/doc/news.rst
+++ b/doc/news.rst
@@ -1,6 +1,13 @@
News
====
+.. _release7.4:
+
+7.4
+---
+
+* Fix DEFINED BY pprinting when invoking as __main__ module
+
.. _release7.3:
7.3
diff --git a/pyderasn.py b/pyderasn.py
index dbe7066..3485a08 100755
--- a/pyderasn.py
+++ b/pyderasn.py
@@ -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()