@@ -77,17 +77,19 @@ def patch_file(file_path: str, patched_tree: ast.AST) -> None:
7777 keyword .value .value = "patchright"
7878 case "author" :
7979 keyword .value .value = "Microsoft Corportation, patched by github.com/Kaliiiiiiiiii-Vinyzu/"
80+ case "description" :
81+ keyword .value .value = "Undetected Python version of the Playwright testing and automation library. "
8082 case "url" :
81- keyword .value .value = "https://github.com/Kaliiiiiiiiii-Vinyzu/patchright"
83+ keyword .value .value = "https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python "
8284 case "project_urls" :
8385 keyword .value = ast .Dict (
8486 keys = [
8587 ast .Constant (value = 'Release notes' ), ast .Constant (value = 'Bug Reports' ), ast .Constant (value = 'Source Code' )
8688 ],
8789 values = [
88- ast .Constant (value = 'https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/releases' ),
89- ast .Constant (value = 'https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues' ),
90- ast .Constant (value = 'https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/' )
90+ ast .Constant (value = 'https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python /releases' ),
91+ ast .Constant (value = 'https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python /issues' ),
92+ ast .Constant (value = 'https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python /' )
9193 ]
9294 )
9395 case "packages" :
@@ -284,3 +286,9 @@ async def route_handler(route: Route) -> None:
284286
285287# Rename the Package Folder to Patchright
286288os .rename ("playwright-python/playwright" , "playwright-python/patchright" )
289+
290+ # Write the Projects README to the README which is used in the release
291+ with open ("README.md" , 'r' ) as src :
292+ with open ("playwright-python/README.md" , 'w' ) as dst :
293+ # Read from the source readme and write to the destination readme
294+ dst .write (src .read ())
0 commit comments