Skip to content

Use tools.versioning in more places #3833

@dangotbanned

Description

@dangotbanned

Related

Description

(#3720) added tools to simplify version bumps, but (#3829) and (#3831) are identifying more places we are still defining versions inline.

Hoping to collect all the places that required manual updates, and then close this off with some changes in (https://github.com/vega/altair/blob/ea3a6e206b31407714e3619458b3cb9d9c4d7e92/tools/versioning.py)

Examples

VEGALITE_VERSION: Final = SCHEMA_VERSION.lstrip("v")
VEGA_VERSION: Final = "5"
VEGAEMBED_VERSION: Final = "7"

VEGALITE_MIME_TYPE: Final = "application/vnd.vegalite.v5+json"

VEGA_MIME_TYPE: Final = "application/vnd.vega.v5+json"

<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@7"></script>

"$schema": "https://vega.github.io/schema/vega-lite/v5.json",

<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@7"></script>

"$schema": "https://vega.github.io/schema/vega-lite/v5.json",

assert 'src="https://cdn.jsdelivr.net/npm/vega@5' in content
assert 'src="https://cdn.jsdelivr.net/npm/vega-lite@5' in content
assert 'src="https://cdn.jsdelivr.net/npm/vega-embed@7' in content

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions