From df6aaecc1f4d1b8c7738765effaff2b539874ec0 Mon Sep 17 00:00:00 2001 From: Keith Maxwell Date: Wed, 5 Feb 2020 11:47:36 +0000 Subject: testing/beancount: move py3-pytest to depends The bean-file command which is a part of this package uses pytest at run time. It is used indirectly through which is installed to `usr/lib/python3.8/site-packages/beancount/ingest/__init__.py` and uses pytest at line 13. Before this change: 1. Install beancount: `sudo apk add beancount` 2. Check that `py3-pytest` is not installed: `apk list --installed '*pytest*'` 3. Running `/usr/bin/bean-file` gives the output below: ``` Traceback (most recent call last): File "/usr/bin/bean-file", line 4, in from beancount.ingest.file import main; main() File "/usr/lib/python3.8/site-packages/beancount/ingest/__init__.py", line 13, in import pytest ModuleNotFoundError: No module named 'pytest' ``` After this change `/usr/bin/bean-file` behaves as expected. --- testing/beancount/APKBUILD | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testing/beancount/APKBUILD b/testing/beancount/APKBUILD index 10265fddaf..3e68ecf8c5 100644 --- a/testing/beancount/APKBUILD +++ b/testing/beancount/APKBUILD @@ -2,16 +2,15 @@ # Maintainer: Keith Maxwell pkgname=beancount pkgver=2.2.3 -pkgrel=1 +pkgrel=2 pkgdesc="Double-Entry Accounting from Text Files" url="http://furius.ca/beancount/" arch="all" license="GPL-2.0-only" depends="python3 py3-dateutil py3-ply py3-bottle py3-lxml py3-magic - py3-beautifulsoup4 py3-requests py3-chardet + py3-beautifulsoup4 py3-requests py3-chardet py3-pytest py3-google-api-python-client" makedepends="python3-dev py3-setuptools" -checkdepends="py3-pytest" source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/blais/beancount/get/$pkgver.tar.gz" # 0cd71fede0f3347a14ac2b7ed240b74d56a38887 2.2.1 builddir="$srcdir"/blais-$pkgname-ff1e2616b26a -- cgit v1.2.3