From: Sergey Matveev Date: Sun, 7 Jan 2024 08:56:45 +0000 (+0300) Subject: Raise copyright years X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=HEAD;hp=282129d8ecb990e9d51372736d1973e9f4555d89 Raise copyright years --- diff --git a/PUBKEY.asc b/PUBKEY.asc index efe5113..0332845 100644 --- a/PUBKEY.asc +++ b/PUBKEY.asc @@ -16,6 +16,8 @@ y8RmHsszF3sJ5wLuGk1vpSh1jgq61RUquQYJa1iE2B8fxpL6Qr+T8IR2Jan4TFIn vzGeBXtCD2yUIeJgSeF/3VoEq8lxJ+rwHwcsIqHF7QdqJCc7S0wviHUEEBEIAB0W IQTPYOiaWSMeduJjZCKuGoEJ5JhX7wUCWcLAIAAKCRCuGoEJ5JhX7+lbAP9+WNA4 Uk0pNH5BAASabuT+zllnHZ5SqZoKWbs7bzWfogD+NWmjTfSJCr7GSZ4Suy3Vw4nn -hUu3L6dceWUU+hAEOBw= -=Qodb +hUu3L6dceWUU+hAEOByIdQQQFgoAHRYhBBKtMmicZg1CaWf9dcuCBWMhB62KBQJi +6jwUAAoJEMuCBWMhB62KYHMBAOQ6VHkVXpBrQAWCNYUEo9LZAvM2CokI6HVpJps1 +7mZNAP0RI3s/4v8N7a4b+ghbaEtxBIWWlXxqlBgDj/Rbnke0Dg== +=0AVp -----END PGP PUBLIC KEY BLOCK----- diff --git a/doc/build.log.do b/doc/build.log.do index 76ab32d..be6a370 100644 --- a/doc/build.log.do +++ b/doc/build.log.do @@ -1,7 +1,7 @@ rm -fr _build html=_build/html PYTHONPATH=.. ${PYTHON:=python} -msphinx . $html -[ -d download ] && cp -r download $html || echo No download directory, skipping +[ -d download ] && cp -a download $html || echo No download directory, skipping rm -r $html/.doctrees $html/.buildinfo find $html -type d -exec chmod 755 {} + find $html -type f -exec chmod 644 {} + diff --git a/doc/conf.py b/doc/conf.py index b422577..a82a7b5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -5,11 +5,10 @@ templates_path = ["_templates"] source_suffix = ".rst" master_doc = "index" project = "pyderasn" -copyright = "2017-2022, Sergey Matveev" +copyright = "2017-2023, Sergey Matveev" author = "Sergey Matveev" version = version release = version -language = None exclude_patterns = ["_build"] pygments_style = "sphinx" todo_include_todos = False diff --git a/doc/install.rst b/doc/install.rst index 64edda0..057f47d 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -5,8 +5,8 @@ Preferable way is to :ref:`download ` tarball with the signature from `official website `__:: $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.3.tar.zst - $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.3.tar.zst.sig - $ gpg --verify pyderasn-9.3.tar.zst.sig pyderasn-9.3.tar.zst + $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.3.tar.zst.asc + $ gpg --verify pyderasn-9.3.tar.zst.asc pyderasn-9.3.tar.zst $ zstd -d < pyderasn-9.3.tar.zst | tar xf - $ cd pyderasn-9.3 $ python setup.py install @@ -16,11 +16,6 @@ signature from `official website `__:: * ``urwid`` is an optional dependency used for :ref:`interactive browser `. * ``dateutil`` is an optional dependency used for ``.totzdatetime()`` method. -You could use pip (**no** OpenPGP authentication is performed!) with PyPI:: - - $ echo pyderasn==9.3 --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 Guard `__ is used for that purpose. @@ -36,6 +31,6 @@ resources. uid PyDERASN releases $ 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 wkd --locate-keys pyderasn at cypherpunks dot ru .. literalinclude:: ../PUBKEY.asc diff --git a/makedist.sh b/makedist similarity index 71% rename from makedist.sh rename to makedist index 413b15e..3aafd67 100755 --- a/makedist.sh +++ b/makedist @@ -10,7 +10,7 @@ mkdir $tmp/pyderasn-"$release" echo pyderasn.py echo setup.py find $(perl -lane 'print $F[1]' MANIFEST.in) -} | tar cfI - - | tar xfC - $tmp/pyderasn-"$release" +} | tar cfT - - | tar xfC - $tmp/pyderasn-"$release" PYTHONPATH="$tmp/pyderasn-$release" redo $tmp/pyderasn-"$release"/doc/build.log rm -r $tmp/pyderasn-"$release"/doc/.redo $tmp/pyderasn-"$release"/doc/build.log @@ -18,8 +18,6 @@ rm -r $tmp/pyderasn-"$release"/doc/.redo $tmp/pyderasn-"$release"/doc/build.log tar xvfC doc/download/termcolor-1.1.0.tar.gz $tmp --include "*/termcolor.py" mv -v $tmp/termcolor-*/termcolor.py $tmp/pyderasn-"$release" -pip_hash=$(pip hash dist/pyderasn-"$release".tar.gz | sed -n '$p') - cd $tmp find . -type d -exec chmod 755 {} + find . -type f -exec chmod 644 {} + @@ -27,15 +25,12 @@ chmod 755 pyderasn-"$release"/pyderasn.py tar cvf pyderasn-"$release".tar --uid=0 --gid=0 --numeric-owner pyderasn-"$release" zstd -19 -v pyderasn-"$release".tar tarball=pyderasn-"$release".tar.zst -gpg --detach-sign --sign --local-user pyderasn@cypherpunks.ru $tarball -gpg --enarmor < "$tarball".sig | - sed "/^Comment:/d ; s/ARMORED FILE/SIGNATURE/" > "$tarball".asc -meta4-create -file "$tarball" -mtime "$tarball" -sig "$tarball".asc \ +gpg --armor --detach-sign --sign --local-user pyderasn@cypherpunks.ru $tarball +meta4-create -fn "$tarball" -mtime "$tarball" -sig "$tarball".asc \ http://www.pyderasn.cypherpunks.ru/download/"$tarball" \ - http://y.www.pyderasn.cypherpunks.ru/download/"$tarball" > "$tarball".meta4 + http://y.www.pyderasn.cypherpunks.ru/download/"$tarball" < "$tarball" > "$tarball".meta4 size=$(( $(stat -f %z $tarball) / 1024 )) -hash=$(gpg --print-md SHA256 < $tarball) release_date=$(date "+%Y-%m-%d") cat <\`__ - \`link \`__ - \`sig \`__ - - \`\`$hash\`\` - -pyderasn==$release $pip_hash + \`tar \`__ + \`sig \`__ EOF -mv $tmp/$tarball $tmp/"$tarball".sig $tmp/"$tarball".meta4 $cur/doc/download +mv $tmp/$tarball $tmp/"$tarball".asc $tmp/"$tarball".meta4 $cur/doc/download cat < -pip'es requirements file: - - pyderasn==$release $pip_hash - Please send questions regarding the use of PyDERASN, bug reports and patches to mailing list: http://lists.cypherpunks.ru/pyderasn_002ddevel.html EOF diff --git a/pyderasn.py b/pyderasn.py index 99c771c..54242a3 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -4,7 +4,7 @@ # pylint: disable=line-too-long,superfluous-parens,protected-access,too-many-lines # pylint: disable=too-many-return-statements,too-many-branches,too-many-statements # PyDERASN -- Python ASN.1 DER/CER/BER codec with abstract structures -# Copyright (C) 2017-2022 Sergey Matveev +# Copyright (C) 2017-2024 Sergey Matveev # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as diff --git a/tests/test_cms.py b/tests/test_cms.py index 9ebb195..fb45580 100644 --- a/tests/test_cms.py +++ b/tests/test_cms.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyDERASN -- Python ASN.1 DER/CER/BER codec with abstract structures -# Copyright (C) 2017-2022 Sergey Matveev +# Copyright (C) 2017-2024 Sergey Matveev # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as diff --git a/tests/test_crl.py b/tests/test_crl.py index 2779fd8..9174e2f 100644 --- a/tests/test_crl.py +++ b/tests/test_crl.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyDERASN -- Python ASN.1 DER/CER/BER codec with abstract structures -# Copyright (C) 2017-2022 Sergey Matveev +# Copyright (C) 2017-2024 Sergey Matveev # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as diff --git a/tests/test_crts.py b/tests/test_crts.py index 8ceeb08..e43b4c2 100644 --- a/tests/test_crts.py +++ b/tests/test_crts.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyDERASN -- Python ASN.1 DER/CER/BER codec with abstract structures -# Copyright (C) 2017-2022 Sergey Matveev +# Copyright (C) 2017-2024 Sergey Matveev # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as diff --git a/tests/test_pyderasn.py b/tests/test_pyderasn.py index ae7b4ef..e8f8bdf 100644 --- a/tests/test_pyderasn.py +++ b/tests/test_pyderasn.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyDERASN -- Python ASN.1 DER/CER/BER codec with abstract structures -# Copyright (C) 2017-2022 Sergey Matveev +# Copyright (C) 2017-2024 Sergey Matveev # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as