rusty-req 0.1.5__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.

@@ -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
@@ -18,4 +18,4 @@ target
18
18
  # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
19
19
  # and can be added to the global gitignore or merged into this file. For a more nuclear
20
20
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
21
- .idea/
21
+ .idea
@@ -1068,7 +1068,7 @@ checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
1068
1068
 
1069
1069
  [[package]]
1070
1070
  name = "rusty-req"
1071
- version = "0.1.5"
1071
+ version = "0.1.7"
1072
1072
  dependencies = [
1073
1073
  "chrono",
1074
1074
  "futures",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rusty-req"
3
- version = "0.1.5"
3
+ version = "0.1.7"
4
4
  edition = "2021"
5
5
 
6
6
  [dependencies]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rusty-req
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Classifier: Programming Language :: Python
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Rust
@@ -18,6 +18,7 @@ Project-URL: Documentation, https://github.com/KAY53N/rusty-req#readme
18
18
 
19
19
  # rusty-req
20
20
 
21
+
21
22
  基于 Rust + Python 的高性能异步请求库,适用于需要批量发送 HTTP 请求的场景。通过 Rust 实现并发请求逻辑,并通过 [maturin](https://github.com/PyO3/maturin) 封装为 Python 模块,兼具性能与易用性。
22
23
 
23
24
  ## 🔧 安装
@@ -1,5 +1,6 @@
1
1
  # rusty-req
2
2
 
3
+
3
4
  基于 Rust + Python 的高性能异步请求库,适用于需要批量发送 HTTP 请求的场景。通过 Rust 实现并发请求逻辑,并通过 [maturin](https://github.com/PyO3/maturin) 封装为 Python 模块,兼具性能与易用性。
4
5
 
5
6
  ## 🔧 安装
@@ -1,22 +1,10 @@
1
- [package]
2
- name = "rusty-req"
3
- version = "0.1.5"
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.5"
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['package']['version'] = version # 这里改为访问 package
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,8 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
4
- # Editor-based HTTP Client requests
5
- /httpRequests/
6
- # Datasource local storage ignored files
7
- /dataSources/
8
- /dataSources.local.xml
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/py_req_ext.iml" filepath="$PROJECT_DIR$/.idea/py_req_ext.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="EMPTY_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
6
- <excludeFolder url="file://$MODULE_DIR$/target" />
7
- </content>
8
- <orderEntry type="inheritedJdk" />
9
- <orderEntry type="sourceFolder" forTests="false" />
10
- </component>
11
- </module>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1 +0,0 @@
1
- 0.1.5
File without changes