pyfadetop 0.1.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.
- pyfadetop-0.1.0/.github/local.gif +0 -0
- pyfadetop-0.1.0/.github/workflows/build.yml +143 -0
- pyfadetop-0.1.0/.gitignore +1 -0
- pyfadetop-0.1.0/Cargo.lock +2792 -0
- pyfadetop-0.1.0/Cargo.toml +22 -0
- pyfadetop-0.1.0/LICENSE +21 -0
- pyfadetop-0.1.0/PKG-INFO +50 -0
- pyfadetop-0.1.0/README.md +43 -0
- pyfadetop-0.1.0/pyproject.toml +9 -0
- pyfadetop-0.1.0/src/app.rs +148 -0
- pyfadetop-0.1.0/src/errors.rs +18 -0
- pyfadetop-0.1.0/src/lib.rs +6 -0
- pyfadetop-0.1.0/src/main.rs +85 -0
- pyfadetop-0.1.0/src/priority.rs +464 -0
- pyfadetop-0.1.0/src/ser.rs +25 -0
- pyfadetop-0.1.0/src/state.rs +48 -0
- pyfadetop-0.1.0/src/tabs/local_variables.rs +122 -0
- pyfadetop-0.1.0/src/tabs/mod.rs +4 -0
- pyfadetop-0.1.0/src/tabs/terminal_event.rs +63 -0
- pyfadetop-0.1.0/src/tabs/thread_selection.rs +151 -0
- pyfadetop-0.1.0/src/tabs/timeline.rs +281 -0
|
Binary file
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.8.3
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github -o .github/workflows/build.yml
|
|
5
|
+
#
|
|
6
|
+
name: CI
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
- master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
fail-fast: false
|
|
26
|
+
matrix:
|
|
27
|
+
platform:
|
|
28
|
+
- runner: ubuntu-22.04
|
|
29
|
+
target: i686-unknown-linux-musl
|
|
30
|
+
- runner: ubuntu-22.04
|
|
31
|
+
target: armv7-unknown-linux-musleabihf
|
|
32
|
+
- runner: ubuntu-22.04
|
|
33
|
+
target: aarch64-unknown-linux-musl
|
|
34
|
+
- runner: ubuntu-22.04
|
|
35
|
+
target: x86_64-unknown-linux-musl
|
|
36
|
+
container:
|
|
37
|
+
image: ghcr.io/benfred/rust-musl-cross:${{ matrix.platform.target }}
|
|
38
|
+
env:
|
|
39
|
+
RUSTUP_HOME: /root/.rustup
|
|
40
|
+
CARGO_HOME: /root/.cargo
|
|
41
|
+
steps:
|
|
42
|
+
- uses: actions/checkout@v4
|
|
43
|
+
- name: Build Wheel
|
|
44
|
+
run: |
|
|
45
|
+
rustup toolchain uninstall stable && rustup toolchain install stable
|
|
46
|
+
rustup target add ${{ matrix.platform.target }}
|
|
47
|
+
python3 -m pip install --upgrade maturin
|
|
48
|
+
maturin build --release -o dist --target ${{ matrix.platform.target }}
|
|
49
|
+
- name: Upload wheels
|
|
50
|
+
uses: actions/upload-artifact@v4
|
|
51
|
+
with:
|
|
52
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
53
|
+
path: dist
|
|
54
|
+
|
|
55
|
+
windows:
|
|
56
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
57
|
+
strategy:
|
|
58
|
+
matrix:
|
|
59
|
+
platform:
|
|
60
|
+
- runner: windows-latest
|
|
61
|
+
target: x64
|
|
62
|
+
- runner: windows-latest
|
|
63
|
+
target: x86
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
- name: Build wheels
|
|
67
|
+
uses: PyO3/maturin-action@v1
|
|
68
|
+
with:
|
|
69
|
+
args: --release --out dist
|
|
70
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
71
|
+
- name: Upload wheels
|
|
72
|
+
uses: actions/upload-artifact@v4
|
|
73
|
+
with:
|
|
74
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
75
|
+
path: dist
|
|
76
|
+
|
|
77
|
+
macos:
|
|
78
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
79
|
+
strategy:
|
|
80
|
+
matrix:
|
|
81
|
+
platform:
|
|
82
|
+
- runner: macos-13
|
|
83
|
+
target: x86_64
|
|
84
|
+
- runner: macos-14
|
|
85
|
+
target: aarch64
|
|
86
|
+
steps:
|
|
87
|
+
- uses: actions/checkout@v4
|
|
88
|
+
- name: Build wheels
|
|
89
|
+
uses: PyO3/maturin-action@v1
|
|
90
|
+
with:
|
|
91
|
+
target: ${{ matrix.platform.target }}
|
|
92
|
+
args: --release --out dist
|
|
93
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
94
|
+
- name: Upload wheels
|
|
95
|
+
uses: actions/upload-artifact@v4
|
|
96
|
+
with:
|
|
97
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
98
|
+
path: dist
|
|
99
|
+
|
|
100
|
+
sdist:
|
|
101
|
+
runs-on: ubuntu-latest
|
|
102
|
+
steps:
|
|
103
|
+
- uses: actions/checkout@v4
|
|
104
|
+
- name: Build sdist
|
|
105
|
+
uses: PyO3/maturin-action@v1
|
|
106
|
+
with:
|
|
107
|
+
command: sdist
|
|
108
|
+
args: --out dist
|
|
109
|
+
before-script-linux: sudo apt-get update && sudo apt-get install -y libunwind-dev libunwind8
|
|
110
|
+
- name: Run tests
|
|
111
|
+
run: cargo test --verbose
|
|
112
|
+
- name: Upload sdist
|
|
113
|
+
uses: actions/upload-artifact@v4
|
|
114
|
+
with:
|
|
115
|
+
name: wheels-sdist
|
|
116
|
+
path: dist
|
|
117
|
+
|
|
118
|
+
release:
|
|
119
|
+
name: Release
|
|
120
|
+
runs-on: ubuntu-latest
|
|
121
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
122
|
+
needs: [linux, windows, macos, sdist]
|
|
123
|
+
permissions:
|
|
124
|
+
# Use to sign the release artifacts
|
|
125
|
+
id-token: write
|
|
126
|
+
# Used to upload release artifacts
|
|
127
|
+
contents: write
|
|
128
|
+
# Used to generate artifact attestation
|
|
129
|
+
attestations: write
|
|
130
|
+
steps:
|
|
131
|
+
- uses: actions/download-artifact@v4
|
|
132
|
+
- name: Generate artifact attestation
|
|
133
|
+
uses: actions/attest-build-provenance@v2
|
|
134
|
+
with:
|
|
135
|
+
subject-path: 'wheels-*/*'
|
|
136
|
+
- name: Publish to PyPI
|
|
137
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
138
|
+
uses: PyO3/maturin-action@v1
|
|
139
|
+
env:
|
|
140
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
141
|
+
with:
|
|
142
|
+
command: upload
|
|
143
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/target
|