Skip to content

Commit 9e61c35

Browse files
committed
Fix project root dir detection.
1 parent 752d0b8 commit 9e61c35

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## 0.2.1
4+
5+
Fix project root dir detection.
6+
37
## 0.2.0
48

59
Guarantee commands are run in the root project dir or else the custom

dev_cmd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright 2024 John Sirois.
22
# Licensed under the Apache License, Version 2.0 (see LICENSE).
33

4-
__version__ = "0.2.0"
4+
__version__ = "0.2.1"

dev_cmd/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def find_pyproject_toml() -> PyProjectToml:
3737
module = Path(__file__)
3838
start = module.parent
3939
try:
40-
dist_files = metadata.files("dev")
40+
dist_files = metadata.files("dev-cmd")
4141
if dist_files and any(module == dist_file.locate() for dist_file in dist_files):
4242
# N.B.: We're running from an installed package; so use the PWD as the search start.
4343
start = Path()

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)