File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ PYPI_TOKEN = your_pypi_token
Original file line number Diff line number Diff line change 33{
44 "name" : " Python 3" ,
55 // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6- // "remoteEnv ": {
7- // "PYPI_TOKEN ": "${env:PYPI_TOKEN} "
6+ // "build ": {
7+ // "dockerfile ": "Dockerfile "
88 // },
99 "runArgs" : [
1010 " --env-file" ,
1919 // Features to add to the dev container. More info: https://containers.dev/features.
2020 // "features": {},
2121 // Use 'forwardPorts' to make a list of ports inside the container available locally.
22- // "forwardPorts": [],
22+ // "forwardPorts": [],:
2323 // Use 'postCreateCommand' to run commands after the container is created.
24- // "postCreateCommand": "pip3 install --user -r requirements.txt ",
25- "postCreateCommand" : " echo '[pypi]\n username = __token__\n password = ' \" $PYPI_TOKEN\" '' > ~/.pypirc && chmod 600 ~/.pypirc"
24+ // "postCreateCommand": "pip install --no-cache-dir twine && echo '[pypi]\nusername = __token__\npassword = '\"$PYPI_TOKEN\"'' > ~/.pypirc && chmod 600 ~/.pypirc ",
25+ "postCreateCommand" : " pip install --no-cache-dir twine && printf '[pypi]\\ n username = __token__\\ n password = %s \\ n' \" $PYPI_TOKEN\" > ~/.pypirc && chmod 600 ~/.pypirc" ,
2626 // Configure tool-specific properties.
2727 // "customizations": {},
2828 // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
You can’t perform that action at this time.
0 commit comments