Skip to content

Replace deprecated aiohttp.BasicAuth#1610

Merged
slimreaper35 merged 1 commit into
hermetoproject:mainfrom
slimreaper35:aiohttp
Jun 10, 2026
Merged

Replace deprecated aiohttp.BasicAuth#1610
slimreaper35 merged 1 commit into
hermetoproject:mainfrom
slimreaper35:aiohttp

Conversation

@slimreaper35

Copy link
Copy Markdown
Member

No description provided.

@slimreaper35 slimreaper35 marked this pull request as ready for review June 9, 2026 12:32

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the file download mechanism to use string-based Authorization headers instead of aiohttp.BasicAuth objects, utilizing aiohttp.encode_basic_auth where appropriate. The review feedback suggests simplifying the dynamic keyword arguments construction in _async_download_binary_file by passing the headers parameter directly to session.get with a conditional expression, which improves readability and maintains a cleaner code structure.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread hermeto/core/package_managers/general.py Outdated
@slimreaper35

Copy link
Copy Markdown
Member Author

Let's wait for #1585, which has higher priority, because it will introduce merge conflicts.

The class has been deprecated in favour of encode_basic_auth() function.
It will be removed in aiohttp version 4. In fact, it does not exist on
the master branch in the aiohttp GitHub repo. However, the releases
come from other branches.

--
https://github.com/aio-libs/aiohttp/pull/12499/changes
aio-libs/aiohttp@247b323

Signed-off-by: Michal Šoltis <msoltis@redhat.com>
@slimreaper35 slimreaper35 added this pull request to the merge queue Jun 10, 2026
Merged via the queue into hermetoproject:main with commit 44b5a2f Jun 10, 2026
13 checks passed
@slimreaper35 slimreaper35 deleted the aiohttp branch June 10, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants