Fix namespace packaging
This commit is contained in:
Родитель
bc3788670d
Коммит
8cb98eeb74
|
@ -1,4 +1,3 @@
|
|||
from azure_functions_worker.utils.common import is_true_like
|
||||
from typing import List, Optional
|
||||
from types import ModuleType
|
||||
import importlib
|
||||
|
@ -15,7 +14,7 @@ from ..constants import (
|
|||
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT,
|
||||
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_39
|
||||
)
|
||||
from ..utils.common import is_python_version
|
||||
from ..utils.common import is_python_version, is_true_like
|
||||
from ..utils.wrappers import enable_feature_by
|
||||
|
||||
|
||||
|
|
|
@ -12,12 +12,6 @@ steps:
|
|||
inputs:
|
||||
disableAutoCwd: true
|
||||
scriptPath: 'pack/scripts/nix_deps.sh'
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
contents: |
|
||||
pack/utils/__init__.py
|
||||
targetFolder: '$(Build.ArtifactStagingDirectory)/azure'
|
||||
flattenFolders: true
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
contents: |
|
||||
|
|
|
@ -12,12 +12,6 @@ steps:
|
|||
- task: PowerShell@2
|
||||
inputs:
|
||||
filePath: 'pack\scripts\win_deps.ps1'
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
contents: |
|
||||
pack\utils\__init__.py
|
||||
targetFolder: '$(Build.ArtifactStagingDirectory)\azure'
|
||||
flattenFolders: true
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
contents: |
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
# Needed to make azure a namespace for package discovery
|
||||
from pkgutil import extend_path
|
||||
import typing
|
||||
__path__: typing.Iterable[str] = extend_path(__path__, __name__)
|
Загрузка…
Ссылка в новой задаче