Skip to content

Add build support for python 3.13 and 3.14 #25

@hfoote

Description

@hfoote

In Python 3.13 and 3.14, astropy needs additional dependencies from setuptools. See error message from CI below:

` File "astropy/wcs/setup_package.py", line 13, in
from setuptools.dep_util import newer_group
ModuleNotFoundError: No module named 'setuptools.dep_util'

  hint: This error likely indicates that `astropy@5.3.4` depends
  on `setuptools.dep_util`, but doesn't declare it as a build
  dependency. If `astropy` is a first-party package, consider adding
  `setuptools.dep_util` to its `build-system.requires`. Otherwise, either
  add it to your `pyproject.toml` under:

  [tool.uv.extra-build-dependencies]
  astropy = ["setuptools.dep_util"]

  or `uv pip install setuptools.dep_util` into the environment and re-run
  with `--no-build-isolation`.

help: astropy (v5.3.4) was included because snapanalysis (v0.1.0)
depends on astropy
Error: Process completed with exit code 1.`

We should install these extra dependencies into the project environment to add support for python versions 3.13 and 3.14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions