Skip to content

Importing astropy_healpix can generate a warning from setuptools_scm  #211

@taldcroft

Description

@taldcroft

If the file .git_archival.txt exists in the current directory, then importing astropy_healpix will generate a warning from setuptools_scm. For some reason the .git_archival.txt file is noticed by setuptools_scm in the import process. An example is shown below.

We have many packages using the same setuptools_scm machinery and they do not have this issue. The core astropy is another example, so it seems to be something in the way astropy-healpix is working.

$ conda create -n astropy-healpix python=3.10
$ conda activate astropy-healpix
$ pip install astropy-healpix setuptools_scm

$ mkdir test
$ cd test

$ python -c "import astropy_healpix"

$ touch .git_archival.txt
$ python -c "import astropy_healpix"
/Users/aldcroft/miniconda3/envs/astropy-healpix/lib/python3.10/site-packages/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output
  warnings.warn("git archive did not support describe output")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions