Skip to content

Commit

Permalink
🎉 NoneBot 2.0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Jun 4, 2023
1 parent a2e7f2d commit 20ce4f4
Show file tree
Hide file tree
Showing 6 changed files with 608 additions and 80 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Publish Python 🐍 distributions 📦 to PyPI
on:
release:
types: [published]
workflow_dispatch:

jobs:
build-n-publish:
name: Use Poetry to Build and publish Python 🐍 distributions 📦 to PyPI
name: Use PDM to Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest

strategy:
Expand All @@ -24,11 +25,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
- name: Install PDM
run: |
python -m pip install --upgrade pip
python -m pip install poetry --user
python -m pip install pdm --user
- name: Build and Publish distribution 📦 to PyPI
run: >-
python -m poetry publish --build -u "__token__" -p ${{ secrets.PYPI_API_TOKEN }}
python -m pdm publish -u "__token__" -P ${{ secrets.PYPI_API_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ cython_debug/
# poetry.toml

# End of https://www.toptal.com/developers/gitignore/api/python
.pdm-python
17 changes: 10 additions & 7 deletions nonebot_plugin_rimofun/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from nonebot.plugin import PluginMetadata

from .__main__ import * # noqa: F401, F403
from . import __main__ as __main__
from .config import ConfigModel, config

__version__ = "0.1.0"
__version__ = "0.1.1"
__plugin_meta__ = PluginMetadata(
"RimoFun",
"用 RimoChan 开发的工具做的一个有趣的插件",
(
name="RimoFun",
description="用 RimoChan 开发的工具做的一个有趣的插件",
usage=(
"指令列表:\n"
"注:以下指令后面带不带参数都可以,如果没带参数,Bot 将会询问你\n"
" \n"
Expand All @@ -27,6 +27,9 @@
" ▷ 介绍:不会翻译机!\n"
f" ▷ 指令:{';'.join(config.rimofun_translator_commands)}"
),
ConfigModel,
{"License": "MIT", "Author": "student_2333"},
homepage="https://github.com/lgc-NB2Dev/nonebot-plugin-rimofun",
type="application",
config=ConfigModel,
supported_adapters=["~onebot.v11"],
extra={"License": "MIT", "Author": "student_2333"},
)
Loading

0 comments on commit 20ce4f4

Please sign in to comment.