File: relay_wheel_version.patch

package info (click to toggle)
python-playwright 1.55.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,728 kB
  • sloc: python: 53,655; javascript: 383; sh: 216; makefile: 6
file content (41 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Debian Python Team <team+python@tracker.debian.org>
Date: Wed, 1 Oct 2025 15:11:21 +0200
Subject: relay_wheel_version

---
 pyproject.toml |  2 +-
 setup.py       | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 1ff674e..683ad54 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
 [build-system]
-requires = ["setuptools==80.9.0", "setuptools-scm==8.3.1", "wheel==0.45.1", "auditwheel==6.2.0"]
+requires = ["setuptools", "setuptools-scm", "wheel", "auditwheel"]
 build-backend = "setuptools.build_meta"
 
 [project]
diff --git a/setup.py b/setup.py
index 5433955..37787a8 100644
--- a/setup.py
+++ b/setup.py
@@ -204,4 +204,16 @@ class PlaywrightBDistWheelCommand(BDistWheelCommand):
 
 setup(
     cmdclass={"bdist_wheel": PlaywrightBDistWheelCommand},
+    use_scm_version={
+        "version_scheme": "post-release",
+        "write_to": "playwright/_repo_version.py",
+        "write_to_template": 'version = "{version}"\n',
+    },
+    setup_requires=["setuptools-scm", "wheel"],
+    entry_points={
+        "console_scripts": [
+            "playwright=playwright.__main__:main",
+        ],
+        "pyinstaller40": ["hook-dirs=playwright._impl.__pyinstaller:get_hook_dirs"],
+    },
 )