-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (62 loc) · 1.92 KB
/
Copy pathsetup.py
File metadata and controls
66 lines (62 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""
MarkFlow - 轻量级Markdown智能排版与发布引擎
Setup script for installation via pip.
"""
from setuptools import setup, find_packages
# 读取README(如果存在)
readme = ""
try:
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
except FileNotFoundError:
pass
setup(
name="markflow",
version="1.0.0",
description="轻量级Markdown智能排版与发布引擎",
long_description=readme,
long_description_content_type="text/markdown",
author="MarkFlow",
author_email="markflow@example.com",
license="MIT",
url="https://github.com/markflow/markflow",
keywords=["markdown", "formatter", "linter", "converter", "cli"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"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",
"Topic :: Text Processing :: Markup",
"Topic :: Utilities",
],
python_requires=">=3.7",
packages=find_packages(include=["markflow", "markflow.*"]),
package_data={
"markflow": [],
},
# 包含templates目录中的模板文件
include_package_data=True,
data_files=[
("markflow/templates", [
"templates/blog.md",
"templates/readme.md",
"templates/changelog.md",
"templates/weekly.md",
"templates/api_doc.md",
]),
],
entry_points={
"console_scripts": [
"markflow=markflow.cli:main",
],
},
zip_safe=False,
)