forked from google-parfait/tensorflow-federated
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and fix patch files for federated_language.
PiperOrigin-RevId: 712670487
- Loading branch information
1 parent
fead887
commit dfbf57b
Showing
3 changed files
with
68 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Federated Language Patches | ||
|
||
1. Clone the repository. | ||
|
||
```shell | ||
$ git clone https://github.com/google-parfait/federated-language.git "/tmp/federated-language" | ||
$ cd "/tmp/federated-language" | ||
``` | ||
|
||
1. Checkout the commit. | ||
|
||
```shell | ||
$ git checkout <COMMIT> | ||
``` | ||
|
||
1. Create the `python_deps` patch. | ||
|
||
1. Make the changes. | ||
|
||
```shell | ||
$ buildozer 'remove deps @pypi//absl_py' //...:* | ||
$ buildozer 'remove deps @pypi//attrs' //...:* | ||
$ buildozer 'remove deps @pypi//dm_tree' //...:* | ||
$ buildozer 'remove deps @pypi//ml_dtypes' //...:* | ||
$ buildozer 'remove deps @pypi//numpy' //...:* | ||
$ buildozer 'remove deps @pypi//typing_extensions' //...:* | ||
``` | ||
|
||
1. Confirm no more changes are required. | ||
|
||
```shell | ||
$ find "." -type f -print0 | xargs -0 grep "@pypi" | ||
``` | ||
|
||
1. Create the patch. | ||
|
||
```shell | ||
$ git diff --no-prefix \ | ||
> "<CLIENT>/tensorflow_federated/third_party/federated_language/python_deps.patch" | ||
``` | ||
|
||
1. Create the `structure_visibility` patch. | ||
|
||
Note: This patch requires the previous patch to be applied. | ||
|
||
1. Stage the changes from the previous step. | ||
|
||
```shell | ||
$ git add . | ||
``` | ||
|
||
1. Make the changes. | ||
|
||
```shell | ||
$ buildozer 'add visibility //visibility:public' //federated_language/common_libs:structure | ||
``` | ||
|
||
1. Create the patch. | ||
|
||
```shell | ||
$ git diff --no-prefix \ | ||
> "<CLIENT>/tensorflow_federated/third_party/federated_language/structure_visibility.patch" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters