aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2020-04-12 14:37:21 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-04-12 13:46:24 +0000
commitf40b381639c404fc93ec1a8fa011e4c35a26ddfb (patch)
tree7897bebaedf326b445c389bb0aeb09a71ddee728
parentc3db2c658e240402eae6c52403055ae63d43ed5e (diff)
downloadaports-f40b381639c404fc93ec1a8fa011e4c35a26ddfb.tar.gz
aports-f40b381639c404fc93ec1a8fa011e4c35a26ddfb.tar.bz2
aports-f40b381639c404fc93ec1a8fa011e4c35a26ddfb.tar.xz
main/py3-future: add missing dependency
Before this change: $ dabuild sh $ sudo apk add py3-future >/dev/null && futurize --version Traceback (most recent call last): File "/usr/bin/futurize", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources' This change adds py3-setuptools as a runtime dependency because pkg_resources is imported by a file installed into /usr/bin/: $ grep pkg_resources /usr/bin/futurize from pkg_resources import load_entry_point pkg_resources is part of py3-setuptools: $ apk info -L py3-setuptools | grep pkg_resources/__init__.py usr/lib/python3.8/site-packages/pkg_resources/__init__.py After this change: $ dabuild sh $ sudo apk add py3-future >/dev/null && futurize --version 0.18.2
-rw-r--r--main/py3-future/APKBUILD9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/py3-future/APKBUILD b/main/py3-future/APKBUILD
index 498125248f..cff1042445 100644
--- a/main/py3-future/APKBUILD
+++ b/main/py3-future/APKBUILD
@@ -1,17 +1,16 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-future
-_pkgname=python-future
+_pkgname=future
pkgver=0.18.2
-pkgrel=0
+pkgrel=1
pkgdesc="Easy, clean, reliable Python 2/3 compatibility"
url="http://python-future.org/"
arch="noarch"
license="MIT"
-depends="python3"
-makedepends="py3-setuptools"
+depends="python3 py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz"
-builddir="$srcdir/${_pkgname/python-/}-$pkgver"
+builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-future" # Backwards compatibility
provides="py-future=$pkgver-r$pkgrel" # Backwards compatibility