Hi!
I'm currently working on the Python SDK for Oracle's Cloud platform [1].
The package comes with a testsuite which currently fails as it tries to download
dependencies for a Python environment (see below). I have therefore currently disabled
the testsuite but would naturally like to enable it.
Can anyone give me a hint how to prevent tox from creating a Python environment and
install the build dependencies and just run the tests in the rpmbuild build environment?
Thanks,
Adrian
[1] https://build.opensuse.org/package/show/home:glaubitz:branches:devel:languag...
[ 55s] py27 create: /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py27
[ 56s] py27 installdeps: -r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt
[ 64s] ERROR: invocation failed (exit code 1), logfile: /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py27/log/py27-1.log
[ 64s] ================================== log start ===================================
[ 64s] Collecting certifi (from -r /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt (line 1))
[ 64s] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/certifi/
[ 64s] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/certifi/
[ 64s] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/certifi/
[ 64s] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/certifi/
[ 64s] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/certifi/
[ 64s] Could not find a version that satisfies the requirement certifi (from -r /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt (line 1)) (from versions: )
[ 64s] No matching distribution found for certifi (from -r /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt (line 1))
[ 64s]
[ 64s] =================================== log end ====================================
[ 64s] ERROR: could not install deps [-r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt]; v = InvocationError('/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py27/bin/python -m pip install -r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt', 1)
[ 64s] py37 create: /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py37
[ 66s] py37 installdeps: -r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt
[ 74s] ERROR: invocation failed (exit code 1), logfile: /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py37/log/py37-1.log
[ 74s] ================================== log start ===================================
[ 74s] Collecting certifi (from -r /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt (line 1))
[ 74s] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/certifi/
[ 74s] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/certifi/
[ 74s] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/certifi/
[ 74s] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/certifi/
[ 74s] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/certifi/
[ 74s] Could not find a version that satisfies the requirement certifi (from -r /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt (line 1)) (from versions: )
[ 74s] No matching distribution found for certifi (from -r /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt (line 1))
[ 74s]
[ 74s] =================================== log end ====================================
[ 74s] ERROR: could not install deps [-r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt]; v = InvocationError('/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py37/bin/python -m pip install -r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt', 1)
[ 74s] flake8 create: /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/flake8
[ 77s] flake8 installdeps: flake8
[ 84s] ERROR: invocation failed (exit code 1), logfile: /home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/flake8/log/flake8-1.log
[ 84s] ================================== log start ===================================
[ 84s] Collecting flake8
[ 84s] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flake8/
[ 84s] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flake8/
[ 84s] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flake8/
[ 84s] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flake8/
[ 84s] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flake8/
[ 84s] Could not find a version that satisfies the requirement flake8 (from versions: )
[ 84s] No matching distribution found for flake8
[ 84s]
[ 84s] =================================== log end ====================================
[ 84s] ERROR: could not install deps [flake8]; v = InvocationError('/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/flake8/bin/python -m pip install flake8', 1)
[ 84s] ___________________________________ summary ____________________________________
[ 84s] ERROR: py27: could not install deps [-r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt]; v = InvocationError('/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py27/bin/python -m pip install -r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt', 1)
[ 84s] ERROR: py37: could not install deps [-r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt]; v = InvocationError('/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/py37/bin/python -m pip install -r/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/requirements.txt', 1)
[ 84s] ERROR: flake8: could not install deps [flake8]; v = InvocationError('/home/abuild/rpmbuild/BUILD/oci-python-sdk-2.2.13/.tox/flake8/bin/python -m pip install flake8', 1)
[ 84s] error: Bad exit status from /var/tmp/rpm-tmp.7h7QVX (%check)
[ 84s]
[ 84s]
[ 84s] RPM build errors:
[ 84s] Bad exit status from /var/tmp/rpm-tmp.7h7QVX (%check)
[ 84s]
[ 84s] suse-laptop failed "build python-oci-sdk.spec" at Tue Jun 18 12:39:10 UTC 2019.
[ 84s]