Package a Python script and upload it to an Azure Artifacts Python feed without leaving VS Code.
This extension guides you through the full workflow: selecting a script, entering package details, building the package, uploading it to Azure Artifacts, and showing the install command your team can use.
What this extension does
Prompts for all required package and feed details inside VS Code
Converts a Python script into a package-ready structure
Installs required Python packaging tools when needed
Updates ~/.pypirc with the repository and username for the selected feed
Builds the package with python -m build
Uploads the package with python -m twine upload
Optionally stores your PAT securely in VS Code Secret Storage for reuse
Before you start
Make sure you have:
VS Code installed
Python available on your machine
Access to an Azure Artifacts Python feed
A Personal Access Token (PAT) that can upload packages to that feed
How to use
Open the Command Palette.
Run Azure Artifacts: Package And Upload Python Tool.
Select the Python script you want to package.
Enter the requested details when prompted.
Wait while the extension prepares the package, builds it, and uploads it.
Copy the generated pip install command shown at the end.
Information you will be asked for
During the guided flow, the extension asks for:
Package name
Version
Azure Artifacts feed name
Azure Artifacts repository upload URL
Azure Artifacts username
PAT
Short package description
Output folder for the generated package structure
Python executable to use
What happens during packaging
After you provide the inputs, the extension:
Ensures build, wheel, and twine are available for the selected Python executable.
Updates ~/.pypirc with the selected feed settings.
Creates the package structure in the output folder.
Builds both source and wheel distributions.
Uploads the result to your Azure Artifacts feed.
PAT handling
Your PAT is never written to ~/.pypirc.
The upload step passes the PAT through the environment only for the upload process.
You can save the PAT securely in VS Code Secret Storage and reuse it later.
If you save more than one PAT, you can clear them later from the command palette.