File size: 5,052 Bytes
ef9c1a3 |
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 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
[project]
name = "manim"
version = "0.19.0"
description = "Animation engine for explanatory math videos."
authors = [
{name = "The Manim Community Developers", email = "[email protected]"},
{name = "Grant '3Blue1Brown' Sanderson", email = "[email protected]"},
]
license = "MIT"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering",
"Topic :: Multimedia :: Video",
"Topic :: Multimedia :: Graphics",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Natural Language :: English",
]
requires-python = ">=3.9"
dependencies = [
"audioop-lts>=0.2.1 ; python_full_version >= '3.13'",
"av>=9.0.0,<14.0.0",
"beautifulsoup4>=4.12",
"click>=8.0",
"cloup>=2.0.0",
"decorator>=4.3.2",
"importlib-metadata>=8.6.1 ; python_full_version < '3.10'",
"isosurfaces>=0.1.0",
"manimpango>=0.5.0,<1.0.0",
"mapbox-earcut>=1.0.0",
"moderngl-window>=2.0.0",
"moderngl>=5.0.0,<6.0.0",
"networkx>=2.6",
"numpy>=2.0",
"numpy>=2.1 ; python_full_version >= '3.10'",
"pillow>=9.1",
"pycairo>=1.13,<2.0.0",
"pydub>=0.20.0",
"pygments>=2.0.0",
"rich>=12.0.0",
"scipy>=1.13.0",
"scipy>=1.14.0 ; python_full_version >= '3.13'",
"screeninfo>=0.7",
"skia-pathops>=0.7.0",
"srt>=3.0.0",
"svgelements>=1.8.0",
"tqdm>=4.0.0",
"typing-extensions>=4.12.0",
"watchdog>=2.0.0",
]
[project.scripts]
"manim" = "manim.__main__:main"
"manimce" = "manim.__main__:main"
[project.urls]
repository = "https://github.com/manimcommunity/manim"
documentation = "https://docs.manim.community/"
homepage = "https://www.manim.community/"
"Bug Tracker" = "https://github.com/ManimCommunity/manim/issues"
"Changelog" = "https://docs.manim.community/en/stable/changelog.html"
"X / Twitter" = "https://x.com/manim_community"
"Bluesky" = "https://bsky.app/profile/manim.community"
"Discord" = "https://www.manim.community/discord/"
[project.optional-dependencies]
gui = [
"dearpygui>=1.0.0",
]
jupyterlab = [
"jupyterlab>=4.3.4",
"notebook>=7.3.2",
]
[dependency-groups]
dev = [
"furo>=2024.8.6",
"gitpython>=3.1.44",
"matplotlib>=3.9.4",
"myst-parser>=3.0.1",
"pre-commit>=4.1.0",
"pygithub>=2.5.0",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-xdist>=2.2,<3.0",
"ruff>=0.9.3",
"sphinx>=7.4.7",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
"sphinx-reredirects>=0.1.5",
"sphinxcontrib-programoutput>=0.18",
"sphinxext-opengraph>=0.9.1",
"types-decorator>=5.1.8.20250121",
"types-pillow>=10.2.0.20240822",
"types-pygments>=2.19.0.20250107",
"psutil>=6.1.1",
"requests>=2.32.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
include = [
"/manim"
]
exclude = [
"/docker",
"/logo",
"/scripts",
]
[tool.pytest.ini_options]
markers = "slow: Mark the test as slow. Can be skipped with --skip_slow"
addopts = "--no-cov-on-fail --cov=manim --cov-report xml --cov-report term -n auto --dist=loadfile --durations=0"
[tool.isort]
profile = "black"
[tool.coverage.run]
omit = ["*tests*"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
[tool.ruff]
line-length = 88
target-version = "py39"
extend-exclude = [
".github",
".hg",
".env",
"env",
"build",
"buck-out",
"media",
]
fix = true
[tool.ruff.lint]
select = [
"A",
"B",
"C4",
"D",
"E",
"W",
"F",
"I",
"PGH",
"PT",
"SIM",
"UP",
]
ignore = [
# (sub)module shadows standard library module
"A005",
# mutable argument defaults (too many changes)
"B006",
# No function calls in defaults
# ignored because np.array() and straight_path()
"B008",
# docstring ignores - mostly stylistic
"D1",
"D203",
"D205",
"D212",
"D4",
# due to the import * used in manim
"F403",
"F405",
# Exception too broad (this would require lots of changes + re.escape) for little benefit
"PT011",
# as recommended by https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"D206",
"D300",
"E111",
"E114",
"E117",
"E501",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
# flake8-builtins
"A",
# unused expression
"B018",
# unused variable
"F841",
# from __future__ import annotations
"I002",
]
"example_scenes/*" = [
"I002",
]
"__init__.py" = [
"F401",
"F403",
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
|