Skip to content

Commit 237802a

Browse files
authored
Revert "ci: added auto publishing to PyPi (#53)" (#57)
This reverts commit d50cdca.
1 parent 9c45b7d commit 237802a

File tree

6 files changed

+21
-45
lines changed

6 files changed

+21
-45
lines changed

.github/workflows/publish.yml

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

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ env/
1111
htmlcov/
1212
.coverage
1313
.DS_Store
14-
.vscode/
15-
.eggs
16-
_repo_version.py
14+
.vscode/

local-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ wheel==0.34.2
1010
black==19.10b0
1111
pre-commit==2.6.0
1212
flake8==3.8.3
13-
twine==3.2.0

playwright/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from playwright._repo_version import version as __version__ # noqa:F401
1615
from playwright.main import playwright_object
1716
import playwright.helper as helper
1817

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@
1919

2020
setuptools.setup(
2121
name="playwright",
22+
version="0.0.3",
2223
author="Microsoft Corporation",
2324
author_email="",
2425
description="A high-level API to automate web browsers",
2526
long_description=long_description,
2627
long_description_content_type="text/markdown",
2728
url="https://github.com/Microsoft/playwright-python",
28-
packages=["playwright"],
29+
packages=setuptools.find_packages(),
2930
include_package_data=True,
30-
install_requires=["pyee", "typing-extensions"],
31+
install_requires=["pyee", "typing-extensions",],
3132
classifiers=[
3233
"Topic :: Software Development :: Testing",
3334
"Topic :: Internet :: WWW/HTTP :: Browsers",
@@ -39,10 +40,4 @@
3940
"Operating System :: OS Independent",
4041
],
4142
python_requires=">=3.7",
42-
use_scm_version={
43-
"version_scheme": "post-release",
44-
"write_to": "playwright/_repo_version.py",
45-
"write_to_template": 'version = "{version}"\n',
46-
},
47-
setup_requires=["setuptools_scm"],
4843
)

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("python -m twine upload dist/*", shell=True)

0 commit comments

Comments
 (0)