Skip to content

Incompatibility with setuptools_scm #26

@ziw-liu

Description

@ziw-liu

Setuptools_scm automatically generates version metadata from git. However the .git directory is not copied with the revision:

      LookupError: setuptools-scm was unable to detect version for ...
      
      Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
      
      For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
      
      Alternatively, set the version with the environment variable SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME} as described in https://setuptools-scm.readthedocs.io/en/latest/config.
      [end of output]

Is there an option to also copy .git?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis project is unlikely to fix this (e.g. out of scope)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions