Remove legacy engine and many plugin modules, refactor upload plugins to standalone classes, and simplify package entry points. __init__.py now provides a safe __version__ fallback; __main__.py directly invokes stream_gears.main_loop. BiliWeb/BiliWebAsync plugins were adapted to use a FileInfo NamedTuple and no longer depend on engine.UploadBase/Plugin decorator. Documentation updated (README expanded with new commands and CLI/SKILL integration) and a new SKILL.md added. Workspace version bumped to 1.2.1 in Cargo.toml (lock updated accordingly).
48 lines
1.3 KiB
TOML
48 lines
1.3 KiB
TOML
[build-system]
|
|
requires = ["maturin>=1.0,<2.0"]
|
|
build-backend = "maturin"
|
|
|
|
[tool.maturin]
|
|
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
|
|
features = ["pyo3/extension-module"]
|
|
# Include additional files
|
|
#include = [ "biliup/web/public/**/*" ]
|
|
#data = "biliup/web/public"
|
|
python-packages = ["biliup"]
|
|
manifest-path = "crates/stream-gears/Cargo.toml"
|
|
|
|
[project]
|
|
name = "biliup"
|
|
readme = "README.md"
|
|
authors = [{ name = "ForgQi" }]
|
|
description = "stream download and upload"
|
|
keywords = ["bilibili douyu huya"]
|
|
urls = { Homepage = "https://github.com/ForgQi/bilibiliupload" }
|
|
requires-python = ">= 3.9"
|
|
dependencies = [
|
|
"yt-dlp >= 2025.7.21",
|
|
"aiohttp[speedups] >= 3.9.5",
|
|
"Pillow >= 5.2.0",
|
|
"requests >= 2.32.3",
|
|
"streamlink >= 7.5.0",
|
|
"rsa >= 4.6",
|
|
]
|
|
dynamic = ["version"]
|
|
|
|
[project.scripts]
|
|
biliup = "biliup.__main__:main"
|
|
|
|
#[tool.setuptools]
|
|
#license-files = ["LICENSE"]
|
|
#include-package-data = false
|
|
|
|
#[tool.setuptools.package-data]
|
|
#biliup = ["common/*.ini", "web/public/**", "web/public/build/*", "database/migration/*", "Danmaku/douyin_util/webmssdk.js"]
|
|
#
|
|
#[tool.setuptools.packages.find]
|
|
#include = ["biliup*"]
|
|
#namespaces = false
|
|
#
|
|
#[tool.setuptools.dynamic]
|
|
#version = { attr = "biliup.__version__" }
|