Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/matrix_common/versionstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.
import functools
import logging
import os.path
import subprocess
from typing import Optional

Expand Down Expand Up @@ -67,6 +68,7 @@ def get_distribution_version_string(
# and 1.57. I suspect that the cause is a difference in the metadata generated
# by `setuptools` and `poetry-core` at package-install time.
cwd = dist.locate_file(".").__fspath__()
cwd = os.path.dirname(cwd)
try:

def _run_git_command(prefix: str, *params: str) -> str:
Expand Down