MANIFEST.in | 19 +++++++++++++++++-- doc/download.rst | 38 ++------------------------------------ doc/install.rst | 5 ++--- makedist.sh | 37 +++++++++++++++++++++++++++++++++++++ diff --git a/MANIFEST.in b/MANIFEST.in index ed082113720a90281dbb7d90a72b2fa0a0a502d09c9b7ec1d3d8280eec6a634a..ecca622bac2afbdfa3381c04dbca12dea309975124dc031e3b43443dae151cd7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,11 +1,26 @@ include .coveragerc include AUTHORS -include COPYING* +include COPYING +include COPYING.LESSER +include doc/conf.py +include doc/download.rst +include doc/examples.rst +include doc/features.rst +include doc/feedback.rst +include doc/index.rst +include doc/install.rst +include doc/Makefile +include doc/pip-requirements.txt +include doc/reference.rst include INSTALL include nose.cfg -include pip-requirements* +include pip-requirements-tests.txt +include pip-requirements.txt include PUBKEY.asc include pyderasn.pyi include README +include tests/__init__.py +include tests/test_crts.py +include tests/test_pyderasn.py include THANKS include VERSION diff --git a/doc/download.rst b/doc/download.rst index 40fb2e601428afd8bf8b9a5de269d678264bdd5eb7131bdf36f5ba58369954ef..9bb88fccc7c03f1a688377da13821aa9743e529fb0d734a150749ccbf8683981 100644 --- a/doc/download.rst +++ b/doc/download.rst @@ -3,39 +3,5 @@ Download ======== -.. list-table:: - :widths: 10 10 20 60 - :header-rows: 1 - - * - Package - - Size - - Tarball - - SHA256 checksum - * - ``attrs`` 17.2.0 - - 59 KiB - - `link `__ - `sign `__ - - ``612F3F53 90F2D0C7 FCA6A32A B5B1E750 5BC56C00 1D68B28F 56B7446D 6970DC0A`` - * - ``coverage`` 4.4.1 - - 287 KiB - - `link `__ - `sign `__ - - ``DF312773 C59A0CB5 1EB793F5 BA14A1D5 54D467D6 C46375F1 8E066DAA B8A86271`` - * - ``enum34`` 1.1.6 - - 31 KiB - - `link `__ - `sign `__ - - ``CC26B270 E58910E6 B54ACEE9 EC36C388 4C9BE18B 7A55FA46 305D4BA9 18D00177`` - * - ``hypothesis`` 3.30.4 - - 102 KiB - - `link `__ - `sign `__ - - ``A6281672 88FDCC15 EA806C45 9EBEF827 8D2A8BAD 01DB7C61 BD45D14A 905F53D6`` - * - ``six`` 1.11.0 - - 25 KiB - - `link `__ - `sign `__ - - ``890AC076 5EF9AEFA 5079CEBA ADE9C680 DBFB0E84 E7CFA1F9 9B9B43A8 5FA80126`` - -Development Git source code repository is located here: -https://git.cypherpunks.ru/cgit.cgi/pyderasn.git/. +You can obtain releases source code prepared tarballs on +`official website `__. diff --git a/doc/install.rst b/doc/install.rst index 8e97473c6bd95a573623a2ad10e095dc35a5dab699eb37297e47ccff9674e1b0..2904024410989dfc8277fedfe21f1cb3c655b5a85913dcdf392a88ddbae766b0 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -12,9 +12,8 @@ % cd pyderasn-1.0 % python setup.py install PyDERASN depends on `six `__ package -for keeping compatibility with Py27/Py35. If it is not installed on your -system, then ``setup.py install`` will try to download it from PyPI. You -can also find it mirrored on :ref:`download ` page. +for keeping compatibility with Py27/Py35. It is included in the tarball. +You can also find it mirrored on :ref:`download ` page. You could use PIP (**no** authentication is performed!):: diff --git a/makedist.sh b/makedist.sh new file mode 100755 index 0000000000000000000000000000000000000000..e80ae2d0b860d38dc29d9165a07ce7bdbfd0b08660657f02eb3d92106c24af14 --- /dev/null +++ b/makedist.sh @@ -0,0 +1,37 @@ +#!/bin/sh -ex + +cur=$(pwd) +tmp=$(mktemp -d) +release=$1 +[ -n "$release" ] + +mkdir $tmp/pyderasn-"$release" +cut -d' ' -f2 < MANIFEST.in > $tmp/includes +echo pyderasn.py >> $tmp/includes +echo setup.py >> $tmp/includes +tar cfI - $tmp/includes | tar xfC - $tmp/pyderasn-"$release" + +PYTHONPATH="$tmp/pyderasn-$release" make -C $tmp/pyderasn-"$release"/doc + +tar xvfC doc/download/six-*.tar.xz $tmp --include '*/six.py' +mv -v $tmp/six-*/six.py $tmp/pyderasn-"$release" + +cd $tmp +tar cvf pyderasn-"$release".tar pyderasn-"$release" +xz -9v pyderasn-"$release".tar +gpg --detach-sign --sign --local-user 04A933D1BA20327A pyderasn-"$release".tar.xz + +tarball=pyderasn-"$release".tar.xz +size=$(( $(wc -c < $tarball) / 1024 )) +hash=$(gpg --print-md SHA256 < $tarball) + +cat <\`__ + \`sign \`__ + - \`\`$hash\`\` +EOF + +mv $tmp/$tarball $tmp/"$tarball".sig $cur/doc/download