never-primp 2.2.0__tar.gz → 2.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.
- {never_primp-2.2.0 → never_primp-2.4.0}/.github/workflows/build.yml +37 -6
- {never_primp-2.2.0 → never_primp-2.4.0}/Cargo.lock +184 -345
- {never_primp-2.2.0 → never_primp-2.4.0}/Cargo.toml +6 -22
- never_primp-2.4.0/PKG-INFO +707 -0
- never_primp-2.4.0/README.md +680 -0
- never_primp-2.4.0/example/browser_impersonation.py +129 -0
- never_primp-2.4.0/example/concurrent_requests.py +74 -0
- never_primp-2.4.0/example/cookie_management.py +137 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/never_primp/__init__.py +86 -22
- {never_primp-2.2.0 → never_primp-2.4.0}/never_primp/never_primp.pyi +41 -2
- {never_primp-2.2.0 → never_primp-2.4.0}/pyproject.toml +3 -2
- {never_primp-2.2.0 → never_primp-2.4.0}/src/browser_mapping.rs +16 -10
- {never_primp-2.2.0 → never_primp-2.4.0}/src/client.rs +154 -82
- never_primp-2.4.0/src/lib.rs +25 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/src/response.rs +12 -10
- never_primp-2.4.0/src/utils.rs +14 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/test.py +10 -8
- never_primp-2.2.0/PKG-INFO +0 -1069
- never_primp-2.2.0/README.md +0 -1043
- never_primp-2.2.0/example/browser_impersonation.py +0 -30
- never_primp-2.2.0/example/concurrent_requests.py +0 -50
- never_primp-2.2.0/src/lib.rs +0 -81
- never_primp-2.2.0/src/utils.rs +0 -11
- {never_primp-2.2.0 → never_primp-2.4.0}/.claude/settings.local.json +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/.gitignore +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/BUILD_STATUS.md +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/COMPLETION_REPORT.md +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/HEADER_IMPROVEMENTS.md +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/LICENSE +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/OPTIMIZATION_SUMMARY.md +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/SPLIT_COOKIES.md +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/SUMMARY.md +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/docs/IDE_GUIDE.md +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/docs//345/256/214/345/226/204/345/260/201/350/243/205/346/200/273/347/273/223.md" +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/docs//345/277/253/351/200/237/345/274/200/345/247/213_/346/231/272/350/203/275/346/217/220/347/244/272.md" +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/example/basic_usage.py +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/example/header_management_demo.py +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/example/response_guide.py +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/example/type_hints_demo.py +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/never_primp/py.typed +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/src/error.rs +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/src/runtime.rs +0 -0
- {never_primp-2.2.0 → never_primp-2.4.0}/src/types.rs +0 -0
|
@@ -29,6 +29,9 @@ jobs:
|
|
|
29
29
|
build-linux:
|
|
30
30
|
name: Build Linux ${{ matrix.target }}
|
|
31
31
|
runs-on: ubuntu-latest
|
|
32
|
+
env:
|
|
33
|
+
GITHUB_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
34
|
+
MATURIN_GIT_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
32
35
|
strategy:
|
|
33
36
|
fail-fast: false
|
|
34
37
|
matrix:
|
|
@@ -37,10 +40,13 @@ jobs:
|
|
|
37
40
|
# - aarch64 # Linux ARM64 (服务器)
|
|
38
41
|
steps:
|
|
39
42
|
- uses: actions/checkout@v4
|
|
43
|
+
- name: Configure git to use GitHub token
|
|
44
|
+
run: |
|
|
45
|
+
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
40
46
|
|
|
41
47
|
- uses: actions/setup-python@v5
|
|
42
48
|
with:
|
|
43
|
-
python-version: '3.
|
|
49
|
+
python-version: '3.9'
|
|
44
50
|
|
|
45
51
|
- name: Install dependencies
|
|
46
52
|
run: |
|
|
@@ -63,6 +69,8 @@ jobs:
|
|
|
63
69
|
ls -la $LIBCLANG_PATH/libclang.so* || true
|
|
64
70
|
|
|
65
71
|
- name: Build wheels
|
|
72
|
+
env:
|
|
73
|
+
MATURIN_GIT_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
66
74
|
uses: PyO3/maturin-action@v1
|
|
67
75
|
with:
|
|
68
76
|
target: ${{ matrix.target }}
|
|
@@ -70,6 +78,7 @@ jobs:
|
|
|
70
78
|
sccache: 'true'
|
|
71
79
|
manylinux: ${{ matrix.target == 'x86_64' && '2_28' || '2_28' }}
|
|
72
80
|
before-script-linux: |
|
|
81
|
+
git config --global url."https://x-access-token:$MATURIN_GIT_TOKEN@github.com/".insteadOf "https://github.com/"
|
|
73
82
|
# 检测包管理器并安装依赖
|
|
74
83
|
if command -v yum &> /dev/null; then
|
|
75
84
|
echo "Using yum (manylinux container)"
|
|
@@ -104,19 +113,29 @@ jobs:
|
|
|
104
113
|
build-windows:
|
|
105
114
|
name: Build Windows ${{ matrix.target }}
|
|
106
115
|
runs-on: windows-latest
|
|
116
|
+
env:
|
|
117
|
+
GITHUB_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
118
|
+
MATURIN_GIT_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
107
119
|
strategy:
|
|
108
120
|
fail-fast: false
|
|
109
121
|
matrix:
|
|
110
122
|
target: [x64]
|
|
111
123
|
steps:
|
|
112
124
|
- uses: actions/checkout@v4
|
|
113
|
-
|
|
125
|
+
- name: Configure git to use GitHub token
|
|
126
|
+
shell: bash
|
|
127
|
+
run: |
|
|
128
|
+
git config --global url."https://x-access-token:$GITHUB_TOKEN@github.com/".insteadOf "https://github.com/"
|
|
129
|
+
env:
|
|
130
|
+
GITHUB_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
114
131
|
- uses: actions/setup-python@v5
|
|
115
132
|
with:
|
|
116
|
-
python-version: '3.
|
|
133
|
+
python-version: '3.9'
|
|
117
134
|
architecture: ${{ matrix.target }}
|
|
118
135
|
|
|
119
136
|
- name: Build wheels
|
|
137
|
+
env:
|
|
138
|
+
MATURIN_GIT_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
120
139
|
uses: PyO3/maturin-action@v1
|
|
121
140
|
with:
|
|
122
141
|
target: ${{ matrix.target }}
|
|
@@ -145,6 +164,9 @@ jobs:
|
|
|
145
164
|
build-macos:
|
|
146
165
|
name: Build macOS ${{ matrix.target }}
|
|
147
166
|
runs-on: macos-latest
|
|
167
|
+
env:
|
|
168
|
+
GITHUB_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
169
|
+
MATURIN_GIT_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
148
170
|
strategy:
|
|
149
171
|
fail-fast: false
|
|
150
172
|
matrix:
|
|
@@ -153,12 +175,16 @@ jobs:
|
|
|
153
175
|
- aarch64 # Apple Silicon (M1/M2/M3)
|
|
154
176
|
steps:
|
|
155
177
|
- uses: actions/checkout@v4
|
|
156
|
-
|
|
178
|
+
- name: Configure git to use GitHub token
|
|
179
|
+
run: |
|
|
180
|
+
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
157
181
|
- uses: actions/setup-python@v5
|
|
158
182
|
with:
|
|
159
|
-
python-version: '3.
|
|
183
|
+
python-version: '3.9'
|
|
160
184
|
|
|
161
185
|
- name: Build wheels
|
|
186
|
+
env:
|
|
187
|
+
MATURIN_GIT_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
162
188
|
uses: PyO3/maturin-action@v1
|
|
163
189
|
with:
|
|
164
190
|
target: ${{ matrix.target }}
|
|
@@ -178,9 +204,14 @@ jobs:
|
|
|
178
204
|
build-sdist:
|
|
179
205
|
name: Build source distribution
|
|
180
206
|
runs-on: ubuntu-latest
|
|
207
|
+
env:
|
|
208
|
+
GITHUB_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
209
|
+
MATURIN_GIT_TOKEN: ${{ secrets.DD_TOKEN }}
|
|
181
210
|
steps:
|
|
182
211
|
- uses: actions/checkout@v4
|
|
183
|
-
|
|
212
|
+
- name: Configure git to use GitHub token
|
|
213
|
+
run: |
|
|
214
|
+
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
184
215
|
- name: Build sdist
|
|
185
216
|
uses: PyO3/maturin-action@v1
|
|
186
217
|
with:
|