File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments