Skip to content

Commit 251c4d0

Browse files
authored
fastapi address feedback (#13)
* fastapi address feedback * delete
1 parent e2bb6b1 commit 251c4d0

File tree

7 files changed

+55
-92
lines changed

7 files changed

+55
-92
lines changed

.github/workflows/ci_ut_ext_fastapi_workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
run: |
3434
python -m pip install --upgrade pip
3535
python -m pip install -U -e .[dev]
36-
python -m pip install -e ../azure-functions-extension-base
3736
3837
- name: Run Unit Tests
3938
working-directory: azure-functions-extension-fastapi

azure-functions-extension-fastapi/azure/functions/extension/fastapi/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313

1414
__all__ = ['WebServer', 'WebApp', 'Request', 'Response', 'StreamingResponse', 'HTMLResponse',
1515
'PlainTextResponse', 'RedirectResponse', 'JSONResponse', 'UJSONResponse',
16-
'ORJSONResponse', 'FileResponse']
16+
'ORJSONResponse', 'FileResponse']
17+
18+
__version__ = "1.0.0a1"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-functions-extension-fastapi"
7+
dynamic = ["version"]
8+
requires-python = ">=3.8"
9+
authors = [{ name = "Azure Functions team at Microsoft Corp.", email = "[email protected]"}]
10+
description = "FastApi Python worker extension for Azure Functions."
11+
readme = "README.md"
12+
license = {text = "MIT License"}
13+
classifiers= [
14+
'License :: OSI Approved :: MIT License',
15+
'Intended Audience :: Developers',
16+
'Programming Language :: Python :: 3',
17+
'Programming Language :: Python :: 3.8',
18+
'Programming Language :: Python :: 3.9',
19+
'Programming Language :: Python :: 3.10',
20+
'Programming Language :: Python :: 3.11',
21+
'Operating System :: Microsoft :: Windows',
22+
'Operating System :: POSIX',
23+
'Operating System :: MacOS :: MacOS X',
24+
'Environment :: Web Environment',
25+
'Development Status :: 5 - Production/Stable',
26+
]
27+
dependencies = [
28+
'azure-functions-extension-base',
29+
'fastapi==0.110.0',
30+
'uvicorn==0.28.0'
31+
]
32+
33+
[project.optional-dependencies]
34+
dev = [
35+
'pytest',
36+
'pytest-cov',
37+
'coverage',
38+
'pytest-instafail',
39+
'pre-commit'
40+
]
41+
42+
[tool.setuptools.dynamic]
43+
version = {attr = "azure.functions.extension.fastapi.__version__"}
44+
45+
[tool.setuptools.packages.find]
46+
exclude = [
47+
'azure.functions.extension', 'azure.functions',
48+
'azure', 'tests', 'samples'
49+
]
50+

azure-functions-extension-fastapi/samples/fastapi_samples_streaming_download/local.settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "",
6-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
76
}
87
}

azure-functions-extension-fastapi/samples/fastapi_samples_streaming_upload/local.settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "",
6-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
76
}
87
}

azure-functions-extension-fastapi/setup.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

azure-functions-extension-fastapi/tests/test_code_quality.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)