Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Merge branch 'master' of https://github.com/manimcommunity/manim into pango-text

Syrus Dark58469dc1feaa
diff --cc docs/source/changelog.rst
index 8dd4cd098,940c8efa8..d76226c06
--- a/docs/source/changelog.rst
+++ b/docs/source/changelog.rst
@@@ -60,7 -60,8 +60,9 @@@ Mobjects, Scenes, and Animation
#. The :code:`Container` class has been made into an AbstractBaseClass, i.e. in cannot be instantiated. Instead, use one of its children classes
#. The ``TextMobject`` and ``TexMobject`` objects have been deprecated, due to their confusing names, in favour of ``Tex`` and ``MathTex``. You can still, however, continue to use ``TextMobject`` and ``TexMobject``, albeit with Deprecation Warnings constantly reminding you to switch.
#. Add a :code:`Variable` class for displaying text that continuously updates to reflect the value of a python variable.
- #. Add ``PangoText`` for rendering texts using Pango.
+ #. The ``Tex`` and ``MathTex`` objects allow you to specify a custom TexTemplate using the ``template`` keyword argument.
+ #. :code:`VGroup` now supports printing the class names of contained mobjects and :code:`VDict` supports printing the internal dict of mobjects
++#. Add :class:`PangoText` for rendering texts using Pango.
Documentation
diff --cc poetry.lock
index 383684885,ad72a6a4e..2b580c0cb
--- a/poetry.lock
+++ b/poetry.lock
@@@ -74,58 -65,29 +65,56 @@@ typing-extensions = ">=3.7.4
colorama = ["colorama (>=0.4.3)"]
d = ["aiohttp (>=3.3.2)", "aiohttp-cors"]
+[[package]]
- category = "main"
- description = "cffi-based cairo bindings for Python"
+name = "cairocffi"
++version = "1.1.0"
++description = "cffi-based cairo bindings for Python"
++category = "main"
+optional = false
+python-versions = ">= 3.5"
- version = "1.1.0"
+
+[package.dependencies]
+cffi = ">=1.1.0"
- setuptools = ">=39.2.0"
+
+[package.extras]
+doc = ["sphinx", "sphinx-rtd-theme"]
+test = ["pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"]
+xcb = ["xcffib (>=0.3.2)"]
+
+[[package]]
- category = "main"
- description = "Foreign Function Interface for Python calling C code."
+name = "cffi"
++version = "1.14.3"
++description = "Foreign Function Interface for Python calling C code."
++category = "main"
+optional = false
+python-versions = "*"
- version = "1.14.3"
+
+[package.dependencies]
+pycparser = "*"
+
[[package]]
- category = "dev"
- description = "Composable command line interface toolkit"
- marker = "platform_python_implementation == \"CPython\""
name = "click"
+ version = "7.1.2"
+ description = "Composable command line interface toolkit"
+ category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
- version = "7.1.2"
[[package]]
- category = "main"
- description = "Cross-platform colored terminal text."
name = "colorama"
+ version = "0.4.3"
+ description = "Cross-platform colored terminal text."
+ category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
- version = "0.4.3"
[[package]]
- category = "main"
- description = "converts and manipulates various color representation (HSL, RVB, web, X11, ...)"
name = "colour"
+ version = "0.1.5"
+ description = "converts and manipulates various color representation (HSL, RVB, web, X11, ...)"
+ category = "main"
optional = false
python-versions = "*"
- version = "0.1.5"
[package.extras]
test = ["nose"]
@@@ -232,124 -191,88 +218,125 @@@ python-versions = ">=2.7, !=3.0.*, !=3.
pyparsing = ">=2.0.2"
six = "*"
+[[package]]
- category = "main"
- description = "CFFI-based pango-cairo bindings for Python"
+name = "pangocairocffi"
++version = "0.3.1"
++description = "CFFI-based pango-cairo bindings for Python"
++category = "main"
+optional = false
+python-versions = ">=3.5"
- version = "0.3.0"
+
+[package.dependencies]
+cairocffi = ">=1.0.2"
+cffi = ">=1.1.0"
+pangocffi = ">=0.4.0"
+
++[package.source]
++type = "legacy"
++url = "https://test.pypi.org/simple"
++reference = "testpypi"
++
+[[package]]
- category = "main"
- description = "CFFI-based pango bindings for Python"
+name = "pangocffi"
++version = "0.6.0"
++description = "CFFI-based pango bindings for Python"
++category = "main"
+optional = false
+python-versions = ">=3.5"
- version = "0.6.0"
+
+[package.dependencies]
+cffi = ">=1.1.0"
+
[[package]]
- category = "dev"
- description = "Utility library for gitignore style pattern matching of file paths."
- marker = "platform_python_implementation == \"CPython\""
name = "pathspec"
+ version = "0.8.0"
+ description = "Utility library for gitignore style pattern matching of file paths."
+ category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
- version = "0.8.0"
[[package]]
- category = "main"
- description = "Python Imaging Library (Fork)"
name = "pillow"
+ version = "7.2.0"
+ description = "Python Imaging Library (Fork)"
+ category = "main"
optional = false
python-versions = ">=3.5"
- version = "7.2.0"
[[package]]
- category = "dev"
- description = "plugin and hook calling mechanisms for python"
name = "pluggy"
+ version = "0.13.1"
+ description = "plugin and hook calling mechanisms for python"
+ category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
- version = "0.13.1"
[package.dependencies]
- [package.dependencies.importlib-metadata]
- python = "<3.8"
- version = ">=0.12"
+ importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}
[package.extras]
dev = ["pre-commit", "tox"]
[[package]]
- category = "main"
- description = "Text progress bar library for Python."
name = "progressbar"
+ version = "2.5"
+ description = "Text progress bar library for Python."
+ category = "main"
optional = false
python-versions = "*"
- version = "2.5"
[[package]]
- category = "dev"
- description = "library with cross-python path, ini-parsing, io, code, log facilities"
name = "py"
+ version = "1.9.0"
+ description = "library with cross-python path, ini-parsing, io, code, log facilities"
+ category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
- version = "1.9.0"
[[package]]
- category = "main"
- description = "Python interface for cairo"
- marker = "sys_platform != \"win32\" or sys_platform == \"win32\""
name = "pycairo"
+ version = "1.19.2"
+ description = "Python interface for cairo"
+ category = "main"
optional = false
python-versions = ">=3.5, <4"
- version = "1.19.2"
[package.source]
- reference = "testpypi"
type = "legacy"
url = "https://test.pypi.org/simple"
+ reference = "testpypi"
+[[package]]
- category = "main"
- description = "C parser in Python"
+name = "pycparser"
++version = "2.20"
++description = "C parser in Python"
++category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
- version = "2.20"
+
[[package]]
- category = "main"
- description = "Manipulate audio with an simple and easy high level interface"
name = "pydub"
+ version = "0.24.1"
+ description = "Manipulate audio with an simple and easy high level interface"
+ category = "main"
optional = false
python-versions = "*"
- version = "0.24.1"
[[package]]
- category = "main"
- description = "Pygments is a syntax highlighting package written in Python."
name = "pygments"
+ version = "2.7.1"
+ description = "Pygments is a syntax highlighting package written in Python."
+ category = "main"
optional = false
python-versions = ">=3.5"
- version = "2.7.1"
[[package]]
- category = "dev"
- description = "python code static checker"
name = "pylint"
+ version = "2.6.0"
+ description = "python code static checker"
+ category = "dev"
optional = false
python-versions = ">=3.5.*"
- version = "2.6.0"
[package.dependencies]
astroid = ">=2.4.0,<=2.5"
@@@ -508,9 -413,9 +477,9 @@@ docs = ["sphinx", "jaraco.packaging (>=
testing = ["pytest (>=3.5,<3.7.3 || >3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pytest-cov", "jaraco.test (>=3.2.0)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"]
[metadata]
- content-hash = "34e525733983f493a0736526116c1426fca0f5e5fbb526d2c89f644aa5ea646f"
- lock-version = "1.0"
+ lock-version = "1.1"
python-versions = "^3.6"
-content-hash = "2ab28ad951a028f4e1b955e7991e4449b95aa71c05d280c269d1c2254fbafd51"
++content-hash = "27f6f74e6cede608a7ce20c7aa0b5be2e13b4f59a056c373ccbbb21a957061a4"
[metadata.files]
appdirs = [
@@@ -669,12 -533,6 +638,12 @@@ packaging =
{file = "packaging-20.4-py2.py3-none-any.whl", hash = "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181"},
{file = "packaging-20.4.tar.gz", hash = "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8"},
]
+pangocairocffi = [
- {file = "pangocairocffi-0.3.0.tar.gz", hash = "sha256:9bb95712b16c4f943fe7560fb2759fb4aa9fb4e4950f92f5a687c31c08a1478c"},
++ {file = "pangocairocffi-0.3.1.tar.gz", hash = "sha256:3e8462aa7e21cfb0e4570d8ccd3a25372d85955fd45f56cc2dfb786dd2f4c338"},
+]
+pangocffi = [
+ {file = "pangocffi-0.6.0.tar.gz", hash = "sha256:bce26a098d0ce77bc5e9b6ce0cd0aa256e0abdaef22b2e667d80ad57ed4c4c1c"},
+]
pathspec = [
{file = "pathspec-0.8.0-py2.py3-none-any.whl", hash = "sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0"},
{file = "pathspec-0.8.0.tar.gz", hash = "sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061"},