The path to the root of the git repo.
(cls)
| 110 | |
| 111 | @classmethod |
| 112 | def _root_dir(cls) -> str: |
| 113 | """The path to the root of the git repo.""" |
| 114 | if cls.__root_dir_attr is None: |
| 115 | # This setup.py file lives in the root of the repo. |
| 116 | cls.__root_dir_attr = str(Path(__file__).parent.resolve()) |
| 117 | return str(cls.__root_dir_attr) |
| 118 | |
| 119 | @classmethod |
| 120 | def git_hash(cls) -> Optional[str]: |