python/testtools: Fix REQUIRES for python2.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2021-05-06 18:29:20 +01:00 committed by Willy Sudiarto Raharjo
parent 074260c359
commit e4f2227dc4
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 9 additions and 8 deletions

View file

@ -1,9 +1,10 @@
Extensions to the Python standard library unit testing framework
testtools is a set of extensions to the Python standard librarys unit
testing framework. These extensions have been derived from many years of
experience with unit testing in Python and come from many different sources.
testtools is a set of extensions to the Python standard librarys unit
testing framework. These extensions have been derived from many years of
experience with unit testing in Python and come from many different
sources.
Note:
There is a cyclic dependency between fixtures package and testtools package.
Since these are python libraries, one has to just install both of them.
Note: There is a cyclic dependency between fixtures package and
testtools package. Since these are python libraries, one has to just
install both of them.

View file

@ -69,7 +69,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG
python2 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View file

@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/0d/72/3212c1723d49f5b58fca736dabdd2e7
MD5SUM="adef817b07ba24fd6d807fd41a4f1ef4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pbr extras python-mimeparse traceback2"
REQUIRES="pbr extras python2-mimeparse traceback2"
MAINTAINER="Nikos Giotis"
EMAIL="nikos.giotis@gmail.com"