Updated Dockerfile to copy from /biliup/out instead of /biliup/biliup/web/public. Removed web public directory from PyInstaller and pyproject.toml includes. Adjusted build script in package.json to stop copying build output to web/public. These changes streamline the build and packaging process by consolidating output paths.
67 lines
1.8 KiB
TOML
67 lines
1.8 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 = [
|
|
"tomli-w>=1.0.0",
|
|
"psutil >= 5.4.6",
|
|
"aiofiles >= 22.1.0",
|
|
"yt-dlp >= 2025.7.21",
|
|
"Pillow >= 5.2.0",
|
|
"aiohttp[speedups] >= 3.9.5", # aio-libs/aiohttp#10519
|
|
"aiohttp_cors >= 0.7.0",
|
|
"requests >= 2.32.3",
|
|
"httpx[http2] >= 0.28.1",
|
|
"httpcore >= 1.0.7",
|
|
"PyYAML >= 4.2b1",
|
|
"streamlink >= 7.5.0",
|
|
"ykdl >= 1.8.0",
|
|
"rsa >= 4.6",
|
|
"tomli >= 1.1.0; python_version < '3.11'",
|
|
"protobuf >= 4.23.0",
|
|
"SQLAlchemy >= 2.0.0",
|
|
"alembic >= 1.12.1",
|
|
"m3u8 >= 6.0.0",
|
|
"truststore >= 0.10.1; python_version >= '3.10'",
|
|
"async-lru >= 2.0.5",
|
|
"gmssl >= 3.2.2"
|
|
]
|
|
dynamic = ["version"]
|
|
|
|
[project.optional-dependencies]
|
|
selenium = ["selenium >= 3.8.1"]
|
|
|
|
[project.scripts]
|
|
biliup = "biliup.__main__:arg_parser"
|
|
|
|
#[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__" }
|