python-color-math 0.2.19__tar.gz → 0.2.20__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_color_math-0.2.19/python_color_math.egg-info → python_color_math-0.2.20}/PKG-INFO +1 -1
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/__init__.py +1 -1
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/ipython.py +2 -4
- {python_color_math-0.2.19 → python_color_math-0.2.20}/pyproject.toml +1 -1
- {python_color_math-0.2.19 → python_color_math-0.2.20/python_color_math.egg-info}/PKG-INFO +1 -1
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_ipython.py +5 -3
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_mcp_hardcore.py +4 -4
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_mcp_server.py +4 -4
- {python_color_math-0.2.19 → python_color_math-0.2.20}/.pre-commit-hooks.yaml +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/LICENSE +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/MANIFEST.in +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/README.md +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/__main__.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/adapters.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/colormath.default.json +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/completions.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/config.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/__init__.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/align.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/block.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/derivative.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/equation.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/generic.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/integral.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/limit.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/matrix.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/semantic.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/unicode_converter.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/custom_definitions.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/gui.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/io.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/jupyter.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/main.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/mcp.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/mcp_server.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/__init__.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/alignment.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/braket.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/constants.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/delimiters.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/differentials.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/dimensionless.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/frontmatter.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/latex_spans.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/markdown_scanner.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/math_parser.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/physics.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/scanner.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/taxonomy.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/units.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/variable_hash.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/py.typed +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/self_test.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/tutorial.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/undo.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/unicode.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/utils/__init__.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/utils/coloring.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/utils/latex_helpers.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/utils/spans.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math/__init__.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math/__main__.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/SOURCES.txt +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/dependency_links.txt +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/entry_points.txt +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/requires.txt +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/top_level.txt +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/setup.cfg +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_adversarial.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_cli.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_config_tolerance.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_custom_definitions.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_extreme_adversarial.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_features.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_frontmatter.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_fuzz.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_gui.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_physics.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_unicode.py +0 -0
- {python_color_math-0.2.19 → python_color_math-0.2.20}/tests/test_unicode_converter.py +0 -0
|
@@ -80,11 +80,9 @@ if HAS_IPYTHON:
|
|
|
80
80
|
self._auto_hook_active = False
|
|
81
81
|
self._orig_math_repr = None
|
|
82
82
|
palette, options, _ = load_config()
|
|
83
|
-
|
|
84
|
-
get_global_config_path() and get_global_config_path().exists()
|
|
85
|
-
)
|
|
83
|
+
cfg_path, _ = find_config_path()
|
|
86
84
|
self._palette = palette
|
|
87
|
-
self._options = options if
|
|
85
|
+
self._options = options if cfg_path is not None else ColorMathOptions.extended()
|
|
88
86
|
|
|
89
87
|
def _parse_magic_args(self, arg_str: str) -> tuple[str | None, ColorMathOptions, str]:
|
|
90
88
|
"""Parse leading flags (--theme, -v, --variables) without corrupting LaTeX backslashes."""
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-color-math"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.20"
|
|
8
8
|
description = "A fast, local semantic LaTeX colorizer for Markdown, Jupyter, and LaTeX math equations."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -7,10 +7,10 @@ import json
|
|
|
7
7
|
import tempfile
|
|
8
8
|
import time
|
|
9
9
|
import unittest
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
try:
|
|
11
|
+
import mcp
|
|
12
|
+
except ImportError:
|
|
13
|
+
raise unittest.SkipTest("mcp not installed")
|
|
14
14
|
|
|
15
15
|
from color_math.mcp_server import create_mcp_server
|
|
16
16
|
|
|
@@ -4,10 +4,10 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import tempfile
|
|
6
6
|
import unittest
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
try:
|
|
8
|
+
import mcp
|
|
9
|
+
except ImportError:
|
|
10
|
+
raise unittest.SkipTest("mcp not installed")
|
|
11
11
|
|
|
12
12
|
from color_math.mcp_server import create_mcp_server
|
|
13
13
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/converters/unicode_converter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_color_math-0.2.19 → python_color_math-0.2.20}/color_math/parsers/markdown_scanner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_color_math-0.2.19 → python_color_math-0.2.20}/python_color_math.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|