Skip to content

Windows path compare fails inside git repo #879

@spoorcc

Description

@spoorcc

On Windows, when installing something from a cwd that is cased differently than the git repo the following assertion fails:

https://github.com/pypa/setuptools_scm/blob/e9cbb5a68b3ae6d5c549bda293ef60bb5ec8ec7e/src/setuptools_scm/_file_finders/git.py#L40

Similar to #89 (see #89 (comment) )

  • Given a git project in my_repo on Windows
  • And some path my_repo/CasedDir with a pyproject.toml
  • And you navigate there using lowercase: cd my_repo/caseddir
  • And cwd will be my_repo/caseddir
  • When you build something python -m build
  • Then the assert will fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions