-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
aws-elasticbeanstalk: Switch to Python 3 and improve the test slightly #47369
Conversation
c4602cc
to
449330f
Compare
There's a few resources for 2.7 compat that could be removed and may be causing problems with the build like |
- Functools is [built-in to Python now](https://docs.python.org/3/library/functools.html).
449330f
to
ff87de8
Compare
If anyone has a clue as to why the test is failing, I'd appreciate a pointer. 😳 I've locally tried every permutation of |
- This actually exercises some of the functionality of the software: finding the specified profile's credentials.
ff87de8
to
01a6630
Compare
Thanks to @SMillerDev for helping with the test. It was the one thing I hadn't tried to fix it. 😬 |
@Bo98 I probably shouldn't stick a "ready to merge" label on this, should I? Would you be able to give it a review first? CI is green now, though. |
You're as much a maintainer as the rest of us. |
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.
If it's green I'm happy with that.
This should be pretty trivial to migrate to 3.8 too since it depends on nothing else but Python and nothing else depends on it. I'll make sure it is noted in #47274.
Thanks, @Bo98! I'm still pretty unconfident with the workflows in this repo - can I merge this as is via the GitHub UI or does it need more things? |
This one should be merged via |
That's not needed, no bottles are build. |
But there is a bottle block in this formula? |
Actually this should also have a revision bump - I forgot about that. |
No version change = no uploaded bottle changes |
Yes, but there should be a revision change as we changed between Python 2 and 3. We create a virtualenv in the bottles. |
Oh, I just saw the |
I think there's a disagreement on whether this should have had a revision bump. Perhaps best to propose the question in a separate PR. |
I think I did republish the bottle files, not sure if that helps.
|
The revision bump seems not quite needed (even though semantically it needs to happen) |
The problem is that people with existing installations will still have a dependency to python@2 - and we plan to remove python@2 at the end of the year. |
It seems like there's a 3.16.0 available now anyway so I suppose we could just try update the formula to that and then the case of whether it needs a revision bump no longer matters. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Part of #47050. See individual commits for more detail.