File tree 3 files changed +13
-12
lines changed
tools/private/update_deps 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1
1
# For Developers
2
2
3
+ ## Updating internal dependencies
4
+
5
+ 1 . Modify the ` ./python/pip_install/tools/requirements.txt ` file and run:
6
+ ```
7
+ bazel run //tools/private/update_deps:update_pip_deps
8
+ ```
9
+ 1 . Bump the coverage dependencies using the script using:
10
+ ```
11
+ bazel run //tools/private/update_deps:update_coverage_deps <VERSION>
12
+ ```
13
+
3
14
## Releasing
4
15
5
16
Start from a clean checkout at ` main ` .
@@ -8,16 +19,6 @@ Before running through the release it's good to run the build and the tests loca
8
19
also test-drive the commit in an existing Bazel workspace to sanity check functionality.
9
20
10
21
#### Steps
11
- 1 . (Optional) modify the ` ./python/pip_install/tools/requirements.txt ` file and run ` ./tools/update_pip_deps.sh ` script:
12
- 1 . Using system python:
13
- ``` bash
14
- ./tools/update_pip_deps.py
15
- ```
16
- 1 . Using bazel toolchain:
17
- ``` bash
18
- bazel run --enable_bzlmod @python_3_10_9//:python3 -- ./tools/update_pip_deps.py
19
- ```
20
- 1 . (Optional) bump the coverage dependencies using the script ` ./tools/update_coverage_deps.py <VERSION> ` .
21
22
1 . [ Determine the next semantic version number] ( #determining-semantic-version )
22
23
1 . Create a tag and push, e.g. ` git tag 0.5.0 upstream/main && git push upstream --tags `
23
24
NOTE: Pushing the tag will trigger release automation.
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def replace_snippet(
45
45
start_marker : str ,
46
46
end_marker : str ,
47
47
) -> str :
48
- """update a file on disk to replace text in a file between two markers.
48
+ """Update a file on disk to replace text in a file between two markers.
49
49
50
50
Args:
51
51
path: pathlib.Path, the path to the file to be modified.
Original file line number Diff line number Diff line change 14
14
15
15
import unittest
16
16
17
- from tools .private .update_file import replace_snippet , unified_diff
17
+ from tools .private .update_deps . update_file import replace_snippet , unified_diff
18
18
19
19
20
20
class TestReplaceSnippet (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments