[arch-commits] Commit in python-sphinx-autodoc-typehints/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:38:26 UTC 2019
Date: Saturday, October 26, 2019 @ 04:38:25
Author: felixonmars
Revision: 520069
archrelease: copy trunk to community-staging-any
Added:
python-sphinx-autodoc-typehints/repos/community-staging-any/
python-sphinx-autodoc-typehints/repos/community-staging-any/PKGBUILD
(from rev 520067, python-sphinx-autodoc-typehints/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-sphinx-autodoc-typehints/repos/community-staging-any/PKGBUILD (from rev 520067, python-sphinx-autodoc-typehints/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:38:25 UTC (rev 520069)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-sphinx-autodoc-typehints
+_pyname=${pkgname/python-/}
+_gitcommit=a1afbaba3067aee273ec0b14036e0f4ac44f79a9
+pkgver=1.8.0
+pkgrel=2
+pkgdesc='Type hints support for the Sphinx autodoc extension'
+url='https://github.com/agronholm/sphinx-autodoc-typehints'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-sphinx' 'python-typing_extensions')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest')
+source=("git+https://github.com/agronholm/sphinx-autodoc-typehints#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${_pyname}
+ git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd ${_pyname}
+ python setup.py build
+}
+
+check() {
+ cd ${_pyname}
+ PYTHONPATH=. py.test -k 'not test_sphinx_output'
+}
+
+package() {
+ cd ${_pyname}
+ python setup.py install -O1 --root="${pkgdir}" --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list