Skip to content

Ship ECharts' NOTICE file with its licence - #2747

Merged
Flix6x merged 3 commits into
mainfrom
ui-ship-echarts-notice
Oct 19, 2026
Merged

Flix6x merged 3 commits into
mainfrom
ui-ship-echarts-notice

Conversation

@Flix6x

@Flix6x Flix6x commented Oct 19, 2026

Copy link
Copy Markdown
Member

Description

Since #2711, the Docker image ships the UI's libraries, each with its licence. ECharts is Apache-2.0, which also requires its NOTICE file to travel with redistributed copies (§4(d)), and we only shipped its LICENSE.

  • A library can now record notices: further files its licence requires to be shipped along. They are fetched and checked against their hashes like the licence, and stored next to it.
  • ECharts records its NOTICE.
  • For a version set through FLEXMEASURES_JS_VERSIONS, notices are fetched without a hash, like its licence, and a missing one only logs a warning.
  • --print-hashes also prints the notices' hashes.
  • Added changelog item in documentation/changelog.rst

I checked the licences of all the libraries we ship: they are MIT, BSD, Apache-2.0 (ECharts) and SIL OFL 1.1 (the Poppins and Font Awesome fonts). ECharts is the only one with a NOTICE file.

How to test

  • pytest flexmeasures/ui/tests/test_vendor_assets.py. Each new assertion fails when the behaviour it covers is broken.
  • python -m flexmeasures.ui.utils.fetch_vendor_assets, then look for flexmeasures/ui/static/vendor/echarts/5.6.0/NOTICE.

Related Items

#2711, #2718

🤖 Generated with Claude Code

https://claude.ai/code/session_019bawYg67N5T5csiFdwWgZ1

Flix6x and others added 2 commits October 19, 2026 16:47
A library can now record notice files, which its licence requires to be shipped along.
They are fetched and hash-checked like its licence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bawYg67N5T5csiFdwWgZ1
Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bawYg67N5T5csiFdwWgZ1
Signed-off-by: F.N. Claessen <felix@seita.nl>
@read-the-docs-community

read-the-docs-community Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 flexmeasures | 🛠️ Build #35245116 | 📁 Comparing 516192b against latest (f6f93a9)

  🔍 Preview build  

5 files changed · ± 5 modified

± Modified

…2746)

The background fetch's lock test now also counts the fake library's notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bawYg67N5T5csiFdwWgZ1
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x added this to the 1.1.0 milestone Oct 19, 2026
@Flix6x
Flix6x merged commit 95891ba into main Oct 19, 2026
14 checks passed
@Flix6x
Flix6x deleted the ui-ship-echarts-notice branch October 19, 2026 15:24
@Flix6x Flix6x mentioned this pull request Nov 4, 2026
7 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant