-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Make CI compile aiohttp again. #2690
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.
Thanks for the PR, I left a comment regarding the recipe URL
version = "v3.6.2" | ||
url = "https://github.com/aio-libs/aiohttp/archive/{version}.zip" | ||
class AIOHTTPRecipe(CppCompiledComponentsPythonRecipe): # type: ignore # pylint: disable=R0903 | ||
url = "https://files.pythonhosted.org/packages/ff/4f/62d9859b7d4e6dc32feda67815c5f5ab4421e6909e48cbc970b6a40d60b7/aiohttp-3.8.3.tar.gz" |
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.
Can you update that line to leverage the version variable, and also use the github url?
Like so:
version = "3.8.3"
url = "https://github.com/aio-libs/aiohttp/archive/v{version}.zip"
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.
Thanks Xavier, I'll merge when the CI turns green for this recipe
return env | ||
|
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.
Flake8 is expecting an extra line here, CI is complaining:
pythonforandroid/recipes/aiohttp/__init__.py:19:1: E305 expected 2 blank lines after class or function definition, found 1
It seems like the recipe failed in the CI with the following:
See for instance this job: https://github.com/kivy/python-for-android/actions/runs/3281492031/jobs/5404298939 |
That's why I had the tarball from PyPI in the first PR. aio-libs/aiohttp#3907 (comment) Can revert to the PyPI URL if you want me to do. |
Oh right I didn't know that, thanks for the heads up!
|
Even better. |
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.
The recipe built successfully, thanks again for the pull request and follow up changes
@AndreMiras I have two other custom baked recipes that could be streamlined. One needs a specific commit at the moment. aiosocks at commit d4a85e73c9e3beadd7ab4c46b8f3ceb3b57338b2 Should I set commit instead of version e.g. like this?
|
* Make CI compile aiohttp again. References: https://stackoverflow.com/a/64755338/20124004, https://stackoverflow.com/a/64755052/20124004, kivy#2518 * version variable and github url * lost a newline * added missing line for pep * Changed URL
References:
https://stackoverflow.com/a/64755338/20124004,
https://stackoverflow.com/a/64755052/20124004,
#2518