diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .nvchecker.toml | 5 | ||||
-rw-r--r-- | PKGBUILD | 56 |
4 files changed, 50 insertions, 29 deletions
@@ -1,17 +1,20 @@ pkgbase = python-uqbar pkgdesc = Tools for building documentation with Sphinx, Graphviz and LaTeX - pkgver = 0.4.3 + pkgver = 0.7.4 pkgrel = 1 url = https://github.com/josiah-wolf-oberholtzer/uqbar arch = any license = MIT - depends = python + checkdepends = python-pytest-cov + checkdepends = graphviz + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel depends = python-sphinx depends = python-unidecode - depends = python-sphinx_rtd_theme - depends = python-sphinx-autodoc-typehints - source = https://github.com/josiah-wolf-oberholtzer/uqbar/archive/v0.4.3.tar.gz - sha256sums = e0c5b549d6cab3a74b6f3b1264ef06ce42824462a167403c9950bba643d97d9b + depends = python-black + source = python-uqbar-0.7.4.tar.gz::https://github.com/josiah-wolf-oberholtzer/uqbar/archive/v0.7.4.tar.gz + sha512sums = af89ebcd341064c0c3724c9241d4f3a51c804b44e75a2711cea8820035668eadcd8dda5f847a8f9acf9859a7b7908f243e7cc4c0f7bf1c8b85b3af0e749d30c2 pkgname = python-uqbar - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f59ec20aabf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*
\ No newline at end of file diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 000000000000..8eea23ba4b25 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,5 @@ +[python-uqbar] +source = "github" +github = "josiah-wolf-oberholtzer/uqbar" +use_latest_release = "true" +prefix = "v" @@ -1,29 +1,41 @@ -# Maintainer: Robert Kubosz <kubosz.robert@gmail.com> - -pkgname=python-uqbar -pkgver=0.4.3 +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +# Contributor: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Robert Kubosz <kubosz.robert@gmail.com> +_base=uqbar +pkgname=python-${_base} +pkgver=0.7.4 pkgrel=1 -pkgdesc='Tools for building documentation with Sphinx, Graphviz and LaTeX' -arch=('any') -url="https://github.com/josiah-wolf-oberholtzer/uqbar" -license=('MIT') -depends=( - 'python' - 'python-sphinx' - 'python-unidecode' - 'python-sphinx_rtd_theme' - 'python-sphinx-autodoc-typehints' - ) -source=("$url/archive/v$pkgver.tar.gz") -sha256sums=('e0c5b549d6cab3a74b6f3b1264ef06ce42824462a167403c9950bba643d97d9b') +pkgdesc="Tools for building documentation with Sphinx, Graphviz and LaTeX" +arch=(any) +url="https://github.com/josiah-wolf-oberholtzer/${_base}" +license=(MIT) +depends=(python-sphinx python-unidecode python-black) +makedepends=(python-build python-installer python-setuptools python-wheel) +checkdepends=(python-pytest-cov graphviz) +source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) +sha512sums=('af89ebcd341064c0c3724c9241d4f3a51c804b44e75a2711cea8820035668eadcd8dda5f847a8f9acf9859a7b7908f243e7cc4c0f7bf1c8b85b3af0e749d30c2') + +prepare() { + cd ${_base}-${pkgver} + sed -i '/sphinx_immaterial/d' docs/source/conf.py +} build() { - cd $srcdir/uqbar-$pkgver - python setup.py build + cd ${_base}-${pkgver} + python -m build --wheel --skip-dependency-check --no-isolation + PYTHONPATH="$PWD" make -C docs man +} + +check() { + cd ${_base}-${pkgver} + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python -m pytest tests } package() { - cd $srcdir/uqbar-$pkgver - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + cd ${_base}-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 "docs/build/man/${_base}.1" -t "${pkgdir}/usr/share/man/man1/" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |