Skip to content

Commit 2038019

Browse files
committed
a17: rename to azure_functions_worker_v2
1 parent e292f4a commit 2038019

35 files changed

+19
-19
lines changed

.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ omit =
4949
# Removing the imported libraries that might show up in this.
5050
*/azure/functions/*
5151
*/azure/*
52-
*/azure_functions_worker/_thirdparty/*
52+
*/azure_functions_worker_v2/_thirdparty/*

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
ignore = W503,E402,E731
77

88
exclude = .git, __pycache__, build, dist, .eggs, .github, .local, docs/,
9-
Samples, azure_functions_worker/protos/,
9+
Samples, azure_functions_worker_v2_v2/protos/,
1010
azure_functions_worker/utils/typing_inspect.py,
1111
tests/unittests/test_typing_inspect.py,
1212
tests/unittests/broken_functions/syntax_error/main.py,

.github/linters/tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ exclude =
2323
docs,
2424
Samples,
2525
__pycache__,
26-
azure_functions_worker/protos/,
27-
azure_functions_worker/_thirdparty/typing_inspect.py,
26+
azure_functions_worker_v2/protos/,
27+
azure_functions_worker_v2/_thirdparty/typing_inspect.py,
2828
tests/unittests/test_typing_inspect.py,
2929
.venv*,
3030
.env*,

.github/workflows/linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
# VALIDATE_PYTHON_PYLINT: false # disable pylint, as we have not configure it
5353
# VALIDATE_PYTHON_BLACK: false # same as above
5454
PYTHON_FLAKE8_CONFIG_FILE: tox.ini
55-
FILTER_REGEX_INCLUDE: azure_functions_worker/.*
55+
FILTER_REGEX_INCLUDE: azure_functions_worker_v2/.*
5656
FILTER_REGEX_EXCLUDE: tests/.*
5757
DEFAULT_BRANCH: dev
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.
File renamed without changes.

azure_functions_worker/http_v2.py azure_functions_worker_v2/http_v2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
PYTHON_ENABLE_INIT_INDEXING,
1414
X_MS_INVOCATION_ID,
1515
)
16-
from azure_functions_worker.logging import logger
16+
from azure_functions_worker_v2.logging import logger
1717
from .utils.env_state import is_envvar_false
1818

1919

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
VERSION = '0.0.0a1'
4+
VERSION = '1.0.0a17'

eng/templates/jobs/ci-unit-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
eng/scripts/install-dependencies.sh
2121
displayName: 'Install dependencies'
2222
- bash: |
23-
python -m pytest -q -n auto --dist loadfile --reruns 4 --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch tests/unittests
23+
python -m pytest -q -n auto --dist loadfile --reruns 4 --instafail --cov=./azure_functions_worker_v2 --cov-report xml --cov-branch tests/unittests
2424
displayName: "Running $(PYTHON_VERSION) Unit Tests"

mypy.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[azure_functions_worker/utils/typing_inspect.py]
1+
[azure_functions_worker_v2/utils/typing_inspect.py]
22
ignore_errors = True
33

44
[mypy]

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "azure-functions-runtime"
2+
name = "test-worker"
33
dynamic = ["version"]
44
description = "Python Language Worker for Azure Functions Runtime"
55
authors = [
@@ -86,9 +86,9 @@ profile = "black"
8686
line_length = 88
8787
multi_line_output = 3
8888
include_trailing_comma = true
89-
known_first_party = ["azure_functions_worker"]
89+
known_first_party = ["azure_functions_worker_v2"]
9090
default_section = "THIRDPARTY"
91-
src_paths = ["azure_functions_worker"]
91+
src_paths = ["azure_functions_worker_v2"]
9292
skip_glob = [
9393
"build",
9494
"dist",
@@ -109,4 +109,4 @@ skip_glob = [
109109
]
110110

111111
[tool.setuptools.dynamic]
112-
version = {attr = "azure_functions_worker.version.VERSION"}
112+
version = {attr = "azure_functions_worker_v2.version.VERSION"}

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ warn_return_any = True
1313
disallow_subclassing_any = False
1414
ignore_missing_imports = True
1515

16-
[mypy-azure_functions_worker.protos.*]
16+
[mypy-azure_functions_worker_v2.protos.*]
1717
ignore_errors = True
1818

19-
[mypy-azure_functions_worker._thirdparty.typing_inspect]
19+
[mypy-azure_functions_worker_v2._thirdparty.typing_inspect]
2020
ignore_errors = True

tests/unittests/test_code_quality.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_mypy(self):
1717

1818
try:
1919
subprocess.run(
20-
[sys.executable, '-m', 'mypy', '-m', 'azure_functions_worker'],
20+
[sys.executable, '-m', 'mypy', '-m', 'azure_functions_worker_v2'],
2121
check=True,
2222
stdout=subprocess.PIPE,
2323
stderr=subprocess.PIPE,

tests/unittests/test_handle_event.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from typing import Any
55
from unittest.mock import patch
66

7-
from azure_functions_worker.utils.constants import PYTHON_ENABLE_INIT_INDEXING
8-
from azure_functions_worker.handle_event import (worker_init_request,
7+
from azure_functions_worker_v2.utils.constants import PYTHON_ENABLE_INIT_INDEXING
8+
from azure_functions_worker_v2.handle_event import (worker_init_request,
99
functions_metadata_request,
1010
function_environment_reload_request)
1111
from tests.utils import testutils
@@ -111,7 +111,7 @@ async def test_functions_metadata_request(self):
111111

112112
async def run_init_then_meta(self):
113113
worker_request = WorkerRequest(name='worker_init_request',
114-
request=Request(FunctionRequest('hello')),
114+
request=Request(FunctionRequest('hello', BASIC_FUNCTION_DIRECTORY)),
115115
properties={'host': '123',
116116
'protos': protos})
117117
_ = await worker_init_request(worker_request)

0 commit comments

Comments
 (0)