File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 pkg_toml = os.path.join(path, 'pyproject.toml')
7070 if os.path.exists(pkg_toml):
7171 pkg_config = toml.load(pkg_toml)
72- actual_name = pkg_config.get('tool', {}).get('poetry', {}).get('name')
72+ # Try PEP 621 format first, fall back to Poetry
73+ actual_name = pkg_config.get('project', {}).get('name')
74+ if not actual_name:
75+ actual_name = pkg_config.get('tool', {}).get('poetry', {}).get('name')
76+
7377 if actual_name and actual_name != pkg_name:
7478 errors.append(
7579 f"Name mismatch: dependency key '{pkg_name}' but "
@@ -120,7 +124,7 @@ jobs:
120124 cp poetry.lock poetry.lock.original
121125
122126 echo "Regenerating lock file..."
123- poetry lock --no-update
127+ poetry lock
124128
125129 echo "Comparing files..."
126130 if ! diff -q poetry.lock.original poetry.lock; then
You can’t perform that action at this time.
0 commit comments