Build from source¶
Local build¶
Produce the wheel and sdist with uv (or build):
For plain pip build tooling, the equivalent is python -m build. Both write to
dist/:
Install a local wheel:
Verify the registration:
from pygments.lexers import get_lexer_by_name, get_lexer_for_filename
assert get_lexer_by_name("express").name == "EXPRESS"
assert get_lexer_by_name("step21").name == "STEP Part 21"
assert get_lexer_for_filename("schema.exp").name == "EXPRESS"
Project layout¶
pygments_step/
__init__.py # exported classes
express.py # ExpressLexer (ISO 10303-11)
step21.py # StepFileLexer (ISO 10303-21)
tests/
docs/ # this site
mkdocs.yml
pyproject.toml
Development¶
Clone the repository and install with the test extra:
Run tests:
Building the documentation site: