1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 07:30:37 +01:00

add python config

This commit is contained in:
ふぁ 2024-11-06 23:50:52 +09:00
parent 4b27150977
commit 7b7e7b0282
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA

15
.vscode/tasks.json vendored
View file

@ -4,6 +4,14 @@
{
"label": "build-task",
"type": "shell",
"osx": {
"command": [
"source .venv/bin/activate;",
"python3 tools/build.py;",
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
"python3 -m pip install ./python_generated;"
]
},
"linux": {
"command": [
"source .venv/bin/activate;",
@ -27,6 +35,13 @@
"runOptions": {
"runOn": "folderOpen"
},
"osx": {
"command": [
"python3.10 -m venv .venv;",
".venv/bin/python3 -m pip install -r requirements.txt;",
"curl https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.9.0/openapi-generator-cli-7.9.0.jar -o openapi-generator-cli.jar;"
]
},
"linux": {
"command": [
"python3 -m venv .venv;",