-
Notifications
You must be signed in to change notification settings - Fork 42
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
Introduce poetry #182
Introduce poetry #182
Conversation
@@ -0,0 +1,23 @@ | |||
[tool.poetry] | |||
name = "handyrl" | |||
version = "0.0.1" |
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.
I don't know the real version. Fill it.
To use games of kaggle environments (e.g. Hungry Geese) you can install also additional dependencies. | ||
``` | ||
pip3 install -r handyrl/envs/kaggle/requirements.txt | ||
poetry install |
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.
IIUC, handyrl is not a library yet and intended to use with environments under env/
. And, this is a framework of training. So we don't need to care about docker and additional dependency poetry
.
Additional option is:
- Provide both pyproject.toml and requirements.txt.
- Check coherence of them in CI by using https://python-poetry.org/docs/cli/#export
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.
We provide requirements.txt until #183 .
First of all, we’d like to thank you for your PR and suggestions! We will look into the updates soon. Then let’s discuss it. Thanks! @YuriCat and me are assigned as the reviewers. |
Sorry for the late reply. Here is our brief opinion.
How about doing this?
And, can we run the command without
|
I see your point.
Skilled users may prefer to fork this repository instead of the above steps 1 and 2 because it is an easier way to manage diffs. (And, they can contribute to upstream (here) if their modification is useful.)
If #183 is complete and the user has installed HandyRL in the environment, yes. |
That's right. I believe that (public/private) fork is the better way if the user use HandyRL for solving their problems.
Got it! I agree with it unless it's not too difficult for beginners in reinforcement learning or programming. |
In summary as my opinion, the following actions may be considered as a future situation.
|
Sounds good. I fixed the diff along with your plan. |
Note that |
Thank you very much! I’ll review the changes and try it on my machine. As another topic, I think it is necessary to make docstrings in important classes and functions when making a library (maybe type hints too...?). I think we (me or YuriCat) should do this after the implementation is fixed. |
Documentation and type hints are nice! |
@kenoss |
Assume that
Then, the pros of having a lockfile are:
There are no cons, I think. This PR does not contain |
Note that, if the target is an application, we should have a lockfile. |
Thanks! |
Like this line? |
Added test with up-to-date dependencies. @YuriCat Could you re-review it, please? |
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.
Hi @kenoss, sorry for late approval. We're merging this great PR into master
branch at the end of this month. Thank you!
Thanks for the review! |
Sure, the administrators only merge PR. I will merge it now! 🚀 |
Thanks! |
This PR is a starting point and maybe not complete yet. Let me hear your opinion.