| 1 |
{ |
| 2 |
// See https://go.microsoft.com/fwlink/?LinkId=733558 |
| 3 |
// for the documentation about the tasks.json format |
| 4 |
"version": "2.0.0", |
| 5 |
"tasks": [ |
| 6 |
{ |
| 7 |
"label": "Activate virtual environment", |
| 8 |
"type": "shell", |
| 9 |
"command": "source .venv/bin/activate" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"label": "Build package", |
| 13 |
"type": "shell", |
| 14 |
"command": "${command:python.interpreterPath}", |
| 15 |
"args": ["-m", "build"] |
| 16 |
}, |
| 17 |
{ |
| 18 |
"label": "Upload package to test", |
| 19 |
"type": "shell", |
| 20 |
"command": "${command:python.interpreterPath}", |
| 21 |
"args": [ |
| 22 |
"-m", "twine", "upload", |
| 23 |
"--repository", "testpypi", |
| 24 |
"dist/*" |
| 25 |
] |
| 26 |
} |
| 27 |
] |
| 28 |
} |