Skip to content

Commit

Permalink
a21: remove old references to afw
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvictoria committed Feb 24, 2025
1 parent 2038019 commit 204bdbc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions azure_functions_worker_v2/bindings/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def _check_http_input_type_annotation(bind_name: str, pytype: type,
.check_type(pytype)

binding = get_binding(bind_name, is_deferred_binding)
logger.info("VICTORIA -- inside _check_http_input_type_annotation. Bind name: %s, binding: %s, pytype: %s, check: %s", bind_name, binding, pytype, binding.check_input_type_annotation(pytype))
return binding.check_input_type_annotation(pytype)


Expand All @@ -43,6 +44,7 @@ def _check_http_output_type_annotation(bind_name: str, pytype: type) -> bool:
return HttpV2Registry.ext_base().ResponseTrackerMeta.check_type(pytype)

binding = get_binding(bind_name)
logger.info("VICTORIA -- inside _check_http_output_type_annotation. Bind name: %s, binding: %s, pytype: %s, check: %s", bind_name, binding, pytype, binding.check_output_type_annotation(pytype))
return binding.check_output_type_annotation(pytype)


Expand All @@ -68,6 +70,7 @@ def load_binding_registry() -> None:

if func is None:
import azure.functions as func
logger.info(f"VICTORIA ---- azure-functions import succeeded: {func.__file__}")

global BINDING_REGISTRY
BINDING_REGISTRY = func.get_binding_registry() # type: ignore
Expand Down
1 change: 1 addition & 0 deletions azure_functions_worker_v2/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def index_function_app(function_path: str):
imported_module = importlib.import_module(module_name)

from azure.functions import FunctionRegister
logger.info(f"VICTORIA ---- FunctionRegister import succeeded: {FunctionRegister}")
app: Optional[FunctionRegister] = None
for i in imported_module.__dir__():
if isinstance(getattr(imported_module, i, None), FunctionRegister):
Expand Down
2 changes: 1 addition & 1 deletion azure_functions_worker_v2/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

VERSION = '1.0.0a17'
VERSION = '1.0.0a21'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
exclude = [
'eng', 'tests', 'pack'
'eng', 'tests', 'pack', 'azure_functions_worker'
]

[tool.isort]
Expand Down

0 comments on commit 204bdbc

Please sign in to comment.