Skip to content
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

Bump aiidalab-widgets-base to 2.0.0 beta #332

Merged
merged 1 commit into from
Dec 12, 2022
Merged

Bump aiidalab-widgets-base to 2.0.0 beta #332

merged 1 commit into from
Dec 12, 2022

Conversation

unkcpz
Copy link
Member

@unkcpz unkcpz commented Dec 12, 2022

No description provided.

Copy link
Contributor

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion.

@@ -26,7 +26,7 @@ install_requires =
aiida-core~=2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aiida-core~=2.1
aiida-core>=2.1,<3

This should be quite safe I think. Otherwise you'll need to update this each time we update aiida-core in the Docker image.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is safe, but I think ~=2.1 will install 2.2 if it is released and the same as what you proposed the aiida-core>=2.1,<3, no?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am never sure about this, but I think in this case you need to use the carot, not tilde.

Suggested change
aiida-core~=2.1
aiida-core^=2.1

https://stackoverflow.com/a/22345808

Copy link
Member Author

@unkcpz unkcpz Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the link you share is for npm package, for python we have PEP440 and please check https://peps.python.org/pep-0440/#compatible-release.

Also https://peps.python.org/pep-0440/#examples the examples.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that aiida-core~=2.1 is equivalent to aiida-core>=2.1,<3.

It is safe, but I think ~=2.1 will install 2.2 if it is released and the same as what you proposed the aiida-core>=2.1,<3, no?

Yes, but only if aiida is not yet installed. It will NOT force-update the current aiida version if it is between 2.1 and 3.0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we discussing this, by the way? The PR is about AWB, I guess :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the link you share is for npm package, for python we have PEP440 and please check https://peps.python.org/pep-0440/#compatible-release.
Also https://peps.python.org/pep-0440/#examples the examples.

Oh, that's a very good point. Now I understand the source of my confusion, I didn't realize there's a difference. Thanks!

@yakutovicha yakutovicha self-assigned this Dec 12, 2022
@unkcpz
Copy link
Member Author

unkcpz commented Dec 12, 2022

thanks a lot @both.

@unkcpz unkcpz merged commit 58463d3 into master Dec 12, 2022
@unkcpz unkcpz deleted the bump/awb branch December 12, 2022 14:32
@yakutovicha
Copy link
Member

Hehe, @both is actually a person.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants