mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 11:31:52 +08:00
remove python 3.5 support (#374)
This commit is contained in:
@ -21,14 +21,9 @@ cov exporter/opentelemetry-exporter-datadog
|
||||
cov instrumentation/opentelemetry-instrumentation-flask
|
||||
cov instrumentation/opentelemetry-instrumentation-requests
|
||||
cov instrumentation/opentelemetry-instrumentation-wsgi
|
||||
cov instrumentation/opentelemetry-instrumentation-aiohttp-client
|
||||
cov instrumentation/opentelemetry-instrumentation-asgi
|
||||
|
||||
# aiohttp is only supported on Python 3.5+.
|
||||
if [ ${PYTHON_VERSION_INFO[1]} -gt 4 ]; then
|
||||
cov instrumentation/opentelemetry-instrumentation-aiohttp-client
|
||||
# ext-asgi is only supported on Python 3.5+.
|
||||
if [ ${PYTHON_VERSION_INFO[1]} -gt 4 ]; then
|
||||
cov instrumentation/opentelemetry-instrumentation-asgi
|
||||
fi
|
||||
|
||||
coverage report --show-missing
|
||||
coverage xml
|
||||
|
@ -7,7 +7,6 @@ import shlex
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
from collections import namedtuple
|
||||
from configparser import ConfigParser
|
||||
from datetime import datetime
|
||||
from inspect import cleandoc
|
||||
@ -26,17 +25,7 @@ def unique(elems):
|
||||
seen.add(elem)
|
||||
|
||||
|
||||
try:
|
||||
subprocess_run = subprocess.run
|
||||
except AttributeError: # Py < 3.5 compat
|
||||
CompletedProcess = namedtuple("CompletedProcess", "returncode")
|
||||
|
||||
def subprocess_run(*args, **kwargs):
|
||||
check = kwargs.pop("check", False)
|
||||
if check:
|
||||
subprocess.check_call(*args, **kwargs)
|
||||
return CompletedProcess(returncode=0)
|
||||
return CompletedProcess(returncode=subprocess.call(*args, **kwargs))
|
||||
subprocess_run = subprocess.run
|
||||
|
||||
|
||||
def extraargs_help(calledcmd):
|
||||
|
Reference in New Issue
Block a user