Skip to content

Commit 5910dcd

Browse files
authored
Merge pull request #235 from boschglobal/aiohttp-trustenv
Respect the HTTP_PROXY environment variable
2 parents 3ff5dd5 + 5630e4e commit 5910dcd

7 files changed

+121
-121
lines changed

src/python_inspector/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async def get_response_async(url: str) -> Optional[Dict]:
8989
Return a mapping of the JSON response from fetching ``url``
9090
or None if the ``url`` cannot be fetched.
9191
"""
92-
async with aiohttp.ClientSession() as session:
92+
async with aiohttp.ClientSession(trust_env=True) as session:
9393
async with session.get(url) as response:
9494
if response.status == 200:
9595
return await response.json()

src/python_inspector/utils_pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ async def get_remote_file_content(
18061806
if login and password:
18071807
auth = aiohttp.BasicAuth(login, password)
18081808

1809-
async with aiohttp.ClientSession() as session:
1809+
async with aiohttp.ClientSession(trust_env=True) as session:
18101810
async with session.get(url, allow_redirects=True, headers=headers, auth=auth) as response:
18111811
status = response.status
18121812
if status != requests.codes.ok: # NOQA

tests/data/azure-devops.req-310-expected.json

Lines changed: 33 additions & 33 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-312-expected.json

Lines changed: 33 additions & 33 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-313-expected.json

Lines changed: 33 additions & 33 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-38-expected.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,12 @@
577577
"type": "pypi",
578578
"namespace": null,
579579
"name": "cryptography",
580-
"version": "45.0.4",
580+
"version": "45.0.5",
581581
"qualifiers": {},
582582
"subpath": null,
583583
"primary_language": "Python",
584584
"description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.\npyca/cryptography\n=================\n\n.. image:: https://img.shields.io/pypi/v/cryptography.svg\n :target: https://pypi.org/project/cryptography/\n :alt: Latest Version\n\n.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest\n :target: https://cryptography.io\n :alt: Latest Docs\n\n.. image:: https://github.com/pyca/cryptography/workflows/CI/badge.svg?branch=main\n :target: https://github.com/pyca/cryptography/actions?query=workflow%3ACI+branch%3Amain\n\n\n``cryptography`` is a package which provides cryptographic recipes and\nprimitives to Python developers. Our goal is for it to be your \"cryptographic\nstandard library\". It supports Python 3.7+ and PyPy3 7.3.11+.\n\n``cryptography`` includes both high level recipes and low level interfaces to\ncommon cryptographic algorithms such as symmetric ciphers, message digests, and\nkey derivation functions. For example, to encrypt something with\n``cryptography``'s high level symmetric encryption recipe:\n\n.. code-block:: pycon\n\n >>> from cryptography.fernet import Fernet\n >>> # Put this somewhere safe!\n >>> key = Fernet.generate_key()\n >>> f = Fernet(key)\n >>> token = f.encrypt(b\"A really secret message. Not for prying eyes.\")\n >>> token\n b'...'\n >>> f.decrypt(token)\n b'A really secret message. Not for prying eyes.'\n\nYou can find more information in the `documentation`_.\n\nYou can install ``cryptography`` with:\n\n.. code-block:: console\n\n $ pip install cryptography\n\nFor full details see `the installation documentation`_.\n\nDiscussion\n~~~~~~~~~~\n\nIf you run into bugs, you can file them in our `issue tracker`_.\n\nWe maintain a `cryptography-dev`_ mailing list for development discussion.\n\nYou can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get\ninvolved.\n\nSecurity\n~~~~~~~~\n\nNeed to report a security issue? Please consult our `security reporting`_\ndocumentation.\n\n\n.. _`documentation`: https://cryptography.io/\n.. _`the installation documentation`: https://cryptography.io/en/latest/installation/\n.. _`issue tracker`: https://github.com/pyca/cryptography/issues\n.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev\n.. _`security reporting`: https://cryptography.io/en/latest/security/",
585-
"release_date": "2025-06-10T00:03:12",
585+
"release_date": "2025-07-02T13:05:46",
586586
"parties": [
587587
{
588588
"type": "person",
@@ -616,11 +616,11 @@
616616
"Topic :: Security :: Cryptography"
617617
],
618618
"homepage_url": null,
619-
"download_url": "https://files.pythonhosted.org/packages/7f/e3/57b010282346980475e77d414080acdcb3dab9a0be63071efc2041a2c6bd/cryptography-45.0.4-cp37-abi3-manylinux_2_28_x86_64.whl",
620-
"size": 4452052,
619+
"download_url": "https://files.pythonhosted.org/packages/f2/2e/e2dbd629481b499b14516eed933f3276eb3239f7cee2dcfa4ee6b44d4711/cryptography-45.0.5-cp37-abi3-musllinux_1_2_x86_64.whl",
620+
"size": 4554189,
621621
"sha1": null,
622-
"md5": "c7d3c78af9c284771888bc4fdf63b00e",
623-
"sha256": "7ef2dde4fa9408475038fc9aadfc1fb2676b174e68356359632e980c661ec8f6",
622+
"md5": "e60dd7bf09e038a4508efcef2fc28cd5",
623+
"sha256": "7259038202a47fdecee7e62e0fd0b0738b6daa335354396c6ddebdbe1206af2a",
624624
"sha512": null,
625625
"bug_tracking_url": null,
626626
"code_view_url": null,
@@ -637,9 +637,9 @@
637637
"dependencies": [],
638638
"repository_homepage_url": null,
639639
"repository_download_url": null,
640-
"api_data_url": "https://pypi.org/pypi/cryptography/45.0.4/json",
640+
"api_data_url": "https://pypi.org/pypi/cryptography/45.0.5/json",
641641
"datasource_id": null,
642-
"purl": "pkg:pypi/cryptography@45.0.4"
642+
"purl": "pkg:pypi/cryptography@45.0.5"
643643
},
644644
{
645645
"type": "pypi",
@@ -1333,7 +1333,7 @@
13331333
"package": "pkg:pypi/azure-storage-blob@12.25.1",
13341334
"dependencies": [
13351335
"pkg:pypi/azure-core@1.33.0",
1336-
"pkg:pypi/cryptography@45.0.4",
1336+
"pkg:pypi/cryptography@45.0.5",
13371337
"pkg:pypi/isodate@0.7.2",
13381338
"pkg:pypi/typing-extensions@4.13.2"
13391339
]
@@ -1357,7 +1357,7 @@
13571357
"dependencies": []
13581358
},
13591359
{
1360-
"package": "pkg:pypi/cryptography@45.0.4",
1360+
"package": "pkg:pypi/cryptography@45.0.5",
13611361
"dependencies": [
13621362
"pkg:pypi/cffi@1.17.1"
13631363
]

tests/data/example-requirements-ignore-errors-expected.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -557,12 +557,12 @@
557557
"type": "pypi",
558558
"namespace": null,
559559
"name": "typing-extensions",
560-
"version": "4.14.0",
560+
"version": "4.14.1",
561561
"qualifiers": {},
562562
"subpath": null,
563563
"primary_language": "Python",
564564
"description": "Backported and Experimental Type Hints for Python 3.9+\n# Typing Extensions\n\n[![Chat at https://gitter.im/python/typing](https://badges.gitter.im/python/typing.svg)](https://gitter.im/python/typing)\n\n[Documentation](https://typing-extensions.readthedocs.io/en/latest/#) \u2013\n[PyPI](https://pypi.org/project/typing-extensions/)\n\n## Overview\n\nThe `typing_extensions` module serves two related purposes:\n\n- Enable use of new type system features on older Python versions. For example,\n `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows\n users on previous Python versions to use it too.\n- Enable experimentation with new type system PEPs before they are accepted and\n added to the `typing` module.\n\n`typing_extensions` is treated specially by static type checkers such as\nmypy and pyright. Objects defined in `typing_extensions` are treated the same\nway as equivalent forms in `typing`.\n\n`typing_extensions` uses\n[Semantic Versioning](https://semver.org/). The\nmajor version will be incremented only for backwards-incompatible changes.\nTherefore, it's safe to depend\non `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`,\nwhere `x.y` is the first version that includes all features you need.\n\n## Included items\n\nSee [the documentation](https://typing-extensions.readthedocs.io/en/latest/#) for a\ncomplete listing of module contents.\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/python/typing_extensions/blob/main/CONTRIBUTING.md)\nfor how to contribute to `typing_extensions`.",
565-
"release_date": "2025-06-02T14:52:10",
565+
"release_date": "2025-07-04T13:28:32",
566566
"parties": [
567567
{
568568
"type": "person",
@@ -600,11 +600,11 @@
600600
"Topic :: Software Development"
601601
],
602602
"homepage_url": null,
603-
"download_url": "https://files.pythonhosted.org/packages/69/e0/552843e0d356fbb5256d21449fa957fa4eff3bbc135a74a691ee70c7c5da/typing_extensions-4.14.0-py3-none-any.whl",
604-
"size": 43839,
603+
"download_url": "https://files.pythonhosted.org/packages/b5/00/d631e67a838026495268c2f6884f3711a15a9a2a96cd244fdaea53b823fb/typing_extensions-4.14.1-py3-none-any.whl",
604+
"size": 43906,
605605
"sha1": null,
606-
"md5": "d27a9ceff49d98145c50076842fca792",
607-
"sha256": "a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af",
606+
"md5": "86905389dfed18c11e510c9e23147fcb",
607+
"sha256": "d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76",
608608
"sha512": null,
609609
"bug_tracking_url": "https://github.com/python/typing_extensions/issues",
610610
"code_view_url": null,
@@ -619,16 +619,16 @@
619619
"dependencies": [],
620620
"repository_homepage_url": null,
621621
"repository_download_url": null,
622-
"api_data_url": "https://pypi.org/pypi/typing-extensions/4.14.0/json",
622+
"api_data_url": "https://pypi.org/pypi/typing-extensions/4.14.1/json",
623623
"datasource_id": null,
624-
"purl": "pkg:pypi/typing-extensions@4.14.0"
624+
"purl": "pkg:pypi/typing-extensions@4.14.1"
625625
}
626626
],
627627
"resolved_dependencies_graph": [
628628
{
629629
"package": "pkg:pypi/exceptiongroup@1.3.0",
630630
"dependencies": [
631-
"pkg:pypi/typing-extensions@4.14.0"
631+
"pkg:pypi/typing-extensions@4.14.1"
632632
]
633633
},
634634
{
@@ -667,7 +667,7 @@
667667
"dependencies": []
668668
},
669669
{
670-
"package": "pkg:pypi/typing-extensions@4.14.0",
670+
"package": "pkg:pypi/typing-extensions@4.14.1",
671671
"dependencies": []
672672
}
673673
]

0 commit comments

Comments
 (0)