Skip to content

build: Remove redundant build files #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,10 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
playwright/__pycache__/
**/__pycache__/
driver/
playwright/driver/
playwright.egg-info/
Expand All @@ -7,7 +7,7 @@ dist/
**/*.pyc
env/
htmlcov/
.coverage
.coverage*
.DS_Store
.vscode/
.eggs
Expand Down
7 changes: 0 additions & 7 deletions scripts/postPdoc3Generation.js

This file was deleted.

38 changes: 22 additions & 16 deletions scripts/update_versions.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
import re
from pathlib import Path

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
r = open("README.md", "r")
text = r.read()
for browser_type in [p.chromium, p.firefox, p.webkit]:
rx = re.compile(
r"<!-- GEN:" + browser_type.name + r"-version -->([^<]+)<!-- GEN:stop -->"
)
browser = browser_type.launch()
text = rx.sub(
f"<!-- GEN:{browser_type.name}-version -->{browser.version}<!-- GEN:stop -->",
text,
)
browser.close()

w = open("README.md", "w")
w.write(text)
w.close()
def main() -> None:
with sync_playwright() as p:
readme = Path("README.md").resolve()
text = readme.read_text(encoding="utf-8")
for browser_type in [p.chromium, p.firefox, p.webkit]:
rx = re.compile(
r"<!-- GEN:"
+ browser_type.name
+ r"-version -->([^<]+)<!-- GEN:stop -->"
)
browser = browser_type.launch()
text = rx.sub(
f"<!-- GEN:{browser_type.name}-version -->{browser.version}<!-- GEN:stop -->",
text,
)
browser.close()
readme.write_text(text, encoding="utf-8")


if __name__ == "__main__":
main()