Skip to content

Tools - update TZ formatter script - #9340

Merged
mcspr merged 2 commits into
esp8266:masterfrom
mcspr:worklow-time
Nov 7, 2026
Merged

mcspr merged 2 commits into
esp8266:masterfrom
mcspr:worklow-time

Conversation

@mcspr

@mcspr mcspr commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator
  • correctly handle .zip'ed resources, get rid of useless mmap
    paths handling now assumes tzdata resources by default, and
    uses pathlib.Path ones otherwise
  • add extra command line flags to describe the desired output
    specifically
    • some tzdata names list (default behaviour)
    • iana area name
    • iana key
    • iana key link
    • raw tz variable
  • handle renames/aliases/missing names by explicitly linking them
    command line flags updated to reflect the order of operations
    (i.e. that zones file is read first, then our links are checked for existence and dropped if they were already mentioned / target key doesnt exist)
  • sort & make sure tz names are unique

inline deps for uv-run & uv-lock, assume runtime is independent of other scripts
helper workflow file to remotely push-n-update the repo
(although, not sure if the workflow would work for the org; forks obviously work, would pr from there otherwise)

mcspr added 2 commits November 7, 2026 20:15
- correctly handle .zip'ed resources, get rid of useless mmap
  paths handling now assumes tzdata resources by default, and
  uses pathlib.Path ones otherwise
- handle renames/aliases/missing names by updating the output list
  command line flags updated to reflect the order of operations

inline deps for uv-run & uv-lock, assume runtime is independent of other scripts
@mcspr
mcspr merged commit 74144bc into esp8266:master Nov 7, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant