bencode-rs 0.0.9__tar.gz → 0.2.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.
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.github/renovate.json +2 -2
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.github/workflows/_build_wheels.yaml +76 -16
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.github/workflows/autofix.yaml +4 -4
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.github/workflows/ci.yaml +89 -35
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.github/workflows/release.yaml +4 -2
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.pre-commit-config.yaml +10 -2
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/Cargo.lock +36 -70
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/Cargo.toml +4 -3
- bencode_rs-0.2.0/PKG-INFO +103 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/leak.py +3 -4
- bencode_rs-0.2.0/py/bencode_rs/__init__.py +15 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/py/bencode_rs/__init__.pyi +2 -1
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/pyproject.toml +22 -18
- bencode_rs-0.2.0/readme.md +85 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/rust-toolchain.toml +1 -1
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/src/decode.rs +69 -31
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/src/encode.rs +124 -53
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/src/lib.rs +4 -2
- bencode_rs-0.2.0/taskfile.dist.yaml +12 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/tests/test_1_encode.py +32 -6
- bencode_rs-0.2.0/tests/test_2_decode.py +229 -0
- bencode_rs-0.2.0/tests/test_3_freethreaded.py +55 -0
- bencode_rs-0.2.0/uv.lock +858 -0
- bencode_rs-0.0.9/PKG-INFO +0 -49
- bencode_rs-0.0.9/py/bencode_rs/__init__.py +0 -8
- bencode_rs-0.0.9/readme.md +0 -26
- bencode_rs-0.0.9/tests/test_2_decode.py +0 -94
- bencode_rs-0.0.9/uv.lock +0 -895
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.coveragerc +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.gitattributes +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.github/mergify.yml +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/.gitignore +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/LICENSE +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/dprint.json +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/py/bencode_rs/py.typed +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/rustfmt.toml +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/tests/bench.py +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/tests/fixtures/56507.torrent.bin +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/tests/fixtures/multiple-files.torrent.bin +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.2.0}/tests/fixtures/ubuntu-22.04.2-desktop-amd64.iso.torrent.bin +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
3
|
"extends": [
|
|
4
4
|
"github>trim21/renovate-config",
|
|
5
|
-
"github>trim21/renovate-config:
|
|
6
|
-
"github>trim21/renovate-config:
|
|
5
|
+
"github>trim21/renovate-config:rust",
|
|
6
|
+
"github>trim21/renovate-config:python"
|
|
7
7
|
],
|
|
8
8
|
"labels": [
|
|
9
9
|
"ci:auto-merge",
|
|
@@ -5,13 +5,13 @@ on:
|
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
sdist:
|
|
8
|
-
runs-on: ubuntu-
|
|
8
|
+
runs-on: ubuntu-26.04
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
10
|
+
- uses: actions/checkout@v7
|
|
11
11
|
- name: Set up Python ${{ matrix.python-version }}
|
|
12
|
-
uses: actions/setup-python@
|
|
12
|
+
uses: actions/setup-python@v7
|
|
13
13
|
with:
|
|
14
|
-
python-version: '3.
|
|
14
|
+
python-version: '3.15.2'
|
|
15
15
|
- name: Build sdist
|
|
16
16
|
uses: PyO3/maturin-action@v1
|
|
17
17
|
with:
|
|
@@ -62,29 +62,89 @@ jobs:
|
|
|
62
62
|
manylinux: musllinux_1_2
|
|
63
63
|
|
|
64
64
|
steps:
|
|
65
|
-
- uses: actions/checkout@
|
|
65
|
+
- uses: actions/checkout@v7
|
|
66
66
|
|
|
67
|
-
- uses:
|
|
67
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
68
68
|
if: ${{ runner.os != 'Linux' }}
|
|
69
69
|
|
|
70
|
-
- uses: actions/setup-python@
|
|
70
|
+
- uses: actions/setup-python@v7
|
|
71
71
|
if: ${{ runner.os != 'Linux' }}
|
|
72
72
|
with:
|
|
73
|
-
python-version: '3.
|
|
73
|
+
python-version: '3.11'
|
|
74
74
|
architecture: ${{ matrix.platform.py }}
|
|
75
75
|
|
|
76
|
-
-
|
|
76
|
+
- name: Build wheels
|
|
77
|
+
uses: PyO3/maturin-action@v1
|
|
78
|
+
with:
|
|
79
|
+
target: ${{ matrix.platform.target }}
|
|
80
|
+
args: --release --out dist --interpreter '3.11'
|
|
81
|
+
manylinux: ${{ matrix.platform.manylinux }}
|
|
82
|
+
|
|
83
|
+
- run: ls -ahl dist
|
|
84
|
+
shell: bash
|
|
85
|
+
|
|
86
|
+
- shell: bash
|
|
87
|
+
run: |
|
|
88
|
+
python3 -c "
|
|
89
|
+
import hashlib, glob
|
|
90
|
+
for f in sorted(glob.glob('dist/*.whl')):
|
|
91
|
+
h = hashlib.sha256(open(f, 'rb').read()).hexdigest()
|
|
92
|
+
print(f'{h} {f}')
|
|
93
|
+
"
|
|
94
|
+
|
|
95
|
+
- name: Upload wheels
|
|
96
|
+
uses: actions/upload-artifact@v7
|
|
97
|
+
with:
|
|
98
|
+
name: wheels-${{ runner.os }}-${{ matrix.platform.target }}
|
|
99
|
+
path: dist
|
|
100
|
+
|
|
101
|
+
wheel-freethreaded:
|
|
102
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
103
|
+
strategy:
|
|
104
|
+
fail-fast: false
|
|
105
|
+
matrix:
|
|
106
|
+
platform:
|
|
107
|
+
- runner: macos-15
|
|
108
|
+
target: aarch64
|
|
109
|
+
py: arm64
|
|
110
|
+
manylinux: auto
|
|
111
|
+
|
|
112
|
+
- runner: windows-latest
|
|
113
|
+
target: x64
|
|
114
|
+
py: x64
|
|
115
|
+
manylinux: auto
|
|
116
|
+
|
|
117
|
+
- runner: ubuntu-24.04
|
|
118
|
+
target: x86_64
|
|
119
|
+
manylinux: auto
|
|
120
|
+
- runner: ubuntu-24.04-arm
|
|
121
|
+
target: aarch64
|
|
122
|
+
manylinux: auto
|
|
123
|
+
- runner: ubuntu-24.04
|
|
124
|
+
target: x86_64-unknown-linux-musl
|
|
125
|
+
manylinux: musllinux_1_2
|
|
126
|
+
- runner: ubuntu-24.04-arm
|
|
127
|
+
target: aarch64-unknown-linux-musl
|
|
128
|
+
manylinux: musllinux_1_2
|
|
129
|
+
|
|
130
|
+
steps:
|
|
131
|
+
- uses: actions/checkout@v7
|
|
132
|
+
|
|
133
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
134
|
+
if: ${{ runner.os != 'Linux' }}
|
|
135
|
+
|
|
136
|
+
# the manylinux images already ship the free-threaded interpreter
|
|
137
|
+
- uses: actions/setup-python@v7
|
|
77
138
|
if: ${{ runner.os != 'Linux' }}
|
|
78
139
|
with:
|
|
79
|
-
python-version: '3.
|
|
140
|
+
python-version: '3.14t'
|
|
80
141
|
architecture: ${{ matrix.platform.py }}
|
|
81
142
|
|
|
82
|
-
- name: Build wheels
|
|
143
|
+
- name: Build wheels
|
|
83
144
|
uses: PyO3/maturin-action@v1
|
|
84
145
|
with:
|
|
85
146
|
target: ${{ matrix.platform.target }}
|
|
86
|
-
args: --release --out dist --interpreter '3.
|
|
87
|
-
sccache: 'true'
|
|
147
|
+
args: --release --out dist --interpreter '3.14t'
|
|
88
148
|
manylinux: ${{ matrix.platform.manylinux }}
|
|
89
149
|
|
|
90
150
|
- run: ls -ahl dist
|
|
@@ -93,12 +153,12 @@ jobs:
|
|
|
93
153
|
- name: Upload wheels
|
|
94
154
|
uses: actions/upload-artifact@v7
|
|
95
155
|
with:
|
|
96
|
-
name: wheels-${{ runner.os }}-${{ matrix.platform.target }}
|
|
156
|
+
name: wheels-freethreaded-${{ runner.os }}-${{ matrix.platform.target }}
|
|
97
157
|
path: dist
|
|
98
158
|
|
|
99
159
|
merge-wheel-artifact:
|
|
100
|
-
runs-on: ubuntu-
|
|
101
|
-
needs: ['sdist', 'wheel']
|
|
160
|
+
runs-on: ubuntu-26.04
|
|
161
|
+
needs: ['sdist', 'wheel', 'wheel-freethreaded']
|
|
102
162
|
steps:
|
|
103
163
|
- name: Merge Artifacts
|
|
104
164
|
uses: actions/upload-artifact/merge@v7
|
|
@@ -13,14 +13,14 @@ jobs:
|
|
|
13
13
|
runs-on: ubuntu-latest
|
|
14
14
|
steps:
|
|
15
15
|
- name: Checkout code
|
|
16
|
-
uses: actions/checkout@
|
|
16
|
+
uses: actions/checkout@v7
|
|
17
17
|
|
|
18
|
-
- uses:
|
|
19
|
-
with:
|
|
20
|
-
components: rustfmt,clippy
|
|
18
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
21
19
|
|
|
22
20
|
- run: cargo fmt || true
|
|
23
21
|
- run: cargo clippy --fix --allow-dirty || true
|
|
22
|
+
# incomplete hook fixes are committed by autofix-ci/action below, the strict run lives in ci.yaml
|
|
24
23
|
- uses: trim21/actions/prek@master
|
|
24
|
+
continue-on-error: true
|
|
25
25
|
|
|
26
26
|
- uses: autofix-ci/action@v1
|
|
@@ -13,55 +13,75 @@ on:
|
|
|
13
13
|
|
|
14
14
|
jobs:
|
|
15
15
|
build:
|
|
16
|
+
needs: ['cargo-fmt', 'lint']
|
|
16
17
|
concurrency:
|
|
17
18
|
group: '${{ github.workflow }}-${{ github.ref }}'
|
|
18
19
|
cancel-in-progress: true
|
|
19
20
|
uses: ./.github/workflows/_build_wheels.yaml
|
|
20
21
|
|
|
21
22
|
cargo-fmt:
|
|
22
|
-
runs-on: ubuntu-
|
|
23
|
+
runs-on: ubuntu-26.04
|
|
23
24
|
steps:
|
|
24
|
-
- uses: actions/checkout@
|
|
25
|
-
- uses:
|
|
26
|
-
with:
|
|
27
|
-
components: rustfmt,clippy
|
|
25
|
+
- uses: actions/checkout@v7
|
|
26
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
28
27
|
- run: cargo fmt --check --all
|
|
29
|
-
|
|
28
|
+
|
|
29
|
+
lint:
|
|
30
|
+
runs-on: ubuntu-26.04
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v7
|
|
33
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
34
|
+
- run: cargo clippy --all-targets -- -D warnings
|
|
35
|
+
|
|
36
|
+
prek:
|
|
37
|
+
runs-on: ubuntu-26.04
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v7
|
|
40
|
+
- uses: trim21/actions/prek@master
|
|
30
41
|
|
|
31
42
|
all-ci-jobs:
|
|
32
|
-
needs: [
|
|
43
|
+
needs: [
|
|
44
|
+
'test',
|
|
45
|
+
'test-freethreaded',
|
|
46
|
+
'bench-cp',
|
|
47
|
+
'coverage',
|
|
48
|
+
'audit',
|
|
49
|
+
'lint',
|
|
50
|
+
'prek',
|
|
51
|
+
]
|
|
33
52
|
runs-on: ubuntu-slim
|
|
34
53
|
steps:
|
|
35
54
|
- run: echo 1
|
|
36
55
|
|
|
37
56
|
test:
|
|
38
57
|
strategy:
|
|
58
|
+
fail-fast: false
|
|
39
59
|
matrix:
|
|
40
60
|
os: ['ubuntu-24.04', 'macos-15', 'windows-latest']
|
|
41
61
|
python-version:
|
|
42
|
-
- '3.10'
|
|
43
62
|
- '3.11'
|
|
44
63
|
- '3.12'
|
|
45
64
|
- '3.13'
|
|
46
65
|
- '3.14'
|
|
66
|
+
- '3.15'
|
|
47
67
|
|
|
48
68
|
runs-on: '${{ matrix.os }}'
|
|
49
69
|
|
|
50
70
|
needs: [build]
|
|
51
71
|
|
|
52
72
|
steps:
|
|
53
|
-
- uses: actions/checkout@
|
|
73
|
+
- uses: actions/checkout@v7
|
|
54
74
|
- uses: actions/download-artifact@v8
|
|
55
75
|
with:
|
|
56
76
|
name: wheel
|
|
57
77
|
path: dist
|
|
58
78
|
- name: Set up Python ${{ matrix.python-version }}
|
|
59
|
-
uses: actions/setup-python@
|
|
79
|
+
uses: actions/setup-python@v7
|
|
60
80
|
with:
|
|
61
81
|
python-version: ${{ matrix.python-version }}
|
|
62
82
|
|
|
63
83
|
- name: Set up uv
|
|
64
|
-
uses: astral-sh/setup-uv@
|
|
84
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
65
85
|
with:
|
|
66
86
|
enable-cache: true
|
|
67
87
|
activate-environment: true
|
|
@@ -70,31 +90,69 @@ jobs:
|
|
|
70
90
|
run: |
|
|
71
91
|
uv sync --locked --group dev
|
|
72
92
|
|
|
73
|
-
- run:
|
|
93
|
+
- run: |
|
|
94
|
+
python3 -c "
|
|
95
|
+
import hashlib, glob
|
|
96
|
+
for f in sorted(glob.glob('dist/*.whl')):
|
|
97
|
+
h = hashlib.sha256(open(f, 'rb').read()).hexdigest()
|
|
98
|
+
print(f'{h} {f}')
|
|
99
|
+
"
|
|
100
|
+
|
|
101
|
+
- run: uv pip install --no-cache --reinstall bencode-rs --no-index --find-links ./dist/ -vv
|
|
74
102
|
|
|
75
103
|
- run: pytest -sv
|
|
76
104
|
env:
|
|
77
105
|
RUST_BACKTRACE: 'full'
|
|
78
106
|
|
|
107
|
+
test-freethreaded:
|
|
108
|
+
strategy:
|
|
109
|
+
fail-fast: false
|
|
110
|
+
matrix:
|
|
111
|
+
os: ['ubuntu-24.04', 'macos-15', 'windows-latest']
|
|
112
|
+
|
|
113
|
+
runs-on: '${{ matrix.os }}'
|
|
114
|
+
|
|
115
|
+
needs: [build]
|
|
116
|
+
|
|
117
|
+
steps:
|
|
118
|
+
- uses: actions/checkout@v7
|
|
119
|
+
- uses: actions/download-artifact@v8
|
|
120
|
+
with:
|
|
121
|
+
name: wheel
|
|
122
|
+
path: dist
|
|
123
|
+
|
|
124
|
+
- name: Set up Python 3.14t
|
|
125
|
+
uses: actions/setup-python@v7
|
|
126
|
+
with:
|
|
127
|
+
python-version: '3.14t'
|
|
128
|
+
|
|
129
|
+
# the dev group pulls in packages without free-threaded wheels, the suite itself needs pytest only
|
|
130
|
+
- run: python -m pip install pytest
|
|
131
|
+
- run: python -m pip install --no-index --find-links ./dist/ --force-reinstall bencode-rs
|
|
132
|
+
|
|
133
|
+
- run: python -m pytest -sv tests --ignore=tests/bench.py
|
|
134
|
+
env:
|
|
135
|
+
RUST_BACKTRACE: 'full'
|
|
136
|
+
|
|
79
137
|
bench-cp:
|
|
80
138
|
strategy:
|
|
81
139
|
matrix:
|
|
82
140
|
python-version:
|
|
83
141
|
- '3.12'
|
|
84
142
|
|
|
85
|
-
runs-on: 'ubuntu-
|
|
143
|
+
runs-on: 'ubuntu-26.04'
|
|
86
144
|
|
|
87
145
|
steps:
|
|
88
|
-
- uses: actions/checkout@
|
|
89
|
-
- uses:
|
|
146
|
+
- uses: actions/checkout@v7
|
|
147
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
90
148
|
|
|
91
149
|
- name: Set up Python ${{ matrix.python-version }}
|
|
92
|
-
uses: actions/setup-python@
|
|
150
|
+
uses: actions/setup-python@v7
|
|
93
151
|
with:
|
|
94
152
|
python-version: ${{ matrix.python-version }}
|
|
95
153
|
|
|
96
154
|
- name: Set up uv
|
|
97
|
-
uses: astral-sh/setup-uv@
|
|
155
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
98
156
|
with:
|
|
99
157
|
enable-cache: true
|
|
100
158
|
activate-environment: true
|
|
@@ -107,7 +165,7 @@ jobs:
|
|
|
107
165
|
- run: uv pip install bencode-rs --no-index --find-links ./dist/
|
|
108
166
|
|
|
109
167
|
- name: Run benchmarks
|
|
110
|
-
uses: CodSpeedHQ/action@
|
|
168
|
+
uses: CodSpeedHQ/action@v5
|
|
111
169
|
with:
|
|
112
170
|
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
113
171
|
mode: 'simulation'
|
|
@@ -116,17 +174,17 @@ jobs:
|
|
|
116
174
|
audit:
|
|
117
175
|
name: Audit
|
|
118
176
|
needs: [build]
|
|
119
|
-
runs-on: ubuntu-
|
|
177
|
+
runs-on: ubuntu-26.04
|
|
120
178
|
steps:
|
|
121
|
-
- uses: actions/checkout@
|
|
179
|
+
- uses: actions/checkout@v7
|
|
122
180
|
|
|
123
181
|
- name: Set up Python 3.14.2
|
|
124
|
-
uses: actions/setup-python@
|
|
182
|
+
uses: actions/setup-python@v7
|
|
125
183
|
with:
|
|
126
|
-
python-version: '3.
|
|
184
|
+
python-version: '3.15.2'
|
|
127
185
|
|
|
128
186
|
- name: Set up uv
|
|
129
|
-
uses: astral-sh/setup-uv@
|
|
187
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
130
188
|
with:
|
|
131
189
|
enable-cache: true
|
|
132
190
|
activate-environment: true
|
|
@@ -146,27 +204,27 @@ jobs:
|
|
|
146
204
|
strategy:
|
|
147
205
|
matrix:
|
|
148
206
|
python-version:
|
|
149
|
-
- '3.10'
|
|
150
207
|
- '3.11'
|
|
151
208
|
- '3.12'
|
|
152
209
|
- '3.13'
|
|
153
210
|
- '3.14'
|
|
211
|
+
- '3.15'
|
|
154
212
|
|
|
155
|
-
runs-on: ubuntu-
|
|
213
|
+
runs-on: ubuntu-26.04
|
|
156
214
|
steps:
|
|
157
|
-
- uses: actions/checkout@
|
|
215
|
+
- uses: actions/checkout@v7
|
|
158
216
|
- name: Set up Python ${{ matrix.python-version }}
|
|
159
|
-
uses: actions/setup-python@
|
|
217
|
+
uses: actions/setup-python@v7
|
|
160
218
|
with:
|
|
161
219
|
python-version: '${{ matrix.python-version }}'
|
|
162
220
|
|
|
163
221
|
- name: Set up uv
|
|
164
|
-
uses: astral-sh/setup-uv@
|
|
222
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
165
223
|
with:
|
|
166
224
|
enable-cache: true
|
|
167
225
|
activate-environment: true
|
|
168
226
|
|
|
169
|
-
- uses:
|
|
227
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
170
228
|
with:
|
|
171
229
|
components: llvm-tools
|
|
172
230
|
|
|
@@ -183,15 +241,11 @@ jobs:
|
|
|
183
241
|
set -euxo pipefail
|
|
184
242
|
source <(cargo llvm-cov show-env --export-prefix)
|
|
185
243
|
export CARGO_TARGET_DIR=$CARGO_LLVM_COV_TARGET_DIR
|
|
186
|
-
|
|
187
|
-
maturin develop --uv --no-default-features
|
|
188
|
-
else
|
|
189
|
-
maturin develop --uv
|
|
190
|
-
fi
|
|
244
|
+
maturin develop --uv
|
|
191
245
|
pytest tests
|
|
192
246
|
cargo llvm-cov report --lcov --output-path coverage.lcov
|
|
193
247
|
|
|
194
|
-
- uses: codecov/codecov-action@
|
|
248
|
+
- uses: codecov/codecov-action@v7
|
|
195
249
|
with:
|
|
196
250
|
files: coverage.lcov
|
|
197
251
|
token: '${{ secrets.CODECOV_TOKEN }}'
|
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
upload_all:
|
|
13
13
|
name: Upload wheels to PyPI
|
|
14
14
|
needs: [build]
|
|
15
|
-
runs-on: ubuntu-
|
|
15
|
+
runs-on: ubuntu-slim
|
|
16
16
|
environment: pypi
|
|
17
17
|
permissions:
|
|
18
18
|
id-token: write
|
|
@@ -22,4 +22,6 @@ jobs:
|
|
|
22
22
|
name: wheel
|
|
23
23
|
path: dist
|
|
24
24
|
|
|
25
|
-
- uses:
|
|
25
|
+
- uses: astral-sh/setup-uv@v10.3.3
|
|
26
|
+
|
|
27
|
+
- run: uv publish
|
|
@@ -2,7 +2,7 @@ exclude: '^.*\.(bin|torrent)$'
|
|
|
2
2
|
|
|
3
3
|
repos:
|
|
4
4
|
- repo: https://github.com/trim21/dprint-pre-commit
|
|
5
|
-
rev: 'v0.
|
|
5
|
+
rev: 'v0.64.3.0'
|
|
6
6
|
hooks:
|
|
7
7
|
- id: dprint
|
|
8
8
|
|
|
@@ -20,7 +20,15 @@ repos:
|
|
|
20
20
|
args: [--fix=lf]
|
|
21
21
|
- id: end-of-file-fixer
|
|
22
22
|
|
|
23
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
24
|
+
# Ruff version.
|
|
25
|
+
rev: v0.17.5
|
|
26
|
+
hooks:
|
|
27
|
+
# Run the linter.
|
|
28
|
+
- id: ruff
|
|
29
|
+
args: [--fix]
|
|
30
|
+
|
|
23
31
|
- repo: https://github.com/psf/black
|
|
24
|
-
rev: 26.
|
|
32
|
+
rev: 26.10.1
|
|
25
33
|
hooks:
|
|
26
34
|
- id: black
|
|
@@ -4,9 +4,9 @@ version = 4
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "autocfg"
|
|
7
|
-
version = "1.5.
|
|
7
|
+
version = "1.5.1"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
10
|
|
|
11
11
|
[[package]]
|
|
12
12
|
name = "bencode"
|
|
@@ -20,25 +20,9 @@ dependencies = [
|
|
|
20
20
|
|
|
21
21
|
[[package]]
|
|
22
22
|
name = "bytes"
|
|
23
|
-
version = "1.
|
|
23
|
+
version = "1.12.1"
|
|
24
24
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
25
|
-
checksum = "
|
|
26
|
-
|
|
27
|
-
[[package]]
|
|
28
|
-
name = "cc"
|
|
29
|
-
version = "1.2.60"
|
|
30
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
31
|
-
checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"
|
|
32
|
-
dependencies = [
|
|
33
|
-
"find-msvc-tools",
|
|
34
|
-
"shlex",
|
|
35
|
-
]
|
|
36
|
-
|
|
37
|
-
[[package]]
|
|
38
|
-
name = "find-msvc-tools"
|
|
39
|
-
version = "0.1.9"
|
|
40
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
41
|
-
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
25
|
+
checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
|
|
42
26
|
|
|
43
27
|
[[package]]
|
|
44
28
|
name = "heck"
|
|
@@ -48,9 +32,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
|
48
32
|
|
|
49
33
|
[[package]]
|
|
50
34
|
name = "libc"
|
|
51
|
-
version = "0.2.
|
|
35
|
+
version = "0.2.191"
|
|
52
36
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
53
|
-
checksum = "
|
|
37
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
54
38
|
|
|
55
39
|
[[package]]
|
|
56
40
|
name = "num"
|
|
@@ -68,9 +52,9 @@ dependencies = [
|
|
|
68
52
|
|
|
69
53
|
[[package]]
|
|
70
54
|
name = "num-bigint"
|
|
71
|
-
version = "0.4.
|
|
55
|
+
version = "0.4.8"
|
|
72
56
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
-
checksum = "
|
|
57
|
+
checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
|
|
74
58
|
dependencies = [
|
|
75
59
|
"num-integer",
|
|
76
60
|
"num-traits",
|
|
@@ -87,20 +71,19 @@ dependencies = [
|
|
|
87
71
|
|
|
88
72
|
[[package]]
|
|
89
73
|
name = "num-integer"
|
|
90
|
-
version = "0.1.
|
|
74
|
+
version = "0.1.47"
|
|
91
75
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
-
checksum = "
|
|
76
|
+
checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
|
|
93
77
|
dependencies = [
|
|
94
78
|
"num-traits",
|
|
95
79
|
]
|
|
96
80
|
|
|
97
81
|
[[package]]
|
|
98
82
|
name = "num-iter"
|
|
99
|
-
version = "0.1.
|
|
83
|
+
version = "0.1.46"
|
|
100
84
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
101
|
-
checksum = "
|
|
85
|
+
checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
|
|
102
86
|
dependencies = [
|
|
103
|
-
"autocfg",
|
|
104
87
|
"num-integer",
|
|
105
88
|
"num-traits",
|
|
106
89
|
]
|
|
@@ -133,24 +116,24 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
|
133
116
|
|
|
134
117
|
[[package]]
|
|
135
118
|
name = "portable-atomic"
|
|
136
|
-
version = "1.
|
|
119
|
+
version = "1.15.0"
|
|
137
120
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
-
checksum = "
|
|
121
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
139
122
|
|
|
140
123
|
[[package]]
|
|
141
124
|
name = "proc-macro2"
|
|
142
|
-
version = "1.0.
|
|
125
|
+
version = "1.0.107"
|
|
143
126
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
-
checksum = "
|
|
127
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
145
128
|
dependencies = [
|
|
146
129
|
"unicode-ident",
|
|
147
130
|
]
|
|
148
131
|
|
|
149
132
|
[[package]]
|
|
150
133
|
name = "pyo3"
|
|
151
|
-
version = "0.
|
|
134
|
+
version = "0.30.1"
|
|
152
135
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
153
|
-
checksum = "
|
|
136
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
154
137
|
dependencies = [
|
|
155
138
|
"libc",
|
|
156
139
|
"once_cell",
|
|
@@ -162,19 +145,18 @@ dependencies = [
|
|
|
162
145
|
|
|
163
146
|
[[package]]
|
|
164
147
|
name = "pyo3-build-config"
|
|
165
|
-
version = "0.
|
|
148
|
+
version = "0.30.1"
|
|
166
149
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
-
checksum = "
|
|
150
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
168
151
|
dependencies = [
|
|
169
|
-
"python3-dll-a",
|
|
170
152
|
"target-lexicon",
|
|
171
153
|
]
|
|
172
154
|
|
|
173
155
|
[[package]]
|
|
174
156
|
name = "pyo3-ffi"
|
|
175
|
-
version = "0.
|
|
157
|
+
version = "0.30.1"
|
|
176
158
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
177
|
-
checksum = "
|
|
159
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
178
160
|
dependencies = [
|
|
179
161
|
"libc",
|
|
180
162
|
"pyo3-build-config",
|
|
@@ -182,9 +164,9 @@ dependencies = [
|
|
|
182
164
|
|
|
183
165
|
[[package]]
|
|
184
166
|
name = "pyo3-macros"
|
|
185
|
-
version = "0.
|
|
167
|
+
version = "0.30.1"
|
|
186
168
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
187
|
-
checksum = "
|
|
169
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
188
170
|
dependencies = [
|
|
189
171
|
"proc-macro2",
|
|
190
172
|
"pyo3-macros-backend",
|
|
@@ -194,52 +176,36 @@ dependencies = [
|
|
|
194
176
|
|
|
195
177
|
[[package]]
|
|
196
178
|
name = "pyo3-macros-backend"
|
|
197
|
-
version = "0.
|
|
179
|
+
version = "0.30.1"
|
|
198
180
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
199
|
-
checksum = "
|
|
181
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
200
182
|
dependencies = [
|
|
201
183
|
"heck",
|
|
202
184
|
"proc-macro2",
|
|
203
|
-
"pyo3-build-config",
|
|
204
185
|
"quote",
|
|
205
186
|
"syn",
|
|
206
187
|
]
|
|
207
188
|
|
|
208
|
-
[[package]]
|
|
209
|
-
name = "python3-dll-a"
|
|
210
|
-
version = "0.2.15"
|
|
211
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
212
|
-
checksum = "d80ba7540edb18890d444c5aa8e1f1f99b1bdf26fb26ae383135325f4a36042b"
|
|
213
|
-
dependencies = [
|
|
214
|
-
"cc",
|
|
215
|
-
]
|
|
216
|
-
|
|
217
189
|
[[package]]
|
|
218
190
|
name = "quote"
|
|
219
|
-
version = "1.0.
|
|
191
|
+
version = "1.0.47"
|
|
220
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
221
|
-
checksum = "
|
|
193
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
222
194
|
dependencies = [
|
|
223
195
|
"proc-macro2",
|
|
224
196
|
]
|
|
225
197
|
|
|
226
|
-
[[package]]
|
|
227
|
-
name = "shlex"
|
|
228
|
-
version = "1.3.0"
|
|
229
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
-
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
231
|
-
|
|
232
198
|
[[package]]
|
|
233
199
|
name = "smallvec"
|
|
234
|
-
version = "1.
|
|
200
|
+
version = "1.16.5"
|
|
235
201
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
236
|
-
checksum = "
|
|
202
|
+
checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46"
|
|
237
203
|
|
|
238
204
|
[[package]]
|
|
239
205
|
name = "syn"
|
|
240
|
-
version = "
|
|
206
|
+
version = "3.0.10"
|
|
241
207
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
-
checksum = "
|
|
208
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
243
209
|
dependencies = [
|
|
244
210
|
"proc-macro2",
|
|
245
211
|
"quote",
|
|
@@ -248,12 +214,12 @@ dependencies = [
|
|
|
248
214
|
|
|
249
215
|
[[package]]
|
|
250
216
|
name = "target-lexicon"
|
|
251
|
-
version = "0.13.
|
|
217
|
+
version = "0.13.6"
|
|
252
218
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
253
|
-
checksum = "
|
|
219
|
+
checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
|
|
254
220
|
|
|
255
221
|
[[package]]
|
|
256
222
|
name = "unicode-ident"
|
|
257
|
-
version = "1.0.
|
|
223
|
+
version = "1.0.27"
|
|
258
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
-
checksum = "
|
|
225
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|