Skip to content
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

Support Python 3.13 #2003

Merged
merged 8 commits into from
Jul 6, 2024
Merged

Support Python 3.13 #2003

merged 8 commits into from
Jul 6, 2024

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    68e435c View commit details
    Browse the repository at this point in the history
  2. Name this list of accepted symbol differences

    This should make it easier to add new entries as well as clarifying
    the intent of this filter.
    PeterJCLaw committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    ee90cd9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bbbaad2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    473b35e View commit details
    Browse the repository at this point in the history
  5. Use an explicit mapping for locals in this test

    In Python 3.13 the `locals` function now returns a fresh mapping
    each time it's called (when called in a function). We thus need
    to store a reference to the mapping being used, rather than
    re-fetching it each time.
    
    Since we don't actually need to modify the locals within the scope
    of the test function itself, it suffices to use our own mapping
    here rather than the result of calling `locals`, which fully
    isolates this test from the nature of that function.
    
    Fixes davidhalter#2002
    PeterJCLaw committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    340dedd View commit details
    Browse the repository at this point in the history
  6. Support Python 3.13

    This moves to using the 3.13 grammar as well as testing 3.13 in CI.
    PeterJCLaw committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    d543d1d View commit details
    Browse the repository at this point in the history
  7. Cope with Python 3.13 moving pathlib's implementation

    Jedi passes pickles to subprocesses which are running the target
    version of Python and thus may not be the same as the version
    under which Jedi itself is running. In Python 3.13, pathlib is
    being refactored to allow for easier extension and has thus moved
    most of its internal implementation to a submodule. Unfortunately
    this changes the paths of the symbols, causing pickles of those
    types to fail to load in earlier versions of Python.
    
    This commit introduces a custom unpickler which accounts for this
    move, allowing bi-directional passing of pickles to work.
    PeterJCLaw committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    2551863 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Configuration menu
    Copy the full SHA
    857c9be View commit details
    Browse the repository at this point in the history