-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove gRPC services and grpcio requirement #485
Conversation
2d4d119
to
0d77199
Compare
Checked that keeping
|
Codecov Report
@@ Coverage Diff @@
## master #485 +/- ##
==========================================
+ Coverage 85.57% 85.82% +0.24%
==========================================
Files 80 80
Lines 7794 7794
==========================================
+ Hits 6670 6689 +19
+ Misses 1124 1105 -19
|
README.md
Outdated
@@ -53,6 +53,7 @@ To install hivemind from source, simply run the following: | |||
``` | |||
git clone https://github.com/learning-at-home/hivemind.git | |||
cd hivemind | |||
pip install "grpcio-tools>=1.33.2" # for protobuf compilation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we say pip install -r requirements-dev.txt
instead?
Rationale: less chance that we forget to update the version later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, check the diff and PR description. The rationale is that you don't need to install all the development deps just to make hivemind work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, have it your way :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And regarding the "forget to update later" part: we haven't bumped this requirement for the past 2 years and are unlikely to to do this soon, so I'm not sure if this is something that we should worry about
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not okay for me, such things should be moved to requirements (that's exactly what requirements are for).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, it is present in the development requirements file. The issue is that we do not need this package at runtime when we are installing hivemind normally (e.g. from pip), so a regular user should not need to install it (because the pip-installed version contains already compiled protobuf files)
50df916
to
8ef54b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
README.md
Outdated
@@ -53,6 +53,7 @@ To install hivemind from source, simply run the following: | |||
``` | |||
git clone https://github.com/learning-at-home/hivemind.git | |||
cd hivemind | |||
pip install "grpcio-tools>=1.33.2" # for protobuf compilation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not okay for me, such things should be moved to requirements (that's exactly what requirements are for).
This reverts commit 023a8e9.
b7b5f6b
to
bd55eb3
Compare
This PR removes the gRPC service definitions from hivemind/proto. Also, since we only need grpcio when compiling the proto files, I've moved them to the development dependencies (installed automatically if you use
pip install -e .[dev]
, can be installed manually if you are not interested in tests)