-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update required nomad-lab version and add warning to README #86
Merged
hampusnasstrom
merged 2 commits into
main
from
84-install-via-pip-fails-with-current-version
Sep 13, 2024
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
Given that now we require
index-url
for the pip install, we can still keep using the dev version (>=1.3.4dev)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.
But 1.3.4.dev fails, no? We should require what is actually required to run the plugin or what do you mean?
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.
No, 1.3.4dev works because it pulls whatever latest dev (1.3.7devNN) is available on the registry
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.
For the issue that Fabian is facing, I think using the index-URL should solve it for him as you mentioned on the issue, as now when pip installing, the latest dev of nomad-lab will be pulled.
For the general milestone issue that we need a stable version as a dependency, we only have 1.3.6 as the current viable option (as 1.3.4 would fail the pytest). However, as you pointed out in today's discussion, there are some important issues not addressed in 1.3.6 and we should wait for a 1.3.7 #79 (comment)
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.
That is not how a dependency works @ka-sarthak. If I write
numpy >= 1.3.4
in the toml it will pull the latest from PyPI which is2.1.1
but by listingnumpy >= 1.3.4
in the toml we are saying that it should work with anything above and including that version! If we put 1.3.4.dev in our toml and someone has 1.3.4.dev32 installed locally they will not get nomad-lab updated and the solution class will not work. Do you understand what I mean?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 think you are right when it comes to
pip
updating the version of an already installed package. I always tested it with a fresh environment, so 1.3.4dev picked the latest dev, for example, 1.3.7.dev{something}, and never encountered the issue you pointed above. Let's use 1.3.6 then.