]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Packaging additions 1.0
authorSergey Matveev <stargrave@stargrave.org>
Mon, 2 Oct 2017 14:21:59 +0000 (17:21 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 3 Oct 2017 10:05:49 +0000 (13:05 +0300)
MANIFEST.in
doc/download.rst
doc/install.rst
makedist.sh [new file with mode: 0755]

index d6f4e89eb416e2f24d7231ec499c2652f611f3a1..907fa3e47cb364a9918257154f628aded0ca26a4 100644 (file)
@@ -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
index d4e91de4de225d6560c5db0ad6a55dca2e02eea5..5c113dc62b9789441f3e3c84d810f66e0f9950e7 100644 (file)
@@ -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 <download/attrs-17.2.0.tar.xz>`__
-       `sign <download/attrs-17.2.0.tar.xz.sig>`__
-     - ``612F3F53 90F2D0C7 FCA6A32A B5B1E750 5BC56C00 1D68B28F 56B7446D 6970DC0A``
-   * - ``coverage`` 4.4.1
-     - 287 KiB
-     - `link <coverage-4.4.1.tar.xz>`__
-       `sign <coverage-4.4.1.tar.xz.sig>`__
-     - ``DF312773 C59A0CB5 1EB793F5 BA14A1D5 54D467D6 C46375F1 8E066DAA B8A86271``
-   * - ``enum34`` 1.1.6
-     - 31 KiB
-     - `link <enum34-1.1.6.tar.xz>`__
-       `sign <enum34-1.1.6.tar.xz.sig>`__
-     - ``CC26B270 E58910E6 B54ACEE9 EC36C388 4C9BE18B 7A55FA46 305D4BA9 18D00177``
-   * - ``hypothesis`` 3.30.4
-     - 102 KiB
-     - `link <hypothesis-3.30.4.tar.xz>`__
-       `sign <hypothesis-3.30.4.tar.xz.sig>`__
-     - ``A6281672 88FDCC15 EA806C45 9EBEF827 8D2A8BAD 01DB7C61 BD45D14A 905F53D6``
-   * - ``six`` 1.11.0
-     - 25 KiB
-     - `link <six-1.11.0.tar.xz>`__
-       `sign <six-1.11.0.tar.xz.sig>`__
-     - ``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 <http://pyderasn.cypherpunks.ru/>`__.
index 08285de0e2a8c253bd949097b099bcc90d3b4640..a9c04350a3e91b5fa88ee4c3426713818a4c2510 100644 (file)
@@ -12,9 +12,8 @@ signature from `official website <http://pyderasn.cypherpunks.ru/>`__::
     % python setup.py install
 
 PyDERASN depends on `six <https://pypi.python.org/pypi/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 <download>` page.
+for keeping compatibility with Py27/Py35. It is included in the tarball.
+You can also find it mirrored on :ref:`download <download>` page.
 
 You could use PIP (**no** authentication is performed!)::
 
diff --git a/makedist.sh b/makedist.sh
new file mode 100755 (executable)
index 0000000..f329c1a
--- /dev/null
@@ -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 <<EOF
+An entry for documentation:
+   * - \`\`pyderasn\`\` $release
+     - $size KiB
+     - \`link <download/pyderasn-${release}.tar.xz>\`__
+       \`sign <download/pyderasn-${release}.tar.xz.sig>\`__
+     - \`\`$hash\`\`
+EOF
+
+mv $tmp/$tarball $tmp/"$tarball".sig $cur/doc/download