File tree Expand file tree Collapse file tree 4 files changed +34
-18
lines changed Expand file tree Collapse file tree 4 files changed +34
-18
lines changed Original file line number Diff line number Diff line change 3131 - name : Install browsers
3232 run : python -m playwright install
3333 - name : Lint
34- run : pre-commit run --all-files
34+ run : pre-commit run --all-files --show-diff-on-failure
3535 - name : Generate APIs
3636 run : bash scripts/update_api.sh
3737 - name : Verify API is up to date
Original file line number Diff line number Diff line change 22# See https://pre-commit.com/hooks.html for more hooks
33repos :
44- repo : https://github.com/pre-commit/pre-commit-hooks
5- rev : v3.2 .0
5+ rev : v3.4 .0
66 hooks :
77 - id : trailing-whitespace
88 - id : end-of-file-fixer
@@ -13,14 +13,14 @@ repos:
1313 hooks :
1414 - id : black
1515- repo : https://github.com/pre-commit/mirrors-mypy
16- rev : v0.782
16+ rev : v0.812
1717 hooks :
1818 - id : mypy
1919- repo : https://gitlab.com/pycqa/flake8
20- rev : ' 3.8.3 '
20+ rev : 3.8.4
2121 hooks :
2222 - id : flake8
2323- repo : https://github.com/pycqa/isort
24- rev : 5.5.4
24+ rev : 5.7.0
2525 hooks :
2626 - id : isort
Original file line number Diff line number Diff line change 1- autobahn==20.7.1
2- pytest==6.1.0
1+ autobahn==21.2.2
2+ pytest==6.2.2
33pytest-asyncio==0.14.0
4- pytest-cov==2.10 .1
4+ pytest-cov==2.11 .1
55pytest-sugar==0.9.4
6- pytest-xdist==2.1.0
6+ pytest-xdist==2.2.1
77pytest-timeout==1.4.2
88flaky==3.7.0
9- pixelmatch==0.2.1
10- Pillow==8.0 .0
11- mypy==0.782
12- setuptools==50.3 .0
9+ pixelmatch==0.2.3
10+ Pillow==8.1 .0
11+ mypy==0.812
12+ setuptools==53.1 .0
1313# TODO: use PyPi version after >20.3.0 is released
1414git+https://github.com/twisted/twisted.git@4ff22287cab3b54f51cee41ea2619e72d1bff2e4
15- wheel==0.35.1
15+ wheel==0.36.2
16+ auditwheel==3.3.1
1617black==20.8b1
17- pre-commit==2.7 .1
18- flake8==3.8.3
19- twine==3.2 .0
20- pyOpenSSL==19.1.0
18+ pre-commit==2.10 .1
19+ flake8==3.8.4
20+ twine==3.3 .0
21+ pyOpenSSL==20.0.1
2122service_identity==18.1.0
Original file line number Diff line number Diff line change 2121import zipfile
2222
2323import setuptools
24+ from auditwheel .wheeltools import InWheel
2425from wheel .bdist_wheel import bdist_wheel as BDistWheelCommand
2526
2627driver_version = "1.9.0-1614037901000"
2728
29+
2830with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
2931 long_description = fh .read ()
3032
33+
3134NoneType = type (None )
3235
3336
@@ -101,6 +104,18 @@ def run(self) -> None:
101104 zip .writestr ("playwright/driver/README.md" , "Universal Mac package" )
102105
103106 os .remove (base_wheel_location )
107+ for whlfile in glob .glob ("dist/*.whl" ):
108+
109+ os .makedirs ("wheelhouse" , exist_ok = True )
110+ with InWheel (
111+ in_wheel = whlfile ,
112+ out_wheel = os .path .join ("wheelhouse" , os .path .basename (whlfile )),
113+ ret_self = True ,
114+ ):
115+ print ("Updating RECORD file of %s" % whlfile )
116+ shutil .rmtree ("dist" )
117+ print ("Copying new wheels" )
118+ shutil .move ("wheelhouse" , "dist" )
104119
105120
106121setuptools .setup (
You can’t perform that action at this time.
0 commit comments