diff options
author | Luis Martinez | 2022-02-22 12:21:50 -0600 |
---|---|---|
committer | Luis Martinez | 2022-02-22 12:21:50 -0600 |
commit | 6c33a03c7066f240929c660e36588bb37f293b0f (patch) | |
tree | 5ffb24cbafb9f753c92ba807d20023f3d1168398 | |
parent | b86f22e75c9d06850b0df2126c329ed28ea972f4 (diff) | |
download | aur-6c33a03c7066f240929c660e36588bb37f293b0f.tar.gz |
package cleanup
* removed commented code
* use python-installer for building
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 7 insertions, 16 deletions
@@ -1,7 +1,7 @@ pkgbase = python-pydna pkgdesc = Data structures for double-stranded DNA & simulation of homologous recombination pkgver = 4.0.7 - pkgrel = 1 + pkgrel = 2 url = https://github.com/bjornfjohansson/pydna changelog = CHANGELOG.md arch = any @@ -11,7 +11,7 @@ pkgbase = python-pydna checkdepends = python-codon-adaptation-index makedepends = git makedepends = python-build - makedepends = python-install + makedepends = python-installer makedepends = python-wheel makedepends = python-sphinx makedepends = python-setuptools @@ -3,7 +3,7 @@ pkgname=python-pydna pkgver=4.0.7 -pkgrel=1 +pkgrel=2 pkgdesc='Data structures for double-stranded DNA & simulation of homologous recombination' arch=('any') url='https://github.com/bjornfjohansson/pydna' @@ -24,7 +24,7 @@ optdepends=( makedepends=( 'git' 'python-build' - 'python-install' + 'python-installer' 'python-wheel' 'python-sphinx' 'python-setuptools' @@ -35,29 +35,20 @@ changelog=CHANGELOG.md source=("$pkgname::git+$url#tag=$pkgver") sha256sums=('SKIP') -## FIXME: sphinx-build cannot find pydna -# prepare() { -# patch -p1 -d "$pkgname-$pkgver" < 001-python-path.patch -# } - build() { cd "$pkgname" - python -m build --wheel --skip-dependency-check --no-isolation - ## FIXME: sphinx-build cannot find pydna metadata - # cd docs - # PYTHONPATH=../ sphinx-build -b man ./ _build/man + python -m build --wheel --no-isolation } check() { cd "$pkgname" - ## FIXME: certain tests fail - PYTHONPATH=./ pytest -x --disable-warnings || true + PYTHONPATH=./src pytest -x --disable-warnings } package() { export PYTHONHASHSEED=0 cd "$pkgname" - python -m install --optimize=1 --destdir="$pkgdir/" dist/*.whl + python -m installer --destdir="$pkgdir/" dist/*.whl install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" } |