Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (54 loc) · 1.87 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (54 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[build-system]
requires = ["maturin>=1.7,<2"]
build-backend = "maturin"
[project]
name = "funget"
version = "1.2.0"
description = "Concurrent HTTP downloads and uploads for Python"
readme = "README.md"
requires-python = ">=3.12"
keywords = [ "download", "upload", "http", "range-requests",]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Rust",
]
# 零运行时依赖:实现全在 Rust 扩展里,funfile / farlog / funworker / requests /
# typer / urllib3 全部消失。
dependencies = []
license = "MIT"
license-files = ["LICENSE"]
[[project.authors]]
name = "牛哥"
email = "niuliangtao@qq.com"
[[project.authors]]
name = "farfarfun"
email = "farfarfun@qq.com"
[[project.maintainers]]
name = "牛哥"
email = "niuliangtao@qq.com"
[[project.maintainers]]
name = "farfarfun"
email = "farfarfun@qq.com"
# 没有 [project.scripts]。这个包只给 Python API,不装 funget 命令:命令行已经有
# apt / brew / cargo install / Release 二进制四条路,而 pip 这条的代价是把整个
# clap CLI 链进扩展模块,所有只用 download() 的人都得下载。顺带也不再和
# /usr/bin/funget 抢 PATH。
[project.urls]
Organization = "https://github.com/farfarfun"
Repository = "https://github.com/farfarfun/funget"
Releases = "https://github.com/farfarfun/funget/releases"
[tool.maturin]
# abi3-py312:一个 wheel 覆盖 3.12 及以后所有版本,发布矩阵因此减半。
features = ["pyo3/abi3-py312"]
module-name = "funget._funget"
python-source = "src"
# 工作区是纯虚拟的(根目录没有 [package]),所以必须显式指向扩展模块那个 crate,
# 否则 maturin 不知道该打包哪一个。
manifest-path = "crates/funget-py/Cargo.toml"
strip = true
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
ignore = [ "BLE001", "FA100",]