-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Upgrade package versioning to use Poetry #1681
Conversation
Only thing missing is to add the credentials to poetry for publishing the package: |
# Conflicts: # setup.py # stable_baselines3/version.txt
Working with CUDA Pytorch using Poetry is quite hard in my experience. Poetry insists on reinstalling it to the CPU version. I also think you're not supposed to commit the Nowadays pip also lets you specify dependencies directly in |
@rhaps0dy Thanks for taking a look at my PR <3 So just to respond to the points you made:
EDIT: |
Okay I think it is better to actually remove the .lock file. Will make it easier for developers as we all have different machines. As for specifying the torch version, say for example I wanted to use torch 2.0.0 and I want to use the cuda 11.8 version. Then I would add the following to the pyproject file: [[tool.poetry.source]] [tool.poetry.dependencies] If the user wants to use pip package manager in his project he can also just manually install torch: |
Just to make sure we're on the same page, the result of the discussion in #545 still stands, in the sense that poetry does not seem to be necessary for SB3, although nothing prevents you from setting it up yourself (as you do in this PR). |
@araffin okay :( Poetry did help finding some version mismatch between the packages, so I think it is useful but this is not my repo so I respect your decision. I will keep my code saved in case you change your mind so we don't have to redo it, just in case :) |
Upgraded to use poetry
Description
Motivation and Context
it is an old issue, but I put the effort to make it work anyway: #545
Types of changes
Checklist
make format
(required)make check-codestyle
andmake lint
(required)make pytest
andmake type
both pass. (required)make doc
(required)Note: You can run most of the checks using
make commit-checks
.Note: we are using a maximum length of 127 characters per line