diff --git a/.gitignore b/.gitignore index 101adc4..96fbcac 100644 --- a/.gitignore +++ b/.gitignore @@ -100,3 +100,6 @@ ENV/ .idea/ +.pdm-python +pdm.lock +pdm.toml diff --git a/blivedm/__init__.py b/blivedm/__init__.py index e3e5b60..9248087 100644 --- a/blivedm/__init__.py +++ b/blivedm/__init__.py @@ -1,3 +1,5 @@ # -*- coding: utf-8 -*- +__version__ = '1.0.0' + from .handlers import * from .clients import * diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8cecd98 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +requires = ["pdm-backend"] +build-backend = "pdm.backend" + +[project] +name = "blivedm" +dynamic = ["version"] +description = "Python获取bilibili直播弹幕的库,使用WebSocket协议" +readme = "README.md" +keywords = ["bilibili", "bilibili-live", "danmaku"] +requires-python = ">=3.8" +authors = [ + {name = "xfgryujk", email = "xfgryujk@126.com"}, +] +license = {file = "LICENSE"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Framework :: AsyncIO", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Software Development :: Libraries", +] +dependencies = [ + "aiohttp~=3.9.0", + "Brotli~=1.1.0", + "yarl~=1.9.3", +] + +[project.urls] +Homepage = "https://github.com/xfgryujk/blivedm" +Repository = "https://github.com/xfgryujk/blivedm" +Issues = "https://github.com/xfgryujk/blivedm/issues" + +[tool.pdm] +version = {source = "file", path = "blivedm/__init__.py"} +distribution = true