From 729384584769818b3c0bdd4a7ca187dc3feee82b Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Fri, 21 Feb 2025 02:45:46 -0500 Subject: [PATCH] new: use local module --- Pipfile | 28 ++++++---------------------- setup.cfg | 4 ++++ setup.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 22 deletions(-) create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/Pipfile b/Pipfile index aaca64f..ae49145 100644 --- a/Pipfile +++ b/Pipfile @@ -1,27 +1,11 @@ [[source]] -url = "https://mirrors.cloud.tencent.com/pypi/simple" -verify_ssl = true name = "pypi" - -[packages] -numpy = "==1.26.4" -aiomysql = ">=0.1.1" -Brotli = ">=1.0.9" -creart = "==0.2.2" -creart-graia = "==0.1.5" -emoji = ">=2.2.0" -graia-ariadne = "==0.9.8" -graia-broadcast = "==0.19.2" -graia-saya = "==0.0.16" -jieba = ">=0.42.1" -matplotlib = "==3.7.1" -Pillow = "==9.5.0" -redis = ">=4.5.5" -scipy = ">=1.10.0" -wordcloud = ">=1.8.2.2" - -[dev-packages] -ipython="*" +url = "https://pypi.org/simple" +verify_ssl = true [requires] python_version = "3.11" + +[packages] +starbot-bilibili = { path = "./", editable = true } + diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..4927abe --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[egg_info] +tag_build = +tag_date = 0 + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..86b3d4f --- /dev/null +++ b/setup.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python +# coding: utf-8 +from setuptools import setup, find_namespace_packages +from os import path +this_directory = path.abspath(path.dirname(__file__)) + +with open("README.md", "r", encoding="utf-8") as f: + long_description = f.read() + +setup( + name='starbot-bilibili', + version='2.0.14', + license='GNU Affero General Public License v3.0', + description='一款极速,多功能的哔哩哔哩推送机器人', + author='LWR', + author_email='lwr1104@qq.com', + url='https://github.com/Starlwr/StarBot', + packages=find_namespace_packages(), + package_data={ + 'starbot.api': ['*.json'], + 'starbot.resource': ['*.png', '*.ttf'] + }, + install_requires=[ + 'Brotli>=1.0.9', + 'aiomysql>=0.1.1', + 'redis>=4.5.5', + 'emoji>=2.2.0', + 'graia-broadcast==0.19.2', + 'creart==0.2.2', + 'creart-graia==0.1.5', + 'graia-ariadne==0.9.8', + 'graia-saya==0.0.16', + 'jieba>=0.42.1', + 'scipy>=1.10.0', + 'Pillow==9.5.0', + 'numpy==1.24.3', + 'matplotlib==3.7.1', + 'wordcloud>=1.8.2.2' + ], + keywords='starbot', + long_description=long_description, + long_description_content_type='text/markdown', + python_requires=">=3.8" +) \ No newline at end of file