Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aboutcode-org/python-inspector
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.14.0
Choose a base ref
...
head repository: aboutcode-org/python-inspector
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.14.1
Choose a head ref
  • 7 commits
  • 14 files changed
  • 2 contributors

Commits on Jun 18, 2025

  1. Fix incorrect netrc format assumption

    According to the netrc specification (see [1] and [2]), the `machine`
    part should not be a full URL, but only a host name.
    Before, using the correct netrc format with only a host name did not
    work for authentication purposes in Python Inspector.
    Fix this by using urllib.parse to find the matching host name.
    
    [1]: https://www.ibm.com/docs/en/aix/7.2.0?topic=formats-netrc-file-format-tcpip
    [2]: https://docs.python.org/3/library/netrc.html#netrc.netrc.hosts
    
    Resolves: #176.
    
    Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
    MarcelBochtler committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    58107e8 View commit details
    Browse the repository at this point in the history
  2. Support default host in netrc

    Support the fallback to `default` if the user did not set a specific
    host name in their netrc file.
    
    Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
    MarcelBochtler committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    a280803 View commit details
    Browse the repository at this point in the history
  3. Fix incorrect credentials type for aiohttp

    Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
    MarcelBochtler committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    f634e2d View commit details
    Browse the repository at this point in the history
  4. Ensure package_urls end with a slash

    In PyPI simple repository format, package URLs typically end with the
    package name and should have a trailing slash [1].
    To ensure this trailing slash, the some web servers might redirect to
    the URL with the trailing slash.
    This causes the issue that the BasicAuth credentials are removed from
    the request for security reasons.
    
    This was observed with an internal Artifactory repository and adding a
    trailing slash to the package_url fixes the issue.
    
    [1]: https://peps.python.org/pep-0503/#specification
    
    Resolves: #127.
    
    Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
    MarcelBochtler committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    e1b179e View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2025

  1. Regenerate test fixtures

    These tests use live data from Pypi.org and the package versions have
    changed in the resolution. I used these commands:
    
    1. to run all the tests
    
    pytest -vvs
    
    2. to regenerate the expected JSON result files for the failed tests
    
    PYINSP_REGEN_TEST_FIXTURES=yes pytest -vvs --lf
    
    Then I carefully reviewed the diff before committing.
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed Jun 27, 2025
    Configuration menu
    Copy the full SHA
    60fb8b6 View commit details
    Browse the repository at this point in the history
  2. Clarify getting started and testing

    The README now has improved documentation to run tests and getting
    started.
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed Jun 27, 2025
    Configuration menu
    Copy the full SHA
    fe74b59 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #233 from aboutcode-org/netrc-format-fix-pluplus

    Netrc format fix pluplus
    pombredanne authored Jun 27, 2025
    Configuration menu
    Copy the full SHA
    3ff5dd5 View commit details
    Browse the repository at this point in the history
Loading