Skip to content

Commit

Permalink
Test reducing requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Shah, Karan <[email protected]>
  • Loading branch information
MasterSkepticista committed Dec 3, 2024
1 parent 6191d82 commit 6017900
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions openfl/interface/interactive_api/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from shutil import copytree, ignore_patterns, make_archive
from typing import Dict, Tuple

from tensorboardX import SummaryWriter

from openfl.component.assigner.tasks import Task, TrainTask, ValidateTask
from openfl.federated import Plan
from openfl.interface.aggregation_functions import AggregationFunction, WeightedAverage
Expand Down Expand Up @@ -206,6 +204,8 @@ def stream_metrics(self, tensorboard_logs: bool = True) -> None:
def write_tensorboard_metric(self, metric: dict) -> None:
"""Write metric callback."""
if not self.summary_writer:
from tensorboardX import SummaryWriter

self.summary_writer = SummaryWriter(f"./logs/{self.experiment_name}", flush_secs=5)

self.summary_writer.add_scalar(
Expand Down
31 changes: 13 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,23 @@ def run(self):
url='https://github.com/securefederatedai/openfl',
packages=find_packages(include=("openfl", "openfl.*", "openfl-docker", "openfl-workspace")),
include_package_data=True,
setup_requires=['grpcio-tools>=1.56.2,<1.66.0'],
setup_requires=['grpcio-tools>=1.56.2,<1.66.0'], # ensure it is in-sync with `install_requires`
install_requires=[
'Click==8.1.7',
'PyYAML>=5.4.1',
'cloudpickle',
'cryptography>=3.4.6',
'docker',
'dynaconf==3.2.6',
'flatten_json',
'grpcio>=1.56.2,<1.66.0',
'ipykernel',
'jupyterlab',
'click',
'psutil',
'pyyaml',
'rich',
'dynaconf',
'tqdm',
'numpy',
'requests',
'cloudpickle',
'cryptography',
'pandas',
'protobuf>=4.22,<6.0.0',
'pyzmq<=26.2.0',
'requests>=2.32.0',
'rich',
'scikit-learn',
'tensorboard',
'tensorboardX>=2.6',
'tqdm',
'flatten_json',
'protobuf>=4.22,<6.0.0',
'grpcio>=1.56.2,<1.66.0',
],
python_requires='>=3.8, <3.12',
project_urls={
Expand Down

0 comments on commit 6017900

Please sign in to comment.