{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "Update requirements.txt", "type": "shell", "linux": { "command": "source venv/bin/activate && pip freeze > requirements.txt" }, "problemMatcher": [] }, { "label": "Upgrade setuptools and wheel", "type": "shell", "linux": { "command": "source venv/bin/activate && pip install -U setuptools wheel" }, "problemMatcher": [] }, { "label": "Build package", "type": "shell", "linux": { "command": "source venv/bin/activate && pip install -U setuptools wheel" }, "problemMatcher": [], "dependsOn": ["Upgrade setuptools and wheel"] }, { "label": "Upload package to PyPI", "type": "shell", "linux": { "command": "source venv/bin/activate && twine upload dist/*" }, "problemMatcher": [], "dependsOn": ["Build package"] }, { "label": "Upload package to Test PyPI", "type": "shell", "linux": { "command": "source venv/bin/activate && twine upload -R testpypi dist/*" }, "problemMatcher": [], "dependsOn": ["Build package"] } ] }