Skip to content

Commit

Permalink
📦 使用pdm管理项目
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvandia committed Nov 13, 2024
1 parent 6d3e1c9 commit f26c248
Show file tree
Hide file tree
Showing 7 changed files with 1,006 additions and 926 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

1 change: 1 addition & 0 deletions .pdm-python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
E:/nb-plugin/nonebot-plugin-genshin-cos/.venv/Scripts/python.exe
6 changes: 2 additions & 4 deletions nonebot_plugin_genshin_cos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
from .hoyospider import *
from .utils import *

try:
scheduler = require("nonebot_plugin_apscheduler").scheduler
except:
scheduler = None
require("nonebot_plugin_apscheduler")

try:
import ujson as json
except ModuleNotFoundError:
Expand Down
977 changes: 977 additions & 0 deletions pdm.lock

Large diffs are not rendered by default.

902 changes: 0 additions & 902 deletions poetry.lock

This file was deleted.

44 changes: 26 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
[tool.poetry]
[tool.pdm]
distribution = true

[tool.pdm.build]
includes = [
"nonebot_plugin_genshin_cos",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[project]
name = "nonebot-plugin-genshin-cos"
version = "0.3.2"
description = "米游社原神cos图获取"
authors = ["Cvandia <[email protected]>"]
license = "MIT"
authors = [
{name = "Cvandia",email = "[email protected]"},
]
dependencies = [
"nonebot-plugin-apscheduler>=0.1.3",
"nonebot-adapter-onebot>=2.0.0rc1",
"nonebot2>=2.0.0-beta.1",
"httpx>=0.19.0",
"aiofiles>=0.7.0",
"pathlib>=1.0.1",
"ujson>=5.5.0",
]
requires-python = "<4,>=3.8"
readme = "README.md"
packages = [{ include = "nonebot_plugin_genshin_cos" }]
license = {text = "MIT"}

[tool.poetry.dependencies]
nonebot-plugin-apscheduler = ">=0.1.3"
nonebot-adapter-onebot = ">=2.0.0rc1"
python = ">=3.8,<4"
nonebot2 = ">=2.0.0-beta.1"
httpx = ">=0.19.0"
aiofiles = ">=0.7.0"
pathlib = ">=1.0.1"
ujson = ">=5.5.0"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Empty file added tests/__init__.py
Empty file.

0 comments on commit f26c248

Please sign in to comment.