build: PEP 621 packaging (#60)

This commit is contained in:
莯凛 2024-10-07 16:33:19 +08:00 committed by GitHub
parent defcc7ad58
commit 7f400e9c61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 51 additions and 0 deletions

3
.gitignore vendored
View File

@ -100,3 +100,6 @@ ENV/
.idea/ .idea/
.pdm-python
pdm.lock
pdm.toml

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
__version__ = '1.0.0'
from .handlers import * from .handlers import *
from .clients import * from .clients import *

46
pyproject.toml Normal file
View File

@ -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