diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 36 insertions, 27 deletions
@@ -1,14 +1,16 @@ pkgbase = python-sphinx-comments - pkgdesc = hypothes.is interaction layer with Sphinx. + pkgdesc = Add comments and annotation to your documentation pkgver = 0.0.3 - pkgrel = 2 + pkgrel = 3 url = https://github.com/executablebooks/sphinx-comments arch = any license = MIT - depends = python - depends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel depends = python-sphinx - source = sphinx-comments-0.0.3.tgz::https://github.com/executablebooks/sphinx-comments/archive/v0.0.3.tar.gz - sha256sums = f0978c3f8eeb4f10711493f11cd8c6c0fc3dd61899ed593660c728741c331b40 + source = sphinx-comments-0.0.3.tar.gz::https://github.com/executablebooks/sphinx-comments/archive/v0.0.3.tar.gz + sha512sums = e2172341a9d5474940251edaee290be9f3c0eed54750e6798d5f6c1da2a774690a087f4971b107eaee298b6062a0c0f76aa51df36be8073a1b205f96906848a3 pkgname = python-sphinx-comments 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 @@ -1,27 +1,33 @@ -# Maintainer: Marc Fehling <mafehling.git@gmail.com> -pkgname=('python-sphinx-comments') -_pkgname=('sphinx-comments') -pkgver='0.0.3' -pkgrel=2 -pkgdesc="hypothes.is interaction layer with Sphinx." -url="https://github.com/executablebooks/sphinx-comments" -depends=('python' - 'python-setuptools' - 'python-sphinx' -) -checkdepends=() -makedepends=() -license=('MIT') -arch=("any") -source=("${_pkgname}-${pkgver}.tgz::https://github.com/executablebooks/${_pkgname}/archive/v${pkgver}.tar.gz") -sha256sums=('f0978c3f8eeb4f10711493f11cd8c6c0fc3dd61899ed593660c728741c331b40') +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +# Contributor: Marc Fehling <mafehling.git@gmail.com> +_base=sphinx-comments +pkgname=python-${_base} +pkgdesc="Add comments and annotation to your documentation" +pkgver=0.0.3 +pkgrel=3 +arch=(any) +url="https://github.com/executablebooks/${_base}" +license=(MIT) +depends=(python-sphinx) +makedepends=(python-build python-installer python-setuptools python-wheel) +# checkdepends=(python-pytest-regressions python-myst-parser python-beautifulsoup4) +source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) +sha512sums=('e2172341a9d5474940251edaee290be9f3c0eed54750e6798d5f6c1da2a774690a087f4971b107eaee298b6062a0c0f76aa51df36be8073a1b205f96906848a3') build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build + cd ${_base}-${pkgver} + python -m build --wheel --skip-dependency-check --no-isolation } +# 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 +# } + package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + cd ${_base}-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |