pyinputcapture 0.2.0__tar.gz → 0.4.0__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.
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/.github/workflows/ci.yml +17 -5
- pyinputcapture-0.4.0/.github/workflows/release.yml +104 -0
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/.gitignore +4 -0
- pyinputcapture-0.4.0/.release-please-manifest.json +3 -0
- pyinputcapture-0.4.0/CHANGELOG.md +39 -0
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/Cargo.lock +189 -407
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/Cargo.toml +5 -3
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/Makefile +3 -1
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/PKG-INFO +5 -1
- pyinputcapture-0.4.0/README.md +203 -0
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/pyproject.toml +11 -1
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/python/pyinputcapture/__init__.py +18 -2
- pyinputcapture-0.4.0/python/pyinputcapture/_async.py +108 -0
- pyinputcapture-0.4.0/python/pyinputcapture/pyinputcapture.pyi +156 -0
- pyinputcapture-0.4.0/release-please-config.json +16 -0
- pyinputcapture-0.4.0/src/lib.rs +1596 -0
- pyinputcapture-0.4.0/src/remote_desktop.rs +372 -0
- pyinputcapture-0.4.0/tests/test_input_capture.py +346 -0
- pyinputcapture-0.2.0/.github/workflows/release.yml +0 -56
- pyinputcapture-0.2.0/CHANGELOG.md +0 -20
- pyinputcapture-0.2.0/README.md +0 -53
- pyinputcapture-0.2.0/python/pyinputcapture/_async.py +0 -52
- pyinputcapture-0.2.0/python/pyinputcapture/pyinputcapture.pyi +0 -59
- pyinputcapture-0.2.0/src/lib.rs +0 -624
- pyinputcapture-0.2.0/tests/test_input_capture.py +0 -111
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/LICENSE +0 -0
- {pyinputcapture-0.2.0 → pyinputcapture-0.4.0}/python/pyinputcapture/py.typed +0 -0
|
@@ -10,18 +10,26 @@ on:
|
|
|
10
10
|
release:
|
|
11
11
|
type: boolean
|
|
12
12
|
default: false
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
checkout-ref:
|
|
14
|
+
type: string
|
|
15
|
+
default: ""
|
|
16
16
|
|
|
17
17
|
permissions:
|
|
18
18
|
contents: read
|
|
19
19
|
|
|
20
20
|
jobs:
|
|
21
21
|
test:
|
|
22
|
+
if: >-
|
|
23
|
+
github.event_name == 'workflow_call' ||
|
|
24
|
+
!startsWith(github.event.head_commit.message, 'chore') &&
|
|
25
|
+
!startsWith(github.event.head_commit.message, 'docs') &&
|
|
26
|
+
!startsWith(github.event.head_commit.message, 'ci')
|
|
22
27
|
runs-on: ubuntu-latest
|
|
28
|
+
timeout-minutes: 20
|
|
23
29
|
steps:
|
|
24
30
|
- uses: actions/checkout@v4
|
|
31
|
+
with:
|
|
32
|
+
ref: ${{ inputs.checkout-ref }}
|
|
25
33
|
- uses: dtolnay/rust-toolchain@stable
|
|
26
34
|
- uses: actions/setup-python@v5
|
|
27
35
|
with:
|
|
@@ -34,13 +42,15 @@ jobs:
|
|
|
34
42
|
run: |
|
|
35
43
|
python -m venv .venv
|
|
36
44
|
source .venv/bin/activate
|
|
37
|
-
pip install
|
|
45
|
+
pip install -e ".[dev]"
|
|
38
46
|
maturin develop
|
|
39
47
|
|
|
40
48
|
- name: Python tests
|
|
41
49
|
run: |
|
|
42
50
|
source .venv/bin/activate
|
|
43
|
-
|
|
51
|
+
# thread method: a hang inside the Rust extension runs with the GIL
|
|
52
|
+
# released, so the signal-based timeout would never fire.
|
|
53
|
+
python -m pytest tests/ -v --timeout=60 --timeout-method=thread
|
|
44
54
|
|
|
45
55
|
build:
|
|
46
56
|
needs: test
|
|
@@ -58,6 +68,8 @@ jobs:
|
|
|
58
68
|
python-version: ["3.11", "3.12", "3.13"]
|
|
59
69
|
steps:
|
|
60
70
|
- uses: actions/checkout@v4
|
|
71
|
+
with:
|
|
72
|
+
ref: ${{ inputs.checkout-ref }}
|
|
61
73
|
- uses: actions/setup-python@v5
|
|
62
74
|
with:
|
|
63
75
|
python-version: ${{ matrix.python-version }}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
tag:
|
|
9
|
+
description: Tag to build and publish
|
|
10
|
+
required: true
|
|
11
|
+
default: v0.3.0
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
pull-requests: write
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
release-please:
|
|
19
|
+
if: github.event_name == 'push'
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
outputs:
|
|
22
|
+
releases_created: ${{ steps.release.outputs.releases_created }}
|
|
23
|
+
tag_name: ${{ steps.release.outputs.tag_name }}
|
|
24
|
+
steps:
|
|
25
|
+
- uses: googleapis/release-please-action@v4
|
|
26
|
+
id: release
|
|
27
|
+
with:
|
|
28
|
+
# Cargo.toml and python/pyinputcapture/__init__.py are kept in sync
|
|
29
|
+
# via "extra-files" in release-please-config.json.
|
|
30
|
+
config-file: release-please-config.json
|
|
31
|
+
manifest-file: .release-please-manifest.json
|
|
32
|
+
|
|
33
|
+
build:
|
|
34
|
+
needs: release-please
|
|
35
|
+
if: needs.release-please.outputs.releases_created == 'true'
|
|
36
|
+
uses: ./.github/workflows/ci.yml
|
|
37
|
+
with:
|
|
38
|
+
release: true
|
|
39
|
+
checkout-ref: ${{ needs.release-please.outputs.tag_name }}
|
|
40
|
+
|
|
41
|
+
publish:
|
|
42
|
+
needs: [release-please, build]
|
|
43
|
+
if: needs.release-please.outputs.releases_created == 'true'
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v4
|
|
47
|
+
with:
|
|
48
|
+
ref: ${{ needs.release-please.outputs.tag_name }}
|
|
49
|
+
|
|
50
|
+
- uses: actions/download-artifact@v4
|
|
51
|
+
with:
|
|
52
|
+
pattern: wheels-*
|
|
53
|
+
merge-multiple: true
|
|
54
|
+
path: dist
|
|
55
|
+
|
|
56
|
+
- name: Build sdist
|
|
57
|
+
uses: PyO3/maturin-action@v1
|
|
58
|
+
with:
|
|
59
|
+
command: sdist
|
|
60
|
+
args: --out dist
|
|
61
|
+
|
|
62
|
+
- name: Publish to PyPI
|
|
63
|
+
uses: PyO3/maturin-action@v1
|
|
64
|
+
env:
|
|
65
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
66
|
+
with:
|
|
67
|
+
command: upload
|
|
68
|
+
args: --non-interactive --skip-existing dist/*
|
|
69
|
+
|
|
70
|
+
manual-build:
|
|
71
|
+
if: github.event_name == 'workflow_dispatch'
|
|
72
|
+
uses: ./.github/workflows/ci.yml
|
|
73
|
+
with:
|
|
74
|
+
release: true
|
|
75
|
+
checkout-ref: ${{ inputs.tag }}
|
|
76
|
+
|
|
77
|
+
manual-publish:
|
|
78
|
+
needs: manual-build
|
|
79
|
+
if: github.event_name == 'workflow_dispatch'
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
steps:
|
|
82
|
+
- uses: actions/checkout@v4
|
|
83
|
+
with:
|
|
84
|
+
ref: ${{ inputs.tag }}
|
|
85
|
+
|
|
86
|
+
- uses: actions/download-artifact@v4
|
|
87
|
+
with:
|
|
88
|
+
pattern: wheels-*
|
|
89
|
+
merge-multiple: true
|
|
90
|
+
path: dist
|
|
91
|
+
|
|
92
|
+
- name: Build sdist
|
|
93
|
+
uses: PyO3/maturin-action@v1
|
|
94
|
+
with:
|
|
95
|
+
command: sdist
|
|
96
|
+
args: --out dist
|
|
97
|
+
|
|
98
|
+
- name: Publish to PyPI
|
|
99
|
+
uses: PyO3/maturin-action@v1
|
|
100
|
+
env:
|
|
101
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
102
|
+
with:
|
|
103
|
+
command: upload
|
|
104
|
+
args: --non-interactive --skip-existing dist/*
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.4.0](https://github.com/fizzi01/pyinputcapture/compare/v0.3.0...v0.4.0) (2026-11-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add RemoteDesktopPortal with persistent grants ([#7](https://github.com/fizzi01/pyinputcapture/issues/7)) ([0ed1dd7](https://github.com/fizzi01/pyinputcapture/commit/0ed1dd738aab92cf3e7dd54b65c7be2565e906fc))
|
|
9
|
+
|
|
10
|
+
## [0.3.0](https://github.com/fizzi01/pyinputcapture/compare/v0.2.0...v0.3.0) (2026-08-01)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add set_barriers method ([#4](https://github.com/fizzi01/pyinputcapture/issues/4)) ([68ed3c0](https://github.com/fizzi01/pyinputcapture/commit/68ed3c055803f092768fe9ecfe52dcec8b8172f2))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* keep InputCapturePortal usable after recreation ([#6](https://github.com/fizzi01/pyinputcapture/issues/6)) ([fb4c393](https://github.com/fizzi01/pyinputcapture/commit/fb4c393a389e8a88edf943ed61d4f690cc9e001e))
|
|
21
|
+
|
|
22
|
+
## [0.2.0](https://github.com/fizzi01/pyinputcapture/compare/v0.1.1...v0.2.0) (2026-03-10)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* improve performance ([#2](https://github.com/fizzi01/pyinputcapture/issues/2)) ([f9015a2](https://github.com/fizzi01/pyinputcapture/commit/f9015a2334ca63134c3d1428a97d2fe44e34eb6e))
|
|
28
|
+
|
|
29
|
+
## 0.1.1 (2026-03-09)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* add code base ([654ff6a](https://github.com/fizzi01/pyinputcapture/commit/654ff6a2d8e5958e9102df1e1905153c2f8f33e3))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Continuous Integration
|
|
38
|
+
|
|
39
|
+
* update manylinux to auto ([24f77de](https://github.com/fizzi01/pyinputcapture/commit/24f77def5061cc068c1b4bc8591dd21db6052196))
|