Install and build¶
Install the library¶
The package declares Python 3.10 or later and PySTAC >=1,<2. The test matrix covers Python 3.10–3.14.
python -m pip install pystac-ext-themes
python -c "from pystac.extensions.themes import ThemesExtension; print(ThemesExtension.get_schema_uri())"
Install from a checkout¶
git clone https://github.com/Terradue/pystac-ext-themes.git
cd pystac-ext-themes
python -m pip install -e .
If an existing editable installation predates a packaging change, repeat the editable install in that environment.
Preview the documentation¶
From the checkout, install the package and documentation tools in a dedicated environment. Use a regular installation so the API renderer can discover the extension within PySTAC's shared namespace:
python -m pip install . "mkdocs<2" mkdocs-material "mkdocstrings[python]"
mkdocs serve
Build with warnings treated as errors:
mkdocs build --strict
Run repository checks¶
With Hatch and Task installed, run task from the checkout to execute all configured hooks. To run checks individually:
hatch run dev:check
hatch run dev:typecheck
hatch run dev:security
hatch run test:test