From: Sergey Matveev Date: Mon, 2 Oct 2017 14:21:59 +0000 (+0300) Subject: Packaging additions X-Git-Tag: 1.0^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=0202ac948a3f324a7aa2288d2bb31293c324d1f7 Packaging additions --- diff --git a/MANIFEST.in b/MANIFEST.in index d6f4e89..907fa3e 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 d4e91de..5c113dc 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 08285de..a9c0435 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -12,9 +12,8 @@ signature from `official website `__:: % 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 0000000..f329c1a --- /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