[arch-commits] Commit in python-sshtunnel/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 06:35:58 UTC 2019


    Date: Saturday, October 26, 2019 @ 06:35:57
  Author: foutrelis
Revision: 520274

archrelease: copy trunk to community-staging-any

Added:
  python-sshtunnel/repos/community-staging-any/
  python-sshtunnel/repos/community-staging-any/PKGBUILD
    (from rev 520273, python-sshtunnel/trunk/PKGBUILD)

----------+
 PKGBUILD |   84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)

Copied: python-sshtunnel/repos/community-staging-any/PKGBUILD (from rev 520273, python-sshtunnel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 06:35:57 UTC (rev 520274)
@@ -0,0 +1,84 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=sshtunnel
+pkgbase=python-sshtunnel
+pkgname=('sshtunnel' 'python-sshtunnel' 'python2-sshtunnel')
+_gitcommit=4461abe9037ce0b86cd6aaaaeeebe27a97ce58ca
+pkgver=0.1.5
+pkgrel=1
+pkgdesc='Pure python SSH tunnels'
+url='https://github.com/pahaz/sshtunnel'
+arch=('any')
+license=('MIT')
+makedepends=('git' 'python-paramiko' 'python-sphinx' 'python-setuptools'
+             'python2-paramiko' 'python2-sphinx' 'python2-setuptools')
+checkdepends=('python-pytest' 'python-mock' 'openssh'
+              'python2-pytest' 'python2-mock')
+source=(${pkgbase}::"git+https://github.com/pahaz/sshtunnel#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd ${pkgbase}
+  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed -E 's|\.r0\.\w+$||'
+}
+
+prepare() {
+  cd ${pkgbase}
+  sed '/sphinxcontrib.napoleon/d' -i docs/conf.py
+}
+
+build() {
+  cd ${pkgbase}
+  export PYTHONPATH="$PWD:$PYTHONPATH"
+  python setup.py build
+  sphinx-build -b text docs docs/_build/text
+  sphinx-build -b man docs docs/_build/man
+  python2 setup.py build
+  sphinx-build2 -b text docs docs/_build2/text
+  sphinx-build2 -b man docs docs/_build2/man
+}
+
+check() {
+  cd ${pkgbase}
+  py.test
+  py.test2
+}
+
+package_sshtunnel() {
+  depends=('python' 'python-sshtunnel' 'python-setuptools')
+  pkgdesc+=' (CLI)'
+  cd ${pkgbase}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -d "${pkgdir}/usr/share/"{licenses,doc,man/man1}
+  ln -s /usr/share/licenses/python-sshtunnel "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -s /usr/share/doc/python-sshtunnel "${pkgdir}/usr/share/doc/${pkgname}"
+  ln -s /usr/share/man/man1/python-sshtunnel.1.gz "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz"
+
+  rm -r "${pkgdir}/usr/lib"
+}
+
+package_python-sshtunnel() {
+  depends=('python' 'python-paramiko')
+  cd ${pkgbase}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 README.rst changelog.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/man/sshtunnel.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+
+  rm -r "${pkgdir}/usr/bin"
+}
+
+package_python2-sshtunnel() {
+  depends=('python2' 'python2-paramiko')
+  cd ${pkgbase}
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 README.rst changelog.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 docs/_build2/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build2/man/sshtunnel.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+
+  rm -r "${pkgdir}/usr/bin"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list