Skip to content

Commit 14a6d23

Browse files
committed
[GR-53687] Patch watchfiles to use patched pyo3
PullRequest: graalpython/3315
2 parents 8b7369d + 3294328 commit 14a6d23

File tree

2 files changed

+117
-0
lines changed

2 files changed

+117
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[rules]]
2+
version = '== 0.21.0'
3+
patch = 'watchfiles-0.21.0.patch'
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
From 08f340d5d4c2f5bb86513f0ccf691159b5d8536c Mon Sep 17 00:00:00 2001
2+
From: Ondrej Tethal <[email protected]>
3+
Date: Fri, 26 Apr 2024 10:56:48 +0200
4+
Subject: [PATCH 1/1] Force patched pyo3
5+
6+
---
7+
Cargo.lock | 33 ++++++++++++++++++---------------
8+
Cargo.toml | 2 +-
9+
2 files changed, 19 insertions(+), 16 deletions(-)
10+
11+
diff --git a/Cargo.lock b/Cargo.lock
12+
index 4561887..0571bd5 100644
13+
--- a/Cargo.lock
14+
+++ b/Cargo.lock
15+
@@ -214,6 +214,12 @@ dependencies = [
16+
"windows-sys 0.45.0",
17+
]
18+
19+
+[[package]]
20+
+name = "portable-atomic"
21+
+version = "1.6.0"
22+
+source = "registry+https://github.com/rust-lang/crates.io-index"
23+
+checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
24+
+
25+
[[package]]
26+
name = "proc-macro2"
27+
version = "1.0.53"
28+
@@ -225,15 +231,15 @@ dependencies = [
29+
30+
[[package]]
31+
name = "pyo3"
32+
-version = "0.20.0"
33+
-source = "registry+https://github.com/rust-lang/crates.io-index"
34+
-checksum = "04e8453b658fe480c3e70c8ed4e3d3ec33eb74988bd186561b0cc66b85c3bc4b"
35+
+version = "0.20.3"
36+
+source = "git+https://github.com/timfel/pyo3.git?branch=v0.20.3.graalpy#c02d58c5158dbb3a080200a078b0e997b83a7575"
37+
dependencies = [
38+
"cfg-if",
39+
"indoc",
40+
"libc",
41+
"memoffset",
42+
"parking_lot",
43+
+ "portable-atomic",
44+
"pyo3-build-config",
45+
"pyo3-ffi",
46+
"pyo3-macros",
47+
@@ -242,9 +248,8 @@ dependencies = [
48+
49+
[[package]]
50+
name = "pyo3-build-config"
51+
-version = "0.20.0"
52+
-source = "registry+https://github.com/rust-lang/crates.io-index"
53+
-checksum = "a96fe70b176a89cff78f2fa7b3c930081e163d5379b4dcdf993e3ae29ca662e5"
54+
+version = "0.20.3"
55+
+source = "git+https://github.com/timfel/pyo3.git?branch=v0.20.3.graalpy#c02d58c5158dbb3a080200a078b0e997b83a7575"
56+
dependencies = [
57+
"once_cell",
58+
"python3-dll-a",
59+
@@ -253,9 +258,8 @@ dependencies = [
60+
61+
[[package]]
62+
name = "pyo3-ffi"
63+
-version = "0.20.0"
64+
-source = "registry+https://github.com/rust-lang/crates.io-index"
65+
-checksum = "214929900fd25e6604661ed9cf349727c8920d47deff196c4e28165a6ef2a96b"
66+
+version = "0.20.3"
67+
+source = "git+https://github.com/timfel/pyo3.git?branch=v0.20.3.graalpy#c02d58c5158dbb3a080200a078b0e997b83a7575"
68+
dependencies = [
69+
"libc",
70+
"pyo3-build-config",
71+
@@ -263,9 +267,8 @@ dependencies = [
72+
73+
[[package]]
74+
name = "pyo3-macros"
75+
-version = "0.20.0"
76+
-source = "registry+https://github.com/rust-lang/crates.io-index"
77+
-checksum = "dac53072f717aa1bfa4db832b39de8c875b7c7af4f4a6fe93cdbf9264cf8383b"
78+
+version = "0.20.3"
79+
+source = "git+https://github.com/timfel/pyo3.git?branch=v0.20.3.graalpy#c02d58c5158dbb3a080200a078b0e997b83a7575"
80+
dependencies = [
81+
"proc-macro2",
82+
"pyo3-macros-backend",
83+
@@ -275,12 +278,12 @@ dependencies = [
84+
85+
[[package]]
86+
name = "pyo3-macros-backend"
87+
-version = "0.20.0"
88+
-source = "registry+https://github.com/rust-lang/crates.io-index"
89+
-checksum = "7774b5a8282bd4f25f803b1f0d945120be959a36c72e08e7cd031c792fdfd424"
90+
+version = "0.20.3"
91+
+source = "git+https://github.com/timfel/pyo3.git?branch=v0.20.3.graalpy#c02d58c5158dbb3a080200a078b0e997b83a7575"
92+
dependencies = [
93+
"heck",
94+
"proc-macro2",
95+
+ "pyo3-build-config",
96+
"quote",
97+
"syn",
98+
]
99+
diff --git a/Cargo.toml b/Cargo.toml
100+
index c129d85..284371e 100644
101+
--- a/Cargo.toml
102+
+++ b/Cargo.toml
103+
@@ -25,7 +25,7 @@ include = [
104+
[dependencies]
105+
crossbeam-channel = "0.5.4"
106+
notify = "5.0.0"
107+
-pyo3 = {version = "=0.20", features = ["extension-module", "generate-import-lib"]}
108+
+pyo3 = { git = "https://github.com/timfel/pyo3.git", branch = "v0.20.3.graalpy", features = ["extension-module"]}
109+
110+
[lib]
111+
name = "_rust_notify"
112+
--
113+
2.34.1
114+

0 commit comments

Comments
 (0)