Skip to content

Commit 265d4cf

Browse files
committed
chore: bump version to 0.0.4
1 parent 9720f73 commit 265d4cf

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

build_package.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (c) Microsoft Corporation.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import os
16+
import shutil
17+
import subprocess
18+
19+
folder = os.path.dirname(os.path.abspath(__file__))
20+
if os.path.exists(os.path.join(folder, 'build')):
21+
shutil.rmtree(os.path.join(folder, 'build'))
22+
if os.path.exists(os.path.join(folder, 'dist')):
23+
shutil.rmtree(os.path.join(folder, 'dist'))
24+
if os.path.exists(os.path.join(folder, 'playwright_web.egg-info')):
25+
shutil.rmtree(os.path.join(folder, 'playwright_web.egg-info'))
26+
27+
subprocess.run(['python3', 'setup.py', 'sdist', 'bdist_wheel'])

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setuptools.setup(
2121
name='playwright-web',
22-
version='0.0.3',
22+
version='0.0.4',
2323
author='Microsoft Corporation',
2424
author_email='',
2525
description='A high-level API to automate web browsers',

upload_package.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) Microsoft Corporation.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import subprocess
16+
17+
subprocess.run(['python3', '-m', 'twine', 'upload', 'dist/*'])

0 commit comments

Comments
 (0)