pywinpty 3.0.0__tar.gz → 3.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. pywinpty-3.0.1/.github/FUNDING.yml +2 -0
  2. {pywinpty-3.0.0 → pywinpty-3.0.1}/.github/workflows/linux_sdist.yml +1 -1
  3. {pywinpty-3.0.0 → pywinpty-3.0.1}/.github/workflows/windows_build.yml +5 -11
  4. {pywinpty-3.0.0 → pywinpty-3.0.1}/.github/workflows/windows_release.yml +5 -4
  5. {pywinpty-3.0.0 → pywinpty-3.0.1}/CHANGELOG.md +18 -2
  6. {pywinpty-3.0.0 → pywinpty-3.0.1}/Cargo.lock +80 -136
  7. {pywinpty-3.0.0 → pywinpty-3.0.1}/Cargo.toml +4 -4
  8. {pywinpty-3.0.0 → pywinpty-3.0.1}/PKG-INFO +2 -1
  9. {pywinpty-3.0.0 → pywinpty-3.0.1}/README.md +8 -1
  10. {pywinpty-3.0.0 → pywinpty-3.0.1}/build.rs +1 -0
  11. {pywinpty-3.0.0 → pywinpty-3.0.1}/pyproject.toml +1 -1
  12. {pywinpty-3.0.0 → pywinpty-3.0.1}/runtests.py +1 -1
  13. {pywinpty-3.0.0 → pywinpty-3.0.1}/src/lib.rs +8 -14
  14. {pywinpty-3.0.0 → pywinpty-3.0.1}/winpty/enums.py +1 -1
  15. {pywinpty-3.0.0 → pywinpty-3.0.1}/winpty/ptyprocess.py +1 -1
  16. {pywinpty-3.0.0 → pywinpty-3.0.1}/.github/dependabot.yml +0 -0
  17. {pywinpty-3.0.0 → pywinpty-3.0.1}/.github/scripts/copy_winpty.sh +0 -0
  18. {pywinpty-3.0.0 → pywinpty-3.0.1}/.gitignore +0 -0
  19. {pywinpty-3.0.0 → pywinpty-3.0.1}/LICENSE.txt +0 -0
  20. {pywinpty-3.0.0 → pywinpty-3.0.1}/MANIFEST.in +0 -0
  21. {pywinpty-3.0.0 → pywinpty-3.0.1}/RELEASE.md +0 -0
  22. {pywinpty-3.0.0 → pywinpty-3.0.1}/nuget.config +0 -0
  23. {pywinpty-3.0.0 → pywinpty-3.0.1}/winpty/__init__.py +0 -0
  24. {pywinpty-3.0.0 → pywinpty-3.0.1}/winpty/tests/__init__.py +0 -0
  25. {pywinpty-3.0.0 → pywinpty-3.0.1}/winpty/tests/test_pty.py +0 -0
  26. {pywinpty-3.0.0 → pywinpty-3.0.1}/winpty/tests/test_ptyprocess.py +0 -0
  27. {pywinpty-3.0.0 → pywinpty-3.0.1}/winpty/winpty.pyi +0 -0
@@ -0,0 +1,2 @@
1
+ github: andfoy
2
+ tidelift: pypi/pywinpty
@@ -18,7 +18,7 @@ jobs:
18
18
  PYTHON_VERSION: ["3.11"]
19
19
  steps:
20
20
  - name: Checkout branch
21
- uses: actions/checkout@v4
21
+ uses: actions/checkout@v5
22
22
  - name: Install latest Rust stable
23
23
  uses: actions-rs/toolchain@v1
24
24
  with:
@@ -20,17 +20,10 @@ jobs:
20
20
  strategy:
21
21
  fail-fast: false
22
22
  matrix:
23
- PYTHON_VERSION: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.13t"]
23
+ PYTHON_VERSION: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.13t", "3.14", "3.14t"]
24
24
  steps:
25
25
  - name: Checkout branch
26
- uses: actions/checkout@v4
27
- - name: Install latest Rust stable
28
- uses: actions-rs/toolchain@v1
29
- with:
30
- toolchain: stable
31
- target: x86_64-pc-windows-msvc
32
- override: true
33
- components: rustfmt, clippy
26
+ uses: actions/checkout@v5
34
27
  - uses: nuget/setup-nuget@v2
35
28
  with:
36
29
  nuget-version: '5.x'
@@ -49,8 +42,9 @@ jobs:
49
42
  uses: conda-incubator/setup-miniconda@v3
