add pyside2 package (#25602)

pull/25616/head
Adeeb Shihadeh 3 years ago committed by GitHub
parent ed8d676870
commit c6b749fb96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .pre-commit-config.yaml
  2. 1
      Pipfile
  3. 1301
      Pipfile.lock
  4. 2
      selfdrive/athena/tests/helpers.py
  5. 2
      selfdrive/navd/navd.py
  6. 2
      selfdrive/ui/translations/create_badges.py
  7. 2
      system/hardware/tici/agnos.py
  8. 2
      system/hardware/tici/test_agnos_updater.py
  9. 2
      system/hardware/tici/tests/compare_casync_manifest.py
  10. 2
      tools/joystick/joystickd.py
  11. 4
      tools/lib/tests/test_readers.py
  12. 2
      tools/plotjuggler/juggle.py
  13. 2
      tools/scripts/fetch_image_from_route.py
  14. 2
      tools/scripts/setup_ssh_keys.py
  15. 4
      update_requirements.sh

@ -56,6 +56,10 @@ repos:
language: system language: system
types: [python] types: [python]
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)' exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)'
args:
- -rn
- -sn
- --rcfile=.pylintrc
- repo: local - repo: local
hooks: hooks:
- id: cppcheck - id: cppcheck

@ -88,6 +88,7 @@ urllib3 = "*"
utm = "*" utm = "*"
websocket_client = "*" websocket_client = "*"
hatanaka = "==2.4" hatanaka = "==2.4"
PySide2 = "*"
[requires] [requires]
python_version = "3.8" python_version = "3.8"

1301
Pipfile.lock generated

File diff suppressed because it is too large Load Diff

@ -116,7 +116,7 @@ def with_http_server(func):
with Timeout(2, 'HTTP Server seeding failed'): with Timeout(2, 'HTTP Server seeding failed'):
while True: while True:
try: try:
requests.put(f'http://{host}:{port}/qlog.bz2', data='') requests.put(f'http://{host}:{port}/qlog.bz2', data='', timeout=10)
break break
except requests.exceptions.ConnectionError: except requests.exceptions.ConnectionError:
time.sleep(0.1) time.sleep(0.1)

@ -135,7 +135,7 @@ class RouteEngine:
url = self.mapbox_host + f'/directions/v5/mapbox/driving-traffic/{self.last_position.longitude},{self.last_position.latitude};{destination.longitude},{destination.latitude}' url = self.mapbox_host + f'/directions/v5/mapbox/driving-traffic/{self.last_position.longitude},{self.last_position.latitude};{destination.longitude},{destination.latitude}'
try: try:
resp = requests.get(url, params=params) resp = requests.get(url, params=params, timeout=10)
resp.raise_for_status() resp.raise_for_status()
r = resp.json() r = resp.json()

@ -30,7 +30,7 @@ if __name__ == "__main__":
percent_finished = int(100 - (unfinished_translations / total_translations * 100.)) percent_finished = int(100 - (unfinished_translations / total_translations * 100.))
color = "green" if percent_finished == 100 else "orange" if percent_finished >= 70 else "red" color = "green" if percent_finished == 100 else "orange" if percent_finished >= 70 else "red"
r = requests.get(f"https://img.shields.io/badge/LANGUAGE {name}-{percent_finished}%25 complete-{color}") r = requests.get(f"https://img.shields.io/badge/LANGUAGE {name}-{percent_finished}%25 complete-{color}", timeout=10)
assert r.status_code == 200, "Error downloading badge" assert r.status_code == 200, "Error downloading badge"
content_svg = r.content.decode("utf-8") content_svg = r.content.decode("utf-8")

@ -20,7 +20,7 @@ class StreamingDecompressor:
def __init__(self, url: str) -> None: def __init__(self, url: str) -> None:
self.buf = b"" self.buf = b""
self.req = requests.get(url, stream=True, headers={'Accept-Encoding': None}) # type: ignore self.req = requests.get(url, stream=True, headers={'Accept-Encoding': None}) # type: ignore # pylint: disable=missing-timeout
self.it = self.req.iter_content(chunk_size=1024 * 1024) self.it = self.req.iter_content(chunk_size=1024 * 1024)
self.decompressor = lzma.LZMADecompressor(format=lzma.FORMAT_AUTO) self.decompressor = lzma.LZMADecompressor(format=lzma.FORMAT_AUTO)
self.eof = False self.eof = False

@ -15,7 +15,7 @@ class TestAgnosUpdater(unittest.TestCase):
m = json.load(f) m = json.load(f)
for img in m: for img in m:
r = requests.head(img['url']) r = requests.head(img['url'], timeout=10)
r.raise_for_status() r.raise_for_status()
self.assertEqual(r.headers['Content-Type'], "application/x-xz") self.assertEqual(r.headers['Content-Type'], "application/x-xz")
if not img['sparse']: if not img['sparse']:

@ -17,7 +17,7 @@ def get_chunk_download_size(chunk):
if os.path.isfile(path): if os.path.isfile(path):
return os.path.getsize(path) return os.path.getsize(path)
else: else:
r = requests.head(path) r = requests.head(path, timeout=10)
r.raise_for_status() r.raise_for_status()
return int(r.headers['content-length']) return int(r.headers['content-length'])

@ -77,7 +77,7 @@ def send_thread(joystick):
print('\n' + ', '.join(f'{name}: {round(v, 3)}' for name, v in joystick.axes_values.items())) print('\n' + ', '.join(f'{name}: {round(v, 3)}' for name, v in joystick.axes_values.items()))
if "WEB" in os.environ: if "WEB" in os.environ:
import requests import requests
requests.get("http://"+os.environ["WEB"]+":5000/control/%f/%f" % tuple([joystick.axes_values[a] for a in joystick.axes_order][::-1])) requests.get("http://"+os.environ["WEB"]+":5000/control/%f/%f" % tuple([joystick.axes_values[a] for a in joystick.axes_order][::-1]), timeout=None)
rk.keep_time() rk.keep_time()
def joystick_thread(use_keyboard): def joystick_thread(use_keyboard):

@ -21,7 +21,7 @@ class TestReaders(unittest.TestCase):
self.assertEqual(hist['logMessage'], 6857) self.assertEqual(hist['logMessage'], 6857)
with tempfile.NamedTemporaryFile(suffix=".bz2") as fp: with tempfile.NamedTemporaryFile(suffix=".bz2") as fp:
r = requests.get("https://github.com/commaai/comma2k19/blob/master/Example_1/b0c9d2329ad1606b%7C2018-08-02--08-34-47/40/raw_log.bz2?raw=true") r = requests.get("https://github.com/commaai/comma2k19/blob/master/Example_1/b0c9d2329ad1606b%7C2018-08-02--08-34-47/40/raw_log.bz2?raw=true", timeout=10)
fp.write(r.content) fp.write(r.content)
fp.flush() fp.flush()
@ -53,7 +53,7 @@ class TestReaders(unittest.TestCase):
assert np.all(frame_first_30[15] == frame_15[0]) assert np.all(frame_first_30[15] == frame_15[0])
with tempfile.NamedTemporaryFile(suffix=".hevc") as fp: with tempfile.NamedTemporaryFile(suffix=".hevc") as fp:
r = requests.get("https://github.com/commaai/comma2k19/blob/master/Example_1/b0c9d2329ad1606b%7C2018-08-02--08-34-47/40/video.hevc?raw=true") r = requests.get("https://github.com/commaai/comma2k19/blob/master/Example_1/b0c9d2329ad1606b%7C2018-08-02--08-34-47/40/video.hevc?raw=true", timeout=10)
fp.write(r.content) fp.write(r.content)
fp.flush() fp.flush()

@ -37,7 +37,7 @@ def install():
os.mkdir(INSTALL_DIR) os.mkdir(INSTALL_DIR)
url = os.path.join(RELEASES_URL, m + ".tar.gz") url = os.path.join(RELEASES_URL, m + ".tar.gz")
with requests.get(url, stream=True) as r, tempfile.NamedTemporaryFile() as tmp: with requests.get(url, stream=True, timeout=10) as r, tempfile.NamedTemporaryFile() as tmp:
r.raise_for_status() r.raise_for_status()
with open(tmp.name, 'wb') as tmpf: with open(tmp.name, 'wb') as tmpf:
for chunk in r.iter_content(chunk_size=1024*1024): for chunk in r.iter_content(chunk_size=1024*1024):

@ -18,7 +18,7 @@ segment = int(sys.argv[2])
frame = int(sys.argv[3]) frame = int(sys.argv[3])
url = 'https://api.commadotai.com/v1/route/'+sys.argv[1]+"/files" url = 'https://api.commadotai.com/v1/route/'+sys.argv[1]+"/files"
r = requests.get(url, headers={"Authorization": "JWT "+jwt}) r = requests.get(url, headers={"Authorization": "JWT "+jwt}, timeout=10)
assert r.status_code == 200 assert r.status_code == 200
print("got api response") print("got api response")

@ -11,7 +11,7 @@ if __name__ == "__main__":
exit(1) exit(1)
username = sys.argv[1] username = sys.argv[1]
keys = requests.get(f"https://github.com/{username}.keys") keys = requests.get(f"https://github.com/{username}.keys", timeout=10)
if keys.status_code == 200: if keys.status_code == 200:
Params().put("GithubSshKeys", keys.text) Params().put("GithubSshKeys", keys.text)

@ -44,6 +44,7 @@ pip install pip==21.3.1
pip install pipenv==2021.11.23 pip install pipenv==2021.11.23
if [ -d "./xx" ]; then if [ -d "./xx" ]; then
echo "WARNING: using xx Pipfile ******"
export PIPENV_SYSTEM=1 export PIPENV_SYSTEM=1
export PIPENV_PIPFILE=./xx/Pipfile export PIPENV_PIPFILE=./xx/Pipfile
fi fi
@ -56,7 +57,8 @@ else
fi fi
echo "pip packages install..." echo "pip packages install..."
pipenv install --dev --deploy --clear pipenv sync --dev
pipenv --clear
pyenv rehash pyenv rehash
echo "pre-commit hooks install..." echo "pre-commit hooks install..."

Loading…
Cancel
Save