Repository navigation
build(release): prepare dse-research-utils 0.18.0 - #123
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Drafted by a LLM-based AI tool (Claude Code/Opus 5.5).
Summary
#121 and #122 moved the plot colours to the DSE design tokens, but consumers pin
v0.17.0and can't take them until a tag exists. This preparesdse-research-utils0.18.0. It is a minor release because the change breaks figure code.__version__is 0.18.0.v0.18.0, and link the new upgrade notes. The Python readme's package map links its plot colours section.docs/migrating-to-0.18.mdcovers:categorical_palettechanges;COLOUR_*names;docs/README.mdnamesv0.18.0as the current release. It keeps the 0.17.0 notes for projects upgrading from 0.16.2 or earlier, and lists feat(plot)!: take plot colours from the DSE design tokens #121.The release contains these changes since
v0.17.0:MUTED_TEXT_COLOURandBACKGROUND_COLOUR, andplot_heatmap(..., centre=).categorical_paletteraises above six series and returns hex strings. TheCOLOUR_*names are deprecated.notebookextra, and soall, requires jupytext 1.19.6 or later; the lock is refreshed.Python 3.14, the base requirements and the other extras are unchanged.
Downstream upgrades
Each pins research
main(a1c2656) byrevuntil the tag exists.After merging
v0.18.0on the merged commit once its checks pass.revpin withtag = "v0.18.0"and re-lock.Release text
Takes the plot colours from the DSE design tokens (#121, #122), so a group has the same colour in a research figure as on DSE's websites. This is a breaking release for figure code.
CHART_COLOURS: blue, green, orange, purple, teal and pink, in place oftab10."C1"is now green and"C3"purple.image.cmapandplot_heatmapdefault to the sequential scaledse_sequential, in place oftab10andviridis.plot_heatmap(..., centre=0.0)uses the diverging scaledse_diverging, for correlations and other signed values.sequential_palette(n)anddiverging_palette(n)return three to five ordered steps. Every categorical colour and ordered step reaches 3:1 against the white background.TEXT_COLOURis#202020andLINE_COLOURis the lighter#d2d8df, for grid lines only. The newMUTED_TEXT_COLOURis for secondary text and reference lines that carry meaning.categorical_palette(n)raisesValueErrorfor more than six series, and returns hex strings rather than RGBA tuples.categorical_palette(n, palette="tab20")keeps the old behaviour.COLOUR_*names raiseDeprecationWarning. Blue, green, orange and purple returnCHART_COLOURS[0]to[3]. Red, yellow and the dark hues keep their old values until callers choose a chart colour or an ordered step.notebookextra, and soall, requires jupytext 1.19.6 or later (build(deps): refresh Python and npm dependencies #119). Python 3.14, the base requirements and the other extras are unchanged. The documentation was condensed, and the upgrade notes for 0.16.2 and earlier were removed from the tree (docs: clarify documentation and remove superseded notes #120).No statistical, reporting or storage behaviour changes. See the 0.18.0 upgrade notes. Projects on 0.16.2 or earlier also need the 0.17.0 upgrade notes.
uv add "dse-research-utils @ git+https://github.com/dseinternational/research.git@v0.18.0#subdirectory=src/python"Downstream upgrades: dseinternational/vocabulary-growth#390, dseinternational/language-reading-predictors#710 and dspopulations/us-birth-certificates#133.
Validation
uv lock --check --offlinepasses anduv.lockis unchanged.uv sync --locked, thenuv run pytest: 1,210 passed, 15 skipped (Windows symlink and POSIX permission skips).uv run ruff check src/pythonanduv run ruff format --check src/pythonpass.npm run format:checkandnpm run spellcheckpass, with the new guide included;git diff --checkis clean.uv build --package dse-research-utilsbuildsdse_research_utils-0.18.0as a source distribution and a wheel. The wheel's metadata and__version__both report 0.18.0, and it includesplot/design_tokens/colors.json. Its requirements match a wheel built fromv0.17.0, except jupytext>=1.19.6innotebookandall.🤖 Generated with Claude Code