Skip to content

Commit 60a3129

Browse files
build: remove redundant build files (microsoft#503)
1 parent 1d39a2e commit 60a3129

File tree

6 files changed

+26
-36
lines changed

6 files changed

+26
-36
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,10 @@ jobs:
155155
timeout-minutes: 30
156156
steps:
157157
- uses: actions/checkout@v2
158-
- name: Set up Node.js
159-
uses: actions/setup-node@v1
160-
with:
161-
node-version: 12.x
162158
- name: Set up Python
163159
uses: actions/setup-python@v2
164160
with:
165-
python-version: 3.8
161+
python-version: 3.9
166162
- name: Install dependencies
167163
run: |
168164
python -m pip install --upgrade pip

.github/workflows/publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- name: Set up Node.js
11-
uses: actions/setup-node@v1
12-
with:
13-
node-version: 12.x
1410
- name: Set up Python
1511
uses: actions/setup-python@v2
1612
with:
17-
python-version: 3.8
13+
python-version: 3.9
1814
- name: Install dependencies
1915
run: |
2016
python -m pip install --upgrade pip

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
playwright/__pycache__/
1+
**/__pycache__/
22
driver/
33
playwright/driver/
44
playwright.egg-info/
@@ -7,7 +7,7 @@ dist/
77
**/*.pyc
88
env/
99
htmlcov/
10-
.coverage
10+
.coverage*
1111
.DS_Store
1212
.vscode/
1313
.eggs

scripts/postPdoc3Generation.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/update_versions.py

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
import re
2+
from pathlib import Path
23

34
from playwright.sync_api import sync_playwright
45

5-
with sync_playwright() as p:
6-
r = open("README.md", "r")
7-
text = r.read()
8-
for browser_type in [p.chromium, p.firefox, p.webkit]:
9-
rx = re.compile(
10-
r"<!-- GEN:" + browser_type.name + r"-version -->([^<]+)<!-- GEN:stop -->"
11-
)
12-
browser = browser_type.launch()
13-
text = rx.sub(
14-
f"<!-- GEN:{browser_type.name}-version -->{browser.version}<!-- GEN:stop -->",
15-
text,
16-
)
17-
browser.close()
186

19-
w = open("README.md", "w")
20-
w.write(text)
21-
w.close()
7+
def main() -> None:
8+
with sync_playwright() as p:
9+
readme = Path("README.md").resolve()
10+
text = readme.read_text(encoding="utf-8")
11+
for browser_type in [p.chromium, p.firefox, p.webkit]:
12+
rx = re.compile(
13+
r"<!-- GEN:"
14+
+ browser_type.name
15+
+ r"-version -->([^<]+)<!-- GEN:stop -->"
16+
)
17+
browser = browser_type.launch()
18+
text = rx.sub(
19+
f"<!-- GEN:{browser_type.name}-version -->{browser.version}<!-- GEN:stop -->",
20+
text,
21+
)
22+
browser.close()
23+
readme.write_text(text, encoding="utf-8")
24+
25+
26+
if __name__ == "__main__":
27+
main()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy