Skip to content

Commit 73992cb

Browse files
committed
use hyphens
1 parent c4dfa11 commit 73992cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/create_package.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def create_package(package_name: str) -> None:
2727
# Convert package name to lowercase for directory name
2828
package_dir = package_name.lower()
2929
package_path = Path("packages") / package_dir
30+
full_package_name = f"microsoft-teams-{package_name.lower()}"
3031

3132
if package_path.exists():
3233
print(f"Error: Package directory {package_path} already exists")
@@ -55,7 +56,7 @@ def create_package(package_name: str) -> None:
5556
content = f.read()
5657

5758
# Update package name
58-
content = content.replace(f'name = "{package_name}"', f'name = "microsoft.teams.{package_name.lower()}"')
59+
content = content.replace(f'name = "{package_name}"', f'name = "{full_package_name}"')
5960

6061
# Add wheel build configuration
6162
if "[tool.hatch.build.targets.wheel]" not in content:
@@ -71,7 +72,7 @@ def create_package(package_name: str) -> None:
7172
content = f.read()
7273

7374
# Add the new package to uv.sources if not already present
74-
source_entry = f'"microsoft.teams.{package_name.lower()}" = {{ workspace = true }}'
75+
source_entry = f'"{full_package_name}" = {{ workspace = true }}'
7576
if source_entry not in content:
7677
# Find the [tool.uv.sources] section
7778
if "[tool.uv.sources]" in content:

0 commit comments

Comments
 (0)