Skip to content

Commit

Permalink
Merge pull request #22 from Arenatdk/fix-pipeline-toml
Browse files Browse the repository at this point in the history
Fix linux pipeline.
  • Loading branch information
Vinyzu authored Feb 16, 2025
2 parents df93fea + 0b8fe4f commit 10be7e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patch_python_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def patch_file(file_path: str, patched_tree: ast.AST) -> None:
f.write(f"version = '{patchright_version}'")

# Patching pyproject.toml
with open("playwright-python/pyproject.toml", "r+") as f:
with open("playwright-python/pyproject.toml", "r") as f:
pyproject_source = toml.load(f)

pyproject_source["project"]["name"] = "patchright"
Expand All @@ -35,8 +35,8 @@ def patch_file(file_path: str, patched_tree: ast.AST) -> None:
pyproject_source["tool"]["setuptools"]["packages"] = ['patchright', 'patchright.async_api', 'patchright.sync_api', 'patchright._impl', 'patchright._impl.__pyinstaller']
pyproject_source["tool"]["setuptools_scm"] = {'version_file': 'patchright/_repo_version.py'}

f.seek(0)
toml.dump(pyproject_source, f)
with open("playwright-python/pyproject.toml", "w") as f:
toml.dump(pyproject_source, f)


# Patching setup.py
Expand Down

0 comments on commit 10be7e9

Please sign in to comment.