50
43
  with:
51
44
  auto-update-conda: true
52
- activate-environment: test
53
- channels: conda-forge,defaults
45
+ miniforge-version: latest
46
+ channels: conda-forge/label/python_rc,conda-forge
47
+ conda-remove-defaults: "true"
54
48
  python-version: ${{ env.PYTHON_VERSION_NONSUFFIX }}
55
49
  - name: Reinstall free-threaded Python
56
50
  if: ${{ endsWith(matrix.PYTHON_VERSION, 't') }}
@@ -15,10 +15,10 @@ jobs:
15
15
  strategy:
16
16
  fail-fast: false
17
17
  matrix:
18
- PYTHON_VERSION: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.13t"]
18
+ PYTHON_VERSION: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.13t", "3.14", "3.14t"]
19
19
  steps:
20
20
  - name: Checkout branch
21
- uses: actions/checkout@v4
21
+ uses: actions/checkout@v5
22
22
  - name: Install latest Rust stable
23
23
  uses: actions-rs/toolchain@v1
24
24
  with:
@@ -44,8 +44,9 @@ jobs:
44
44
  uses: conda-incubator/setup-miniconda@v3
45
45
  with:
46
46
  auto-update-conda: true
47
- activate-environment: test
48
- channels: conda-forge,defaults
47
+ miniforge-version: latest
48
+ channels: conda-forge/label/python_rc,conda-forge
49
+ conda-remove-defaults: "true"
49
50
  python-version: ${{ env.PYTHON_VERSION_NONSUFFIX }}
50
51
  - name: Reinstall free-threaded Python
51
52
  if: ${{ endsWith(matrix.PYTHON_VERSION, 't') }}
@@ -1,3 +1,19 @@
1
+ ## Version 3.0.1 (2025/10/03)
2
+
3
+
4
+ ### Pull Requests Merged
5
+
6
+ * [PR 540](https://github.com/andfoy/pywinpty/pull/540) - Update Rust dependencies ahead of v3.0.1, by [@andfoy](https://github.com/andfoy)
7
+ * [PR 539](https://github.com/andfoy/pywinpty/pull/539) - Fix typos discovered by codespell, by [@cclauss](https://github.com/cclauss)
8
+ * [PR 538](https://github.com/andfoy/pywinpty/pull/538) - Remove deprecated actions-rs/toolchain, by [@cclauss](https://github.com/cclauss)
9
+ * [PR 535](https://github.com/andfoy/pywinpty/pull/535) - Support Python 3.14(t), by [@ngoldbaum](https://github.com/ngoldbaum)
10
+ * [PR 534](https://github.com/andfoy/pywinpty/pull/534) - Bump serde_json from 1.0.142 to 1.0.145, by [@dependabot[bot]](https://github.com/apps/dependabot)
11
+ * [PR 533](https://github.com/andfoy/pywinpty/pull/533) - Update build.rs, by [@ImmortalEmperor](https://github.com/ImmortalEmperor)
12
+ * [PR 520](https://github.com/andfoy/pywinpty/pull/520) - Bump actions/checkout from 4 to 5, by [@dependabot[bot]](https://github.com/apps/dependabot)
13
+
14
+ In this release 7 pull requests were closed.
15
+
16
+
1
17
  ## Version 3.0.0 (2025/08/12)
2
18
 
3
19
 
@@ -470,7 +486,7 @@ In this release 1 pull request was closed.
470
486
  ### Issues Closed
471
487
 
472
488
  * [Issue 126](https://github.com/spyder-ide/pywinpty/issues/126) - Release v0.5.6
473
- * [Issue 123](https://github.com/spyder-ide/pywinpty/issues/123) - pip install fails on Python 3.8/Windoes ([PR 125](https://github.com/spyder-ide/pywinpty/pull/125))
489
+ * [Issue 123](https://github.com/spyder-ide/pywinpty/issues/123) - pip install fails on Python 3.8/Windows ([PR 125](https://github.com/spyder-ide/pywinpty/pull/125))
474
490
 
475
491
  In this release 2 issues were closed.
476
492
 
@@ -511,7 +527,7 @@ In this release 4 issues were closed.
511
527
 
512
528
  ### Pull Requests Merged
513
529
 
514
- * [PR 113](https://github.com/spyder-ide/pywinpty/pull/113) - PR: Add PYWINPTY_BLOCK envirnoment variable to disable ptyprocess read block ([110](https://github.com/spyder-ide/pywinpty/issues/110))
530
+ * [PR 113](https://github.com/spyder-ide/pywinpty/pull/113) - PR: Add PYWINPTY_BLOCK environment variable to disable ptyprocess read block ([110](https://github.com/spyder-ide/pywinpty/issues/110))
515
531
  * [PR 112](https://github.com/spyder-ide/pywinpty/pull/112) - PR: Remove import-time verification ([111](https://github.com/spyder-ide/pywinpty/issues/111))
516
532
  * [PR 109](https://github.com/spyder-ide/pywinpty/pull/109) - PR: Fix for access violation error ([108](https://github.com/spyder-ide/pywinpty/issues/108))
517
533
 
@@ -10,9 +10,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
10
10
 
11
11
  [[package]]
12
12
  name = "bitflags"
13
- version = "2.9.1"
13
+ version = "2.9.4"
14
14
  source = "registry+https://github.com/rust-lang/crates.io-index"
15
- checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
15
+ checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
16
16
 
17
17
  [[package]]
18
18
  name = "crossbeam-channel"
@@ -48,9 +48,9 @@ checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
48
48
 
49
49
  [[package]]
50
50
  name = "errno"
51
- version = "0.3.13"
51
+ version = "0.3.14"
52
52
  source = "registry+https://github.com/rust-lang/crates.io-index"
53
- checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad"
53
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
54
54
  dependencies = [
55
55
  "libc",
56
56
  "windows-sys",
@@ -58,9 +58,9 @@ dependencies = [
58
58
 
59
59
  [[package]]
60
60
  name = "glob"
61
- version = "0.3.2"
61
+ version = "0.3.3"
62
62
  source = "registry+https://github.com/rust-lang/crates.io-index"
63
- checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
63
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
64
64
 
65
65
  [[package]]
66
66
  name = "heck"
@@ -82,21 +82,21 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
82
82
 
83
83
  [[package]]
84
84
  name = "libc"
85
- version = "0.2.175"
85
+ version = "0.2.176"
86
86
  source = "registry+https://github.com/rust-lang/crates.io-index"
87
- checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
87
+ checksum = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174"
88
88
 
89
89
  [[package]]
90
90
  name = "linux-raw-sys"
91
- version = "0.9.4"
91
+ version = "0.11.0"
92
92
  source = "registry+https://github.com/rust-lang/crates.io-index"
93
- checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
93
+ checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
94
94
 
95
95
  [[package]]
96
96
  name = "memchr"
97
- version = "2.7.5"
97
+ version = "2.7.6"
98
98
  source = "registry+https://github.com/rust-lang/crates.io-index"
99
- checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
99
+ checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
100
100
 
101
101
  [[package]]
102
102
  name = "memoffset"
@@ -130,18 +130,18 @@ checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
130
130
 
131
131
  [[package]]
132
132
  name = "proc-macro2"
133
- version = "1.0.95"
133
+ version = "1.0.101"
134
134
  source = "registry+https://github.com/rust-lang/crates.io-index"
135
- checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
135
+ checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
136
136
  dependencies = [
137
137
  "unicode-ident",
138
138
  ]
139
139
 
140
140
  [[package]]
141
141
  name = "pyo3"
142
- version = "0.25.1"
142
+ version = "0.26.0"
143
143
  source = "registry+https://github.com/rust-lang/crates.io-index"
144
- checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a"
144
+ checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
145
145
  dependencies = [
146
146
  "indoc",
147
147
  "libc",
@@ -156,19 +156,18 @@ dependencies = [
156
156
 
157
157
  [[package]]
158
158
  name = "pyo3-build-config"
159
- version = "0.25.1"
159
+ version = "0.26.0"
160
160
  source = "registry+https://github.com/rust-lang/crates.io-index"
161
- checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
161
+ checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
162
162
  dependencies = [
163
- "once_cell",
164
163
  "target-lexicon",
165
164
  ]
166
165
 
167
166
  [[package]]
168
167
  name = "pyo3-ffi"
169
- version = "0.25.1"
168
+ version = "0.26.0"
170
169
  source = "registry+https://github.com/rust-lang/crates.io-index"
171
- checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c"
170
+ checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105"
172
171
  dependencies = [
173
172
  "libc",
174
173
  "pyo3-build-config",
@@ -176,9 +175,9 @@ dependencies = [
176
175
 
177
176
  [[package]]
178
177
  name = "pyo3-macros"
179
- version = "0.25.1"
178
+ version = "0.26.0"
180
179
  source = "registry+https://github.com/rust-lang/crates.io-index"
181
- checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50"
180
+ checksum = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded"
182
181
  dependencies = [
183
182
  "proc-macro2",
184
183
  "pyo3-macros-backend",
@@ -188,9 +187,9 @@ dependencies = [
188
187
 
189
188
  [[package]]
190
189
  name = "pyo3-macros-backend"
191
- version = "0.25.1"
190
+ version = "0.26.0"
192
191
  source = "registry+https://github.com/rust-lang/crates.io-index"
193
- checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc"
192
+ checksum = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf"
194
193
  dependencies = [
195
194
  "heck",
196
195
  "proc-macro2",
@@ -201,7 +200,7 @@ dependencies = [
201
200
 
202
201
  [[package]]
203
202
  name = "pywinpty"
204
- version = "3.0.0"
203
+ version = "3.0.1"
205
204
  dependencies = [
206
205
  "glob",
207
206
  "pyo3",
@@ -210,18 +209,18 @@ dependencies = [
210
209
 
211
210
  [[package]]
212
211
  name = "quote"
213
- version = "1.0.40"
212
+ version = "1.0.41"
214
213
  source = "registry+https://github.com/rust-lang/crates.io-index"
215
- checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
214
+ checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
216
215
  dependencies = [
217
216
  "proc-macro2",
218
217
  ]
219
218
 
220
219
  [[package]]
221
220
  name = "rustix"
222
- version = "1.0.8"
221
+ version = "1.1.2"
223
222
  source = "registry+https://github.com/rust-lang/crates.io-index"
224
- checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8"
223
+ checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
225
224
  dependencies = [
226
225
  "bitflags",
227
226
  "errno",
@@ -238,18 +237,28 @@ checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
238
237
 
239
238
  [[package]]
240
239
  name = "serde"
241
- version = "1.0.219"
240
+ version = "1.0.228"
241
+ source = "registry+https://github.com/rust-lang/crates.io-index"
242
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
243
+ dependencies = [
244
+ "serde_core",
245
+ "serde_derive",
246
+ ]
247
+
248
+ [[package]]
249
+ name = "serde_core"
250
+ version = "1.0.228"
242
251
  source = "registry+https://github.com/rust-lang/crates.io-index"
243
- checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
252
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
244
253
  dependencies = [
245
254
  "serde_derive",
246
255
  ]
247
256
 
248
257
  [[package]]
249
258
  name = "serde_derive"
250
- version = "1.0.219"
259
+ version = "1.0.228"
251
260
  source = "registry+https://github.com/rust-lang/crates.io-index"
252
- checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
261
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
253
262
  dependencies = [
254
263
  "proc-macro2",
255
264
  "quote",
@@ -258,21 +267,22 @@ dependencies = [
258
267
 
259
268
  [[package]]
260
269
  name = "serde_json"
261
- version = "1.0.142"
270
+ version = "1.0.145"
262
271
  source = "registry+https://github.com/rust-lang/crates.io-index"
263
- checksum = "030fedb782600dcbd6f02d479bf0d817ac3bb40d644745b769d6a96bc3afc5a7"
272
+ checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
264
273
  dependencies = [
265
274
  "itoa",
266
275
  "memchr",
267
276
  "ryu",
268
277
  "serde",
278
+ "serde_core",
269
279
  ]
270
280
 
271
281
  [[package]]
272
282
  name = "syn"
273
- version = "2.0.104"
283
+ version = "2.0.106"
274
284
  source = "registry+https://github.com/rust-lang/crates.io-index"
275
- checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
285
+ checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
276
286
  dependencies = [
277
287
  "proc-macro2",
278
288
  "quote",
@@ -281,15 +291,15 @@ dependencies = [
281
291
 
282
292
  [[package]]
283
293
  name = "target-lexicon"
284
- version = "0.13.2"
294
+ version = "0.13.3"
285
295
  source = "registry+https://github.com/rust-lang/crates.io-index"
286
- checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
296
+ checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
287
297
 
288
298
  [[package]]
289
299
  name = "unicode-ident"
290
- version = "1.0.18"
300
+ version = "1.0.19"
291
301
  source = "registry+https://github.com/rust-lang/crates.io-index"
292
- checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
302
+ checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
293
303
 
294
304
  [[package]]
295
305
  name = "unindent"
@@ -310,22 +320,21 @@ dependencies = [
310
320
 
311
321
  [[package]]
312
322
  name = "windows"
313
- version = "0.61.3"
323
+ version = "0.62.1"
314
324
  source = "registry+https://github.com/rust-lang/crates.io-index"
315
- checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"
325
+ checksum = "49e6c4a1f363c8210c6f77ba24f645c61c6fb941eccf013da691f7e09515b8ac"
316
326
  dependencies = [
317
327
  "windows-collections",
318
328
  "windows-core",
319
329
  "windows-future",
320
- "windows-link",
321
330
  "windows-numerics",
322
331
  ]
323
332
 
324
333
  [[package]]
325
334
  name = "windows-bindgen"
326
- version = "0.62.1"
335
+ version = "0.64.0"
327
336
  source = "registry+https://github.com/rust-lang/crates.io-index"
328
- checksum = "9b541b67bb66a43de06888703b15519e40b3fc9b65917dc1ccd71aecfd7c5703"
337
+ checksum = "dccf77071e0b253f8918f49f8aed05827e0b3f03813d663da0df24ee979e725c"
329
338
  dependencies = [
330
339
  "serde",
331
340
  "serde_json",
@@ -334,18 +343,18 @@ dependencies = [
334
343
 
335
344
  [[package]]
336
345
  name = "windows-collections"
337
- version = "0.2.0"
346
+ version = "0.3.1"
338
347
  source = "registry+https://github.com/rust-lang/crates.io-index"
339
- checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"
348
+ checksum = "123e712f464a8a60ce1a13f4c446d2d43ab06464cb5842ff68f5c71b6fb7852e"
340
349
  dependencies = [
341
350
  "windows-core",
342
351
  ]
343
352
 
344
353
  [[package]]
345
354
  name = "windows-core"
346
- version = "0.61.2"
355
+ version = "0.62.1"
347
356
  source = "registry+https://github.com/rust-lang/crates.io-index"
348
- checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
357
+ checksum = "6844ee5416b285084d3d3fffd743b925a6c9385455f64f6d4fa3031c4c2749a9"
349
358
  dependencies = [
350
359
  "windows-implement",
351
360
  "windows-interface",
@@ -356,9 +365,9 @@ dependencies = [
356
365
 
357
366
  [[package]]
358
367
  name = "windows-future"
359
- version = "0.2.1"
368
+ version = "0.3.1"
360
369
  source = "registry+https://github.com/rust-lang/crates.io-index"
361
- checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
370
+ checksum = "68f3db6b24b120200d649cd4811b4947188ed3a8d2626f7075146c5d178a9a4a"
362
371
  dependencies = [
363
372
  "windows-core",
364
373
  "windows-link",
@@ -367,9 +376,9 @@ dependencies = [
367
376
 
368
377
  [[package]]
369
378
  name = "windows-implement"
370
- version = "0.60.0"
379
+ version = "0.60.1"
371
380
  source = "registry+https://github.com/rust-lang/crates.io-index"
372
- checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836"
381
+ checksum = "edb307e42a74fb6de9bf3a02d9712678b22399c87e6fa869d6dfcd8c1b7754e0"
373
382
  dependencies = [
374
383
  "proc-macro2",
375
384
  "quote",
@@ -378,9 +387,9 @@ dependencies = [
378
387
 
379
388
  [[package]]
380
389
  name = "windows-interface"
381
- version = "0.59.1"
390
+ version = "0.59.2"
382
391
  source = "registry+https://github.com/rust-lang/crates.io-index"
383
- checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8"
392
+ checksum = "c0abd1ddbc6964ac14db11c7213d6532ef34bd9aa042c2e5935f59d7908b46a5"
384
393
  dependencies = [
385
394
  "proc-macro2",
386
395
  "quote",
@@ -389,15 +398,15 @@ dependencies = [
389
398
 
390
399
  [[package]]
391
400
  name = "windows-link"
392
- version = "0.1.3"
401
+ version = "0.2.0"
393
402
  source = "registry+https://github.com/rust-lang/crates.io-index"
394
- checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
403
+ checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
395
404
 
396
405
  [[package]]
397
406
  name = "windows-numerics"
398
- version = "0.2.0"
407
+ version = "0.3.0"
399
408
  source = "registry+https://github.com/rust-lang/crates.io-index"
400
- checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
409
+ checksum = "2ce3498fe0aba81e62e477408383196b4b0363db5e0c27646f932676283b43d8"
401
410
  dependencies = [
402
411
  "windows-core",
403
412
  "windows-link",
@@ -405,110 +414,45 @@ dependencies = [
405
414
 
406
415
  [[package]]
407
416
  name = "windows-result"
408
- version = "0.3.4"
417
+ version = "0.4.0"
409
418
  source = "registry+https://github.com/rust-lang/crates.io-index"
410
- checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
419
+ checksum = "7084dcc306f89883455a206237404d3eaf961e5bd7e0f312f7c91f57eb44167f"
411
420
  dependencies = [
412
421
  "windows-link",
413
422
  ]
414
423
 
415
424
  [[package]]
416
425
  name = "windows-strings"
417
- version = "0.4.2"
426
+ version = "0.5.0"
418
427
  source = "registry+https://github.com/rust-lang/crates.io-index"
419
- checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
428
+ checksum = "7218c655a553b0bed4426cf54b20d7ba363ef543b52d515b3e48d7fd55318dda"
420
429
  dependencies = [
421
430
  "windows-link",
422
431
  ]
423
432
 
424
433
  [[package]]
425
434
  name = "windows-sys"
426
- version = "0.60.2"
427
- source = "registry+https://github.com/rust-lang/crates.io-index"
428
- checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
429
- dependencies = [
430
- "windows-targets",
431
- ]
432
-
433
- [[package]]
434
- name = "windows-targets"
435
- version = "0.53.3"
435
+ version = "0.61.1"
436
436
  source = "registry+https://github.com/rust-lang/crates.io-index"
437
- checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
437
+ checksum = "6f109e41dd4a3c848907eb83d5a42ea98b3769495597450cf6d153507b166f0f"
438
438
  dependencies = [
439
439
  "windows-link",
440
- "windows_aarch64_gnullvm",
441
- "windows_aarch64_msvc",
442
- "windows_i686_gnu",
443
- "windows_i686_gnullvm",
444
- "windows_i686_msvc",
445
- "windows_x86_64_gnu",
446
- "windows_x86_64_gnullvm",
447
- "windows_x86_64_msvc",
448
440
  ]
449
441
 
450
442
  [[package]]
451
443
  name = "windows-threading"
452
- version = "0.1.0"
444
+ version = "0.2.0"
453
445
  source = "registry+https://github.com/rust-lang/crates.io-index"
454
- checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"
446
+ checksum = "ab47f085ad6932defa48855254c758cdd0e2f2d48e62a34118a268d8f345e118"
455
447
  dependencies = [
456
448
  "windows-link",
457
449
  ]
458
450
 
459
- [[package]]
460
- name = "windows_aarch64_gnullvm"
461
- version = "0.53.0"
462
- source = "registry+https://github.com/rust-lang/crates.io-index"
463
- checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
464
-
465
- [[package]]
466
- name = "windows_aarch64_msvc"
467
- version = "0.53.0"
468
- source = "registry+https://github.com/rust-lang/crates.io-index"
469
- checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
470
-
471
- [[package]]
472
- name = "windows_i686_gnu"
473
- version = "0.53.0"
474
- source = "registry+https://github.com/rust-lang/crates.io-index"
475
- checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3"
476
-
477
- [[package]]
478
- name = "windows_i686_gnullvm"
479
- version = "0.53.0"
480
- source = "registry+https://github.com/rust-lang/crates.io-index"
481
- checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
482
-
483
- [[package]]
484
- name = "windows_i686_msvc"
485
- version = "0.53.0"
486
- source = "registry+https://github.com/rust-lang/crates.io-index"
487
- checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
488
-
489
- [[package]]
490
- name = "windows_x86_64_gnu"
491
- version = "0.53.0"
492
- source = "registry+https://github.com/rust-lang/crates.io-index"
493
- checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
494
-
495
- [[package]]
496
- name = "windows_x86_64_gnullvm"
497
- version = "0.53.0"
498
- source = "registry+https://github.com/rust-lang/crates.io-index"
499
- checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
500
-
501
- [[package]]
502
- name = "windows_x86_64_msvc"
503
- version = "0.53.0"
504
- source = "registry+https://github.com/rust-lang/crates.io-index"
505
- checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
506
-
507
451
  [[package]]
508
452
  name = "winpty-rs"
509
- version = "1.0.3"
453
+ version = "1.0.4"
510
454
  source = "registry+https://github.com/rust-lang/crates.io-index"
511
- checksum = "540fb3075c343702700c078ca2e8783213f752c40876257d9fc868c54ba37ba9"
455
+ checksum = "40de59a23f65026b6aad538a1acd6c5fa996894df469e2039eee1322e97581e8"
512
456
  dependencies = [
513
457
  "bitflags",
514
458
  "crossbeam-channel",
@@ -1,13 +1,13 @@
1
1
  [package]
2
2
  name = "pywinpty"
3
- version = "3.0.0"
3
+ version = "3.0.1"
4
4
  authors = ["Edgar Andrés Margffoy Tuay <andfoy@gmail.com>"]
5
5
  description = "Pseudo terminal support for Windows from Python."
6
6
  repository = "https://github.com/spyder-ide/pywinpty"
7
7
  license = "MIT"
8
8
  keywords = ["pty", "pseudo-terminal", "conpty", "windows", "winpty"]
9
9
  readme = "README.md"
10
- edition = "2021"
10
+ edition = "2024"
11
11
 
12
12
  [lib]
13
13
  name = "winpty"
@@ -17,10 +17,10 @@ crate-type = ["cdylib"]
17
17
  glob = "0.3.2"
18
18
 
19
19
  [dependencies]
20
- winpty-rs = "1.0.3"
20
+ winpty-rs = "1.0.4"
21
21
 
22
22
  [dependencies.pyo3]
23
- version = "0.25.1"
23
+ version = "0.26.0"
24
24
  features = ["extension-module"]
25
25
 
26
26
  [package.metadata.docs.rs]
@@ -1,5 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pywinpty
3
- Version: 3.0.0
3
+ Version: 3.0.1
4
4
  License-File: LICENSE.txt
5
+ Summary: Pseudo terminal support for Windows from Python.
5
6
  Requires-Python: >=3.9
@@ -116,7 +116,7 @@ on pytest-lazy-fixture, which can be installed via pip:
116
116
  pip install pytest pytest-lazy-fixture flaky
117
117
  ```
118
118
 
119
- All the tests can be exceuted using the following command
119
+ All the tests can be executed using the following command
120
120
 
121
121
  ```bash
122
122
  python runtests.py
@@ -129,3 +129,10 @@ Visit our [CHANGELOG](CHANGELOG.md) file to learn more about our new features an
129
129
 
130
130
  ## Contribution guidelines
131
131
  We follow PEP8 and PEP257 for pure python packages and Rust to compile extensions. We use MyPy type annotations for all functions and classes declared on this package. Feel free to send a PR or create an issue if you have any problem/question.
132
+
133
+
134
+ ## Security contact information
135
+
136
+ To report a security vulnerability, please use the
137
+ [Tidelift security contact](https://tidelift.com/security).
138
+ Tidelift will coordinate the fix and disclosure.
@@ -53,6 +53,7 @@ fn main() {
53
53
  let simplified_arch = match ARCH {
54
54
  "x86_64" => "x64",
55
55
  "arm" => "arm64",
56
+ "aarch64" => "arm64",
56
57
  _ => ARCH,
57
58
  };
58
59
 
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "pywinpty"
3
3
  requires-python = ">=3.9"
4
- dynamic = ["version"]
4
+ dynamic = ["version", "description", "summary", "project_url"]
5
5
 
6
6
  [build-system]
7
7
  requires = ["maturin>=1.1,<2.0"]
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- """Script used to run pytest programatically."""
3
+ """Script used to run pytest programmatically."""
4
4
 
5
5
  # Standard library imports
6
6
  import argparse
@@ -1,17 +1,11 @@
1
1
 
2
- use std::ops::DerefMut;
3
- // use cxx::Exception;
4
- use std::{ffi::OsString, sync::Arc};
5
- use std::sync::RwLock;
2
+ use std::ffi::OsString;
6
3
 
7
4
  use pyo3::create_exception;
8
5
  use pyo3::exceptions::PyException;
9
6
  use pyo3::prelude::*;
10
- use pyo3::sync::MutexExt;
11
7
 
12
- // use pyo3::types::PyBytes;
13
8
  use winptyrs::{PTY, PTYArgs, PTYBackend, MouseMode, AgentConfig};
14
- // use winptyrs::pty::PTYImpl;
15
9
 
16
10
  // Package version
17
11
  const VERSION: &'static str = env!("CARGO_PKG_VERSION");
@@ -194,7 +188,7 @@ impl PyPTY {
194
188
  ///
195
189
  fn set_size(&self, cols: i32, rows: i32, py: Python) -> PyResult<()> {
196
190
  let result: Result<(), OsString> =
197
- py.allow_threads(|| self.pty.set_size(cols, rows));
191
+ py.detach(|| self.pty.set_size(cols, rows));
198
192
  match result {
199
193
  Ok(()) => Ok(()),
200
194
  Err(error) => {
@@ -234,7 +228,7 @@ impl PyPTY {
234
228
  fn read<'p>(&self, blocking: bool, py: Python<'p>) -> PyResult<OsString> {
235
229
  // let result = self.pty.read(length, blocking);
236
230
  let result: Result<OsString, OsString> =
237
- py.allow_threads(move || self.pty.read(blocking));
231
+ py.detach(move || self.pty.read(blocking));
238
232
 
239
233
  match result {
240
234
  Ok(bytes) => Ok(bytes),
@@ -268,7 +262,7 @@ impl PyPTY {
268
262
  // let _guard = borrow_lock.lock_py_attached(py).unwrap();
269
263
  //let utf16_str: Vec<u16> = to_write.encode_utf16().collect();
270
264
  let result: Result<u32, OsString> =
271
- py.allow_threads(move || {
265
+ py.detach(move || {
272
266
  self.pty.write(to_write)
273
267
  });
274
268
  match result {
@@ -293,7 +287,7 @@ impl PyPTY {
293
287
  /// If there was an error whilst trying to determine the status of the process.
294
288
  ///
295
289
  fn isalive(&self) -> PyResult<bool> {
296
- // let result: Result<bool, OsString> = py.allow_threads(move || self.pty.is_alive());
290
+ // let result: Result<bool, OsString> = py.detach(move || self.pty.is_alive());
297
291
  match self.pty.is_alive() {
298
292
  Ok(alive) => Ok(alive),
299
293
  Err(error) => {
@@ -318,7 +312,7 @@ impl PyPTY {
318
312
  ///
319
313
  fn get_exitstatus(&self, py: Python) -> PyResult<Option<u32>> {
320
314
  let result: Result<Option<u32>, OsString> =
321
- py.allow_threads(|| self.pty.get_exitstatus());
315
+ py.detach(|| self.pty.get_exitstatus());
322
316
  match result {
323
317
  Ok(status) => Ok(status),
324
318
  Err(error) => {
@@ -341,7 +335,7 @@ impl PyPTY {
341
335
  /// If there was an error whilst trying to determine the EOF status of the process.
342
336
  ///
343
337
  fn iseof(&self, py: Python) -> PyResult<bool> {
344
- let result: Result<bool, OsString> = py.allow_threads(|| self.pty.is_eof());
338
+ let result: Result<bool, OsString> = py.detach(|| self.pty.is_eof());
345
339
  match result {
346
340
  Ok(eof) => Ok(eof),
347
341
  Err(error) => {
@@ -372,7 +366,7 @@ impl PyPTY {
372
366
 
373
367
  /// Cancel all pending I/O.
374
368
  fn cancel_io(&self, py: Python) -> PyResult<bool> {
375
- let result: Result<bool, OsString> = py.allow_threads(|| self.pty.cancel_io());
369
+ let result: Result<bool, OsString> = py.detach(|| self.pty.cancel_io());
376
370
  match result {
377
371
  Ok(cancel) => Ok(cancel),
378
372
  Err(error) => {
@@ -50,5 +50,5 @@ class AgentConfig:
50
50
 
51
51
  # Do output color escape sequences. These escapes are output by default,
52
52
  # but are suppressed with WINPTY_FLAG_PLAIN_OUTPUT.
53
- # Use this flag to reenable them.
53
+ # Use this flag to re-enable them.
54
54
  WINPTY_FLAG_COLOR_ESCAPES = 0x4
@@ -97,7 +97,7 @@ class PtyProcess(object):
97
97
  proc = PTY(dimensions[1], dimensions[0],
98
98
  backend=backend)
99
99
 
100
- # Create the environemnt string.
100
+ # Create the environment string.
101
101
  envStrs = []
102
102
  for (key, value) in env.items():
103
103
  envStrs.append('%s=%s' % (key, value))
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes