File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed
modules/openapi-generator/src/main/resources/python-aiohttp
samples/server/petstore/python-aiohttp-srclayout Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,12 @@ def client(loop, aiohttp_client):
11
11
options = {
12
12
" swagger_ui" : True
13
13
}
14
- specification_dir = os.path.join(os.path.dirname(__file__), '..',{ {#pythonSrcRoot} }
15
- "{ {{.} }}",{ {/pythonSrcRoot} }
14
+ specification_dir = os.path.join(os.path.dirname(__file__), '..',
15
+ { {#lambda.forwardslash} }
16
+ { {#pythonSrcRoot} }
17
+ "{ {{.} }}",
18
+ { {/pythonSrcRoot} }
19
+ { {/lambda.forwardslash} }
16
20
'{ {packageName} }',
17
21
'openapi')
18
22
app = connexion.AioHttpApp(__name__, specification_dir=specification_dir,
Original file line number Diff line number Diff line change @@ -27,9 +27,13 @@ setup(
27
27
url="{ {packageUrl} }",
28
28
keywords=["OpenAPI", "{ {appName} }"],
29
29
install_requires=REQUIRES,
30
- packages=find_packages({ {#pythonSrcRoot} }"{ {{.} }}"{ {/pythonSrcRoot} }),{ {#pythonSrcRoot} }
31
- package_dir={ " " : " {{{.}}}" } ,{ {/pythonSrcRoot} }
32
- package_data={ ' ' : [' {{#pythonSrcRoot}}{{{.}}}/{{/pythonSrcRoot}}openapi/openapi.yaml' ]} ,
30
+ packages=find_packages({ {#lambda.forwardslash} }{ {#pythonSrcRoot} }"{ {{.} }}"{ {/pythonSrcRoot} }){ {/lambda.forwardslash} },
31
+ { {#lambda.forwardslash} }
32
+ { {#pythonSrcRoot} }
33
+ package_dir={ " " : " {{{.}}}" } ,
34
+ { {/pythonSrcRoot} }
35
+ { {/lambda.forwardslash} }
36
+ package_data={ ' ' : [' {{#lambda.forwardslash}}{{#pythonSrcRoot}}{{{.}}}/{{/pythonSrcRoot}}{{/lambda.forwardslash}}openapi/openapi.yaml' ]} ,
33
37
include_package_data=True,
34
38
entry_points={
35
39
' console_scripts' : [' {{packageName}}={{packageName}}.__main__:main' ]} ,
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ deps=-r{toxinidir}/requirements.txt
8
8
{ toxinidir}
9
9
10
10
commands=
11
- { {^useNose} }pytest --cov={ {{ pythonSrcRoot} }}{ {{packageName} }}{ {/useNose} }{ {#useNose} }nosetests{ {/useNose} }
11
+ { {^useNose} }pytest --cov={ {#lambda.forwardslash } } { {{ pythonSrcRoot} }} { {/lambda.forwardslash } }{ {{packageName} }}{ {/useNose} }{ {#useNose} }nosetests{ {/useNose} }
Original file line number Diff line number Diff line change 29
29
install_requires = REQUIRES ,
30
30
packages = find_packages ("src/" ),
31
31
package_dir = {"" : "src/" },
32
- package_data = {'' : ['src// openapi/openapi.yaml' ]},
32
+ package_data = {'' : ['src/openapi/openapi.yaml' ]},
33
33
include_package_data = True ,
34
34
entry_points = {
35
35
'console_scripts' : ['openapi_server=openapi_server.__main__:main' ]},
You can’t perform that action at this time.
0 commit comments