Created
April 6, 2017 15:20
-
-
Save phobson/104a741b5138ded7e2b1f73292f8b0d0 to your computer and use it in GitHub Desktop.
My VS Code tasks template for python projects/conda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template = """\ | |
{ | |
"version": "0.1.0", | |
"isShellCommand": false, | |
"args": [], | |
"showOutput": "always", | |
"echoCommand": false, | |
"suppressTaskName": false, | |
"tasks": [ | |
{ | |
"taskName": "test", | |
"isBuildCommand": false, | |
"isTestCommand": true, | |
"command": "{conda_dir}/envs/{conda_env}/python", | |
"args": [ | |
"setup.py", | |
"test", | |
"--mpl", | |
"--verbose", | |
"--cov", | |
"--pep8" | |
] | |
}, | |
{ | |
"taskName": "docs", | |
"options": { | |
"cwd": "${workspaceRoot}/docs" | |
}, | |
"command": "make.bat", | |
"args": ["html"] | |
}, | |
{ | |
"taskName": "build36", | |
"isBuildCommand": true, | |
"isTestCommand": false, | |
"isShellCommand": true, | |
"options": { | |
"cwd": "${workspaceRoot}/conda.recipe" | |
}, | |
"command": "conda-build", | |
"args": [ | |
".", | |
"--python=3.6", | |
"--channel=conda-forge" | |
] | |
}, | |
{ | |
"taskName": "build35", | |
"isBuildCommand": true, | |
"isTestCommand": false, | |
"isShellCommand": true, | |
"options": { | |
"cwd": "${workspaceRoot}/conda.recipe" | |
}, | |
"command": "conda-build", | |
"args": [ | |
".", | |
"--python=3.5", | |
"--channel=conda-forge" | |
] | |
}, | |
{ | |
"taskName": "build34", | |
"isBuildCommand": true, | |
"isTestCommand": false, | |
"isShellCommand": true, | |
"options": { | |
"cwd": "${workspaceRoot}/conda.recipe" | |
}, | |
"command": "conda-build", | |
"args": [ | |
".", | |
"--python=3.4", | |
"--channel=conda-forge" | |
] | |
}, | |
{ | |
"taskName": "build27", | |
"isBuildCommand": true, | |
"isTestCommand": false, | |
"isShellCommand": true, | |
"options": { | |
"cwd": "${workspaceRoot}/conda.recipe" | |
}, | |
"command": "conda-build", | |
"args": [ | |
".", | |
"--python=2.7", | |
"--channel=conda-forge" | |
] | |
}, | |
{ | |
"taskName": "convert-builds", | |
"isShellCommand": true, | |
"options": { | |
"cwd": "{conda_dir}/conda-bld" | |
}, | |
"command": "conda-convert", | |
"args": [ | |
"win-64/{package_name}-{version_string}-*.tar.bz2", | |
"--platform=all" | |
] | |
}, | |
{ | |
"taskName": "upload-builds", | |
"isShellCommand": true, | |
"options": { | |
"cwd": "{conda_dir}/conda-bld" | |
}, | |
"command": "anaconda", | |
"args": [ | |
"upload", | |
"*/{package_name}-{version_string}-*.tar.bz2", | |
"--label=dev" | |
] | |
} | |
] | |
} | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment