113 lines
3.2 KiB
Python
113 lines
3.2 KiB
Python
|
|
"""
|
|||
|
|
社交媒体自动发布器
|
|||
|
|
一个统一的社交媒体自动化发布平台,支持小红书和抖音的内容自动发布。
|
|||
|
|
"""
|
|||
|
|
|
|||
|
|
from setuptools import setup, find_packages
|
|||
|
|
from pathlib import Path
|
|||
|
|
|
|||
|
|
# 读取 README 文件
|
|||
|
|
this_directory = Path(__file__).parent
|
|||
|
|
long_description = (this_directory / "README.md").read_text(encoding='utf-8')
|
|||
|
|
|
|||
|
|
# 读取版本信息
|
|||
|
|
version = "1.0.0"
|
|||
|
|
|
|||
|
|
setup(
|
|||
|
|
name="social-media-auto-publisher",
|
|||
|
|
version=version,
|
|||
|
|
author="Your Name",
|
|||
|
|
author_email="your.email@example.com",
|
|||
|
|
description="统一的社交媒体自动化发布平台",
|
|||
|
|
long_description=long_description,
|
|||
|
|
long_description_content_type="text/markdown",
|
|||
|
|
url="https://github.com/your-username/social-media-auto-publisher",
|
|||
|
|
packages=find_packages(),
|
|||
|
|
classifiers=[
|
|||
|
|
"Development Status :: 4 - Beta",
|
|||
|
|
"Intended Audience :: Developers",
|
|||
|
|
"License :: OSI Approved :: MIT License",
|
|||
|
|
"Operating System :: OS Independent",
|
|||
|
|
"Programming Language :: Python :: 3",
|
|||
|
|
"Programming Language :: Python :: 3.8",
|
|||
|
|
"Programming Language :: Python :: 3.9",
|
|||
|
|
"Programming Language :: Python :: 3.10",
|
|||
|
|
"Programming Language :: Python :: 3.11",
|
|||
|
|
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|||
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|||
|
|
"Topic :: Utilities",
|
|||
|
|
],
|
|||
|
|
python_requires=">=3.8",
|
|||
|
|
install_requires=[
|
|||
|
|
"playwright>=1.40.0",
|
|||
|
|
"loguru>=0.7.0",
|
|||
|
|
"aiofiles>=23.0.0",
|
|||
|
|
"asyncio-throttle>=1.0.2",
|
|||
|
|
"pandas>=2.0.0",
|
|||
|
|
"pydantic>=2.0.0",
|
|||
|
|
"Pillow>=10.0.0",
|
|||
|
|
"opencv-python>=4.8.0",
|
|||
|
|
"moviepy>=1.0.3",
|
|||
|
|
"python-dotenv>=1.0.0",
|
|||
|
|
"pyyaml>=6.0",
|
|||
|
|
"cryptography>=41.0.0",
|
|||
|
|
"python-dateutil>=2.8.0",
|
|||
|
|
"pytz>=2023.3",
|
|||
|
|
"httpx>=0.25.0",
|
|||
|
|
"aiohttp>=3.9.0",
|
|||
|
|
"click>=8.1.0",
|
|||
|
|
"tqdm>=4.66.0",
|
|||
|
|
"rich>=13.0.0",
|
|||
|
|
],
|
|||
|
|
extras_require={
|
|||
|
|
"dev": [
|
|||
|
|
"pytest>=7.4.0",
|
|||
|
|
"pytest-asyncio>=0.21.0",
|
|||
|
|
"pytest-cov>=4.1.0",
|
|||
|
|
"black>=23.0.0",
|
|||
|
|
"flake8>=6.0.0",
|
|||
|
|
"mypy>=1.5.0",
|
|||
|
|
],
|
|||
|
|
"api": [
|
|||
|
|
"fastapi>=0.103.0",
|
|||
|
|
"uvicorn>=0.23.0",
|
|||
|
|
],
|
|||
|
|
"ui": [
|
|||
|
|
"streamlit>=1.28.0",
|
|||
|
|
],
|
|||
|
|
"scheduler": [
|
|||
|
|
"schedule>=1.2.0",
|
|||
|
|
"redis>=4.6.0",
|
|||
|
|
"celery>=5.3.0",
|
|||
|
|
],
|
|||
|
|
},
|
|||
|
|
entry_points={
|
|||
|
|
"console_scripts": [
|
|||
|
|
"smp=social_media_auto_publisher.cli:main",
|
|||
|
|
],
|
|||
|
|
},
|
|||
|
|
include_package_data=True,
|
|||
|
|
package_data={
|
|||
|
|
"social_media_auto_publisher": [
|
|||
|
|
"config/*.yaml",
|
|||
|
|
"config/*.json",
|
|||
|
|
"assets/*.js",
|
|||
|
|
"assets/*.css",
|
|||
|
|
],
|
|||
|
|
},
|
|||
|
|
keywords=[
|
|||
|
|
"social media",
|
|||
|
|
"automation",
|
|||
|
|
"xiaohongshu",
|
|||
|
|
"douyin",
|
|||
|
|
"publisher",
|
|||
|
|
"bot",
|
|||
|
|
"selenium",
|
|||
|
|
"playwright",
|
|||
|
|
],
|
|||
|
|
project_urls={
|
|||
|
|
"Bug Reports": "https://github.com/your-username/social-media-auto-publisher/issues",
|
|||
|
|
"Source": "https://github.com/your-username/social-media-auto-publisher",
|
|||
|
|
"Documentation": "https://social-media-auto-publisher.readthedocs.io/",
|
|||
|
|
},
|
|||
|
|
)
|