PR#4241: fix check-api for python3 bin and requirement of setuptools
Merges #4241 https://pagure.io/koji/pull-request/4241 Fixes: #4240 https://pagure.io/koji/issue/4240 [devtools] check-api requires persent of /usr/bin/python
This commit is contained in:
commit
589e6bbb96
11 changed files with 14 additions and 5 deletions
|
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python3
|
||||
import inspect
|
||||
import json
|
||||
import os
|
||||
import os.path
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from collections import OrderedDict
|
||||
|
||||
# import koji code from our checkout
|
||||
|
|
@ -18,7 +17,7 @@ sys.path.insert(0, kojitop)
|
|||
|
||||
setup = kojitop + '/setup.py'
|
||||
try:
|
||||
proc = subprocess.Popen(['python', setup, '--version'], stdout=subprocess.PIPE)
|
||||
proc = subprocess.Popen([sys.executable, setup, '--version'], stdout=subprocess.PIPE)
|
||||
(out, _) = proc.communicate()
|
||||
VERSTR = out.decode().strip()
|
||||
VERSION = tuple([int(x) for x in VERSTR.split('.')])
|
||||
|
|
@ -30,10 +29,10 @@ except Exception:
|
|||
|
||||
import koji
|
||||
import koji.arch
|
||||
import koji.plugin
|
||||
import koji.tasks
|
||||
import koji.util
|
||||
import koji.xmlrpcplus
|
||||
import koji.tasks
|
||||
import koji.plugin
|
||||
|
||||
if VERSION >= (1, 32, 0):
|
||||
from kojihub import kojixmlrpc
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ RUN \
|
|||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -11,3 +11,4 @@ Cheetah3
|
|||
psycopg2-binary
|
||||
python-multilib
|
||||
python-qpid-proton
|
||||
setuptools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue