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

[23.0] Add support for Python 3.11 #15487

Merged

Commits on Feb 2, 2023

  1. Add support for Python 3.11

    - Update Python dependencies that didn't have a cp311 wheel: h5py and
      psycopg2-binary.
    - For packages for which there is no recent version that works on all
      Python versions supported by Galaxy (numpy and scipy), replace old
      requirement with multiple Python-version-specific requirements.
    nsoranzo committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    4ca163b View commit details
    Browse the repository at this point in the history
  2. Replace 2 Enums with Literals

    Fix the following mypy errors on Python 3.11:
    
    ```
    $ tox -e py311-mypy
    py311-mypy: commands[0]> mypy test lib
    lib/galaxy/schema/schema.py:1099: error: Incompatible types in assignment (expression has type "str", base class "Enum" defined the type as "Callable[[Enum], str]")  [assignment]
            name = "name"
                   ^~~~~~
    lib/galaxy/schema/schema.py:2722: error: Incompatible types in assignment (expression has type "str", base class "Enum" defined the type as "Callable[[Enum], str]")  [assignment]
            name = "name"
                   ^~~~~~
    ```
    nsoranzo committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    a7ddf89 View commit details
    Browse the repository at this point in the history