Skip to content

Commit

Permalink
Updated versions in pyproject.toml and removed use of distutils.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhellander committed Jun 5, 2024
1 parent 75956dc commit 69a7a71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions fedn/network/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import time
import uuid
from datetime import datetime
from distutils.dir_util import copy_tree
from io import BytesIO
from shutil import copytree

import grpc
from cryptography.hazmat.primitives.serialization import Encoding
Expand All @@ -22,11 +22,13 @@
import fedn.network.grpc.fedn_pb2 as fedn
import fedn.network.grpc.fedn_pb2_grpc as rpc
from fedn.common.config import FEDN_AUTH_SCHEME, FEDN_PACKAGE_EXTRACT_DIR
from fedn.common.log_config import logger, set_log_level_from_string, set_log_stream
from fedn.common.log_config import (logger, set_log_level_from_string,
set_log_stream)
from fedn.network.clients.connect import ConnectorClient, Status
from fedn.network.clients.package import PackageRuntime
from fedn.network.clients.state import ClientState, ClientStateToString
from fedn.network.combiner.modelservice import get_tmp_path, upload_request_generator
from fedn.network.combiner.modelservice import (get_tmp_path,
upload_request_generator)
from fedn.utils.dispatcher import Dispatcher
from fedn.utils.helpers.helpers import get_helper

Expand Down Expand Up @@ -340,7 +342,7 @@ def _initialize_dispatcher(self, config):
}
from_path = os.path.join(os.getcwd(), "client")

copy_tree(from_path, self.run_path)
copytree(from_path, self.run_path)
self.dispatcher = Dispatcher(dispatch_config, self.run_path)
# Get or create python environment
activate_cmd = self.dispatcher._get_or_create_python_env()
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

requires-python = '>=3.8,<3.12'
requires-python = '>=3.8,<3.13'
dependencies = [
"requests",
"urllib3>=1.26.4",
Expand Down

0 comments on commit 69a7a71

Please sign in to comment.