-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Switching to pre-releases instead of cirq-unstable #3527
Conversation
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.
LGTM with minor comments.
setup.py
Outdated
# If CIRQ_UNSTABLE_VERSION is set then we use cirq-unstable as the name of the package | ||
# and update the version to this value. | ||
# If CIRQ_UNSTABLE_VERSION is set then we update the version to this value. | ||
# As it contains "dev" it will be a pre-release version on PyPi. See |
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, this should be changed: "As it contains" -> "If it contains"
("As" implies we know it does, which I don't think we do.)
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 can clarify that - but it is assumed that it contains dev.
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.
Actually it can contain whatever, but it is assumed that it contains devN
, aN
, bN
, rcN
hence the long description that changes it to the warning text below
Thanks @viathor - I'm going to have to put a pause on this as I discovered Craig's comment here, that pointed out that tensorflow and tfq-nightly have the same issue as cirq and cirq-unstable: #2431 (comment). |
Isn't Craig's comment further justification for using pre-releases? |
I interpreted it as "if this is okay with tensorflow, it should be okay for us too to live with this" based on the context that he seemed to be "pro separate package". |
Oh by the way some more updates on this:
I'm more concerned about the 1st point and playing nice in the python community. More motivating conversations around this:
The only issue I have with anaconda.org is that this is how we'd install modules:
|
Oh hold on - the first point is irrelevant, it is just a strong recommendation around non-human-readable version numbers. Ignore that. I was for a second also worried about "littering" the main package with dev releases for readability - but maybe it's not that big of a deal. Also, pre-releases like So the only question remains is readability of different versions on the cirq pypi page... |
In the end I am ready to merge this as it will make our (less packages to deal with) and our users lives easier (no weird namespace collisions). As I understand the per project limit is 10GB which we'll get to in 5+ years if we never clean up a release. @quantumlib/cirq-maintainers this is a final chance to object :) Please comment, otherwise I'm ready to merge tomorrow! |
All in all, I think this is a good idea. We did this for a previous open source project I maintained and it worked well iirc |
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.
Minor comment about release docs, otherwise this LGTM!
As we have quorum, I'm going to go ahead and merge it. Thanks all for chiming in! |
Switch to PyPi pre-releases instead of
cirq-unstable
.Two major reasons for this change:
cirq-unstable
doesn't play well withcirq
installationsFixes #3267.
A resulting state after a test-run for this looks like this on the Test PyPi:
The dev releases will still get the "this is an unstable version" notice for their description.