-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (123 loc) · 3.4 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (123 loc) · 3.4 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "story-toolkit"
version = "2.2.3"
description = "A comprehensive toolkit for generating engaging and coherent stories with optional LLM support"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Milad Rezanezhad", email = "milad.rezanezhad@example.com"}
]
keywords = [
"story", "writing", "narrative", "dialogue", "character",
"plot", "world-building", "nlp", "creative-writing",
"fiction", "story-generator", "llm", "openai", "claude",
"story-telling", "python", "toolkit", "cli", "templates",
"epub", "pdf", "html", "memory", "sqlite"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
"Topic :: Artistic Software",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
"nltk>=3.8.1",
"spacy>=3.7.0",
"textblob>=0.17.1",
"pydantic>=2.5.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
# LLM backends
openai = ["openai>=1.0.0"]
anthropic = ["anthropic>=0.18.0"]
local = ["ollama>=0.1.0"]
llama-cpp = ["llama-cpp-python>=0.2.0"]
# Export formats
export = [
"ebooklib>=0.18",
"reportlab>=4.0",
]
# Complete LLM support
llm = [
"openai>=1.0.0",
"anthropic>=0.18.0",
"ollama>=0.1.0",
]
# Development dependencies
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.11.0",
"black>=23.0.0",
"isort>=5.12.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
"types-pyyaml>=6.0.0",
"types-requests>=2.31.0",
]
# Documentation
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.3.0",
"myst-parser>=2.0.0",
]
# Testing
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.11.0",
]
# Complete installation
all = [
"story-toolkit[openai,anthropic,local,export,dev]"
]
[project.urls]
"Homepage" = "https://github.com/miladrezanezhad/story-toolkit"
"Bug Reports" = "https://github.com/miladrezanezhad/story-toolkit/issues"
"Source" = "https://github.com/miladrezanezhad/story-toolkit"
"Documentation" = "https://miladrezanezhad.github.io/story-toolkit/"
"Changelog" = "https://github.com/miladrezanezhad/story-toolkit/blob/main/CHANGELOG.md"
[project.scripts]
story-toolkit = "story_toolkit.cli.main:main"
[tool.black]
line-length = 100
target-version = ['py311', 'py312', 'py313']
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=story_toolkit --cov-report=html --cov-report=term"
[tool.coverage.run]
source = ["story_toolkit"]
omit = ["tests/*", "docs/*", "examples/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if __name__ == .__main__.:"
]