venv for Python setup (#653)

* Python uses venv

* Small fixes to python calls
This commit is contained in:
kaczmarczyck
2023-11-07 05:13:21 +01:00
committed by GitHub
parent 67e3d46291
commit 778102712f
11 changed files with 33 additions and 11 deletions

1
tools/authenticator_config.py Executable file → Normal file
View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!py_virtual_env/bin/python3
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");

1
tools/deploy_partition.py Executable file → Normal file
View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
# Copyright 2020-2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");

View File

@@ -16,4 +16,6 @@
# Ensure we are at the project root directory
cd $(readlink -f $(dirname $0))/..
export PATH="py_virtual_env/bin:$PATH"
pylint --score=n `git ls-files --deduplicate --exclude-standard --full-name '*.py'`

View File

@@ -1,3 +1,16 @@
# Copyright 2021-2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""These tests verify the functionality of the VendorHID interface."""
import fido2
from fido2 import ctap