File tree Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change 3
3
release :
4
4
types : [published]
5
5
jobs :
6
- deploy-pypi :
7
- runs-on : ubuntu-latest
8
- steps :
9
- - uses : actions/checkout@v3
10
- - name : Set up Python
11
- uses : actions/setup-python@v4
12
- with :
13
- python-version : 3.9
14
- - name : Install dependencies
15
- run : |
16
- python -m pip install --upgrade pip
17
- pip install -r local-requirements.txt
18
- pip install -e .
19
- python setup.py bdist_wheel --all
20
- python -m playwright install-deps
21
- - name : Publish package
22
- env :
23
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
24
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
25
- run : twine upload dist/*
26
-
27
6
deploy-conda :
28
7
strategy :
29
8
matrix :
Original file line number Diff line number Diff line change @@ -198,7 +198,6 @@ def _download_and_extract_local_driver(
198
198
199
199
200
200
setup (
201
- version = "0.0.1" ,
202
201
name = "playwright" ,
203
202
author = "Microsoft Corporation" ,
204
203
author_email = "" ,
@@ -231,6 +230,11 @@ def _download_and_extract_local_driver(
231
230
],
232
231
python_requires = ">=3.8" ,
233
232
cmdclass = {"bdist_wheel" : PlaywrightBDistWheelCommand },
233
+ use_scm_version = {
234
+ "version_scheme" : "post-release" ,
235
+ "write_to" : "playwright/_repo_version.py" ,
236
+ "write_to_template" : 'version = "{version}"\n ' ,
237
+ },
234
238
setup_requires = ["setuptools-scm==7.0.5" , "wheel==0.38.1" ],
235
239
entry_points = {
236
240
"console_scripts" : [
You can’t perform that action at this time.
0 commit comments