-
Notifications
You must be signed in to change notification settings - Fork 3k
Release Process
This article assumes you have code on master
that is ready to publish:
- Version is accurate
- ChangeLog is updated
- Readme is accurate, etc.
If you don't, and you are working with Management packages, start with this page: https://github.com/Azure/azure-sdk-for-python/wiki/Preparing-a-management-package-for-release
Python packages are uploaded to PyPI. Once you've uploaded to PyPI, there's no way to overwrite the package. In case of problems, you'll need to increment the version number. Be sure that before going forward your package has passed all the necessary testing.
Go to this Url: https://aka.ms/pysdkrelease
- Click on "Queue"
- Change "BuildTargetingString" to the name of your package. Example: azure-mgmt-compute
- Change "CandidateForRelease" value to
True
(it should be defaulted toFalse
)
Et voila :). Azure Dev Ops will tests one last time the package, dependencies, and the distributions (sdist/wheel) and push to PyPI using the user azure-sdk.
To build a package manually:
python .\build_package.py azure-mgmt-myservice
This will a sdist and a wheel file. This requires wheel
package installed in your environment.
If you want to manually release on a regular basis, you should create a .pypirc:
[pypi]
repository = https://pypi.python.org/pypi
username = <yourusername>
password = <yourpassword>
To upload to production:
twine upload dist\*.zip
twine upload dist\*.whl
It's recommended that you create a Github tag using the format "packagename_version". Example: azure-mgmt-compute_2.0.0