@@ -27,44 +27,8 @@ def main():
27
27
usage = """Release script
28
28
Prereqs
29
29
* Be able to build locally
30
- * `pip install --upgrade twine tox` into whichever Python 2.7 you use to build
31
-
32
- Steps
33
- * Build master to ensure it is in a good state and ready for release
34
- * Ensure no commits are made on master until the release is complete
35
- * Create and checkout a branch for release-related changes
36
- * Update CHANGELOG.md
37
- * Delete empty (i.e. No changes) sub-sections under "Unreleased" section
38
- * Change the "Unreleased" header to the version of the release
39
- * Change [Unreleased] in TOC to the version of the release
40
- * Commit to branch
41
- * Update contents of src/<driver>/LATEST_RELEASE with the versions of each module being released by dropping the '.dev0' suffix.
42
- * `python3 tools/build_release.py --update --release`
43
- * This will update all the versions to remove any '.devN'
44
- * Commit to branch
45
- * `python3 tools/build_release.py --build`
46
- * Clean and build to update generated files with new version
47
- * Commit to branch
48
- * Create a pull request
49
- * It should contain all the changes made so far
50
- * Get the pull request reviewed but DO NOT merge to master yet
51
- * `python3 tools/build_release.py --upload`
52
- * Upload to PyPI - you will need to type in your credentials
53
- * Merge the pull request to origin/master
54
- * Create a release on GitHub using the portion from the changelog for this release for the description
55
- * Add the ZIP files under `generated/examples` for each module as a release artifact.
56
- * Create and checkout another branch for post-release changes
57
- * `python3 tools/build_release.py --update`
58
- * This will update the version to X.X.(N+1).dev0
59
- * Commit to branch
60
- * `python3 tools/build_release.py --build`
61
- * Clean and Build to update generated files
62
- * Commit to branch
63
- * Update changelog
64
- * Copy Unreleased section from bottom of changelog to the top and add a link to it in the TOC
65
- * Commit to branch
66
- * Create a pull request containing post-release changes and get it merged
67
-
30
+ * `pip install --upgrade twine tox` into whichever Python you use to build
31
+ Steps: see "Release Process" section of CONTRIBUTING.md
68
32
"""
69
33
parser = argparse .ArgumentParser (description = usage , formatter_class = CustomFormatter )
70
34
@@ -107,8 +71,8 @@ def main():
107
71
logging .info ('Updating versions' )
108
72
109
73
for d in drivers_to_update :
110
- logging .info (pp .pformat (python_cmd + ['tools/updateReleaseInfo.py' , '--src-file ' , f'src/{ d } /metadata/config_addon.py ' , ] + passthrough_params ))
111
- check_call (python_cmd + ['tools/updateReleaseInfo.py' , '--src-file ' , f'src/{ d } /metadata/config_addon.py ' , ] + passthrough_params )
74
+ logging .info (pp .pformat (python_cmd + ['tools/updateReleaseInfo.py' , '--src-folder ' , f'src/{ d } ' , ] + passthrough_params ))
75
+ check_call (python_cmd + ['tools/updateReleaseInfo.py' , '--src-folder ' , f'src/{ d } ' , ] + passthrough_params )
112
76
113
77
if args .build :
114
78
logging .info ('Clean and build' )
0 commit comments