rusty-req 0.1.6__tar.gz → 0.1.7__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.
Potentially problematic release.
This version of rusty-req might be problematic. Click here for more details.
- rusty_req-0.1.7/.github/workflows/build.yml +87 -0
- {rusty_req-0.1.6 → rusty_req-0.1.7}/Cargo.lock +1 -1
- {rusty_req-0.1.6 → rusty_req-0.1.7}/Cargo.toml +1 -1
- {rusty_req-0.1.6 → rusty_req-0.1.7}/PKG-INFO +1 -1
- {rusty_req-0.1.6 → rusty_req-0.1.7}/pyproject.toml +1 -13
- {rusty_req-0.1.6 → rusty_req-0.1.7}/sync_version.py +4 -4
- rusty_req-0.1.7/version.txt +1 -0
- rusty_req-0.1.6/.github/workflows/build.yml +0 -42
- rusty_req-0.1.6/version.txt +0 -1
- {rusty_req-0.1.6 → rusty_req-0.1.7}/.gitignore +0 -0
- {rusty_req-0.1.6 → rusty_req-0.1.7}/README.md +0 -0
- {rusty_req-0.1.6 → rusty_req-0.1.7}/src/lib.rs +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: Build and Publish Rust Python Extension
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main # 代码提交到 main 分支触发
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main # PR 目标分支为 main 时触发
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-ubuntu:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Setup Rust
|
|
18
|
+
uses: actions-rs/toolchain@v1
|
|
19
|
+
with:
|
|
20
|
+
profile: minimal
|
|
21
|
+
toolchain: stable
|
|
22
|
+
override: true
|
|
23
|
+
|
|
24
|
+
- name: Setup Python
|
|
25
|
+
uses: actions/setup-python@v4
|
|
26
|
+
with:
|
|
27
|
+
python-version: 3.12.10
|
|
28
|
+
|
|
29
|
+
- name: Upgrade pip
|
|
30
|
+
run: pip install --upgrade pip
|
|
31
|
+
|
|
32
|
+
- name: Install maturin
|
|
33
|
+
run: pip install maturin
|
|
34
|
+
|
|
35
|
+
- name: Build Rust Python extension
|
|
36
|
+
run: maturin build --release
|
|
37
|
+
|
|
38
|
+
- name: List generated wheel files
|
|
39
|
+
run: ls -lh target/wheels/*.whl || echo "No wheel files found"
|
|
40
|
+
|
|
41
|
+
- name: Upload wheels as artifact
|
|
42
|
+
uses: actions/upload-artifact@v4
|
|
43
|
+
with:
|
|
44
|
+
name: wheels-ubuntu
|
|
45
|
+
path: target/wheels/*.whl
|
|
46
|
+
|
|
47
|
+
- name: Publish to PyPI
|
|
48
|
+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
49
|
+
env:
|
|
50
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
51
|
+
run: maturin publish --skip-existing
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
build-macos:
|
|
55
|
+
runs-on: macos-latest
|
|
56
|
+
steps:
|
|
57
|
+
- uses: actions/checkout@v4
|
|
58
|
+
|
|
59
|
+
- name: Setup Rust
|
|
60
|
+
uses: actions-rs/toolchain@v1
|
|
61
|
+
with:
|
|
62
|
+
profile: minimal
|
|
63
|
+
toolchain: stable
|
|
64
|
+
override: true
|
|
65
|
+
|
|
66
|
+
- name: Setup Python
|
|
67
|
+
uses: actions/setup-python@v4
|
|
68
|
+
with:
|
|
69
|
+
python-version: 3.12.10
|
|
70
|
+
|
|
71
|
+
- name: Upgrade pip
|
|
72
|
+
run: pip install --upgrade pip
|
|
73
|
+
|
|
74
|
+
- name: Install maturin
|
|
75
|
+
run: pip install maturin
|
|
76
|
+
|
|
77
|
+
- name: Build Rust Python extension
|
|
78
|
+
run: maturin build --release
|
|
79
|
+
|
|
80
|
+
- name: List generated wheel files
|
|
81
|
+
run: ls -lh target/wheels/*.whl || echo "No wheel files found"
|
|
82
|
+
|
|
83
|
+
- name: Upload wheels as artifact
|
|
84
|
+
uses: actions/upload-artifact@v4
|
|
85
|
+
with:
|
|
86
|
+
name: wheels-macos
|
|
87
|
+
path: target/wheels/*.whl
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
name = "rusty-req"
|
|
3
|
-
version = "0.1.6"
|
|
4
|
-
edition = "2021"
|
|
5
|
-
authors = [ "kaysen <kaysen820@gmail.com>",]
|
|
6
|
-
description = "High-performance async HTTP client built with Rust for Python."
|
|
7
|
-
license = "MIT"
|
|
8
|
-
homepage = "https://github.com/KAY53N/rusty-req"
|
|
9
|
-
repository = "https://github.com/KAY53N/rusty-req"
|
|
10
|
-
documentation = "https://github.com/KAY53N/rusty-req#readme"
|
|
11
|
-
readme = "README.md"
|
|
12
|
-
|
|
13
1
|
[build-system]
|
|
14
2
|
requires = [ "maturin>=1.4,<2.0",]
|
|
15
3
|
build-backend = "maturin"
|
|
16
4
|
|
|
17
5
|
[project]
|
|
18
6
|
name = "rusty-req"
|
|
19
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.7"
|
|
20
8
|
description = "High-performance async HTTP client built with Rust for Python."
|
|
21
9
|
readme = "README.md"
|
|
22
10
|
license = "MIT"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import toml
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# 读取 version.txt
|
|
4
4
|
with open("version.txt", "r") as f:
|
|
5
5
|
version = f.read().strip()
|
|
6
6
|
|
|
7
|
-
# 更新 Cargo.toml
|
|
7
|
+
# 更新 Cargo.toml 中的 [package].version
|
|
8
8
|
cargo = toml.load("Cargo.toml")
|
|
9
9
|
cargo['package']['version'] = version
|
|
10
10
|
with open("Cargo.toml", "w") as f:
|
|
11
11
|
toml.dump(cargo, f)
|
|
12
12
|
|
|
13
|
-
# 更新 pyproject.toml
|
|
13
|
+
# 更新 pyproject.toml 中的 [project].version
|
|
14
14
|
pyproject = toml.load("pyproject.toml")
|
|
15
|
-
pyproject['
|
|
15
|
+
pyproject['project']['version'] = version # ✅ 改这里
|
|
16
16
|
with open("pyproject.toml", "w") as f:
|
|
17
17
|
toml.dump(pyproject, f)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.7
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
name: Build and Publish Rust Python Extension
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main # 代码提交到 main 分支触发
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- main # PR 目标分支为 main 时触发
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build-and-publish:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v4
|
|
16
|
-
|
|
17
|
-
- name: Setup Rust
|
|
18
|
-
uses: actions-rs/toolchain@v1
|
|
19
|
-
with:
|
|
20
|
-
profile: minimal
|
|
21
|
-
toolchain: stable
|
|
22
|
-
override: true
|
|
23
|
-
|
|
24
|
-
- name: Setup Python
|
|
25
|
-
uses: actions/setup-python@v4
|
|
26
|
-
with:
|
|
27
|
-
python-version: 3.12.11
|
|
28
|
-
|
|
29
|
-
- name: Upgrade pip
|
|
30
|
-
run: pip install --upgrade pip
|
|
31
|
-
|
|
32
|
-
- name: Install maturin
|
|
33
|
-
run: pip install maturin
|
|
34
|
-
|
|
35
|
-
- name: Build Rust Python extension
|
|
36
|
-
run: maturin build --release
|
|
37
|
-
|
|
38
|
-
- name: Publish to PyPI
|
|
39
|
-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
40
|
-
env:
|
|
41
|
-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
42
|
-
run: maturin publish --skip-existing
|
rusty_req-0.1.6/version.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.6
|
|
File without changes
|
|
File without changes
|
|
File without changes
|