Skip to content

Commit 8ebb57b

Browse files
committed
stuff
1 parent c8e2fe7 commit 8ebb57b

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@ on:
33
release:
44
types: [published]
55
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-
276
deploy-conda:
287
strategy:
298
matrix:

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ def _download_and_extract_local_driver(
198198

199199

200200
setup(
201-
version="0.0.1",
202201
name="playwright",
203202
author="Microsoft Corporation",
204203
author_email="",
@@ -231,6 +230,11 @@ def _download_and_extract_local_driver(
231230
],
232231
python_requires=">=3.8",
233232
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+
},
234238
setup_requires=["setuptools-scm==7.0.5", "wheel==0.38.1"],
235239
entry_points={
236240
"console_scripts": [

0 commit comments

Comments
 (0)