Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
requests
setuptools
packaging
pytest
websockets
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
name="tofupilot",
version="1.9.3",
packages=find_packages(),
install_requires=["requests", "setuptools", "packaging", "pytest", "websockets"],
entry_points={
"pytest11": [
"tofupilot = tofupilot.plugin", # Registering the pytest plugin
],
},
install_requires=["requests", "setuptools", "packaging", "websockets"],
author="Félix Berthier",
author_email="felix.berthier@tofupilot.com",
description="The official Python client for the TofuPilot API",
Expand Down
1 change: 0 additions & 1 deletion tofupilot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
"""

from .client import TofuPilotClient
from .plugin import numeric_step, string_step, conf
from .models import MeasurementOutcome, PhaseOutcome
2 changes: 2 additions & 0 deletions tofupilot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def __init__(self, api_key: Optional[str] = None, url: Optional[str] = None):
"Content-Type": "application/json",
"Authorization": f"Bearer {self._api_key}",
}
# Immediately clear the API key from memory after setting the header
self._api_key = None
self._max_attachments = CLIENT_MAX_ATTACHMENTS
self._max_file_size = FILE_MAX_SIZE
check_latest_version(self._logger, self._current_version, "tofupilot")
Expand Down
Loading