Skip to content

Bump python-hcl2 from 7.3.1 to 8.2.0 - #378

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/python-hcl2-8.2.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/python-hcl2-8.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 15, 2026

Copy link
Copy Markdown
Contributor

Bumps python-hcl2 from 7.3.1 to 8.2.0.

Release notes

Sourced from python-hcl2's releases.

v8.2.0

What's Changed

Changed

  • Breaking for direct cli.* imports. The CLI modules moved from a top-level cli package to hcl2.cli, so installing python-hcl2 no longer claims the generic top-level cli name. Since 8.0 the distribution installed cli/ into site-packages, where it collided with projects that have a top-level cli package of their own and made their cli.* imports resolve to the wrong module. The hcl2tojson, jsontohcl2, and hq commands and python -m hcl2 are unaffected; only code importing cli.hcl_to_json, cli.json_to_hcl, cli.hq, or cli.helpers needs to add the hcl2. prefix. No compatibility shim ships, because a shim would still occupy the colliding name. (#359)
  • The redundant cli/py.typed marker is gone; hcl2/py.typed already covers hcl2.cli. (#359)
  • Breaking for direct hcl2.utils.SerializationContext users. The context is now a frozen dataclass and SerializationContext.modify() is removed. Use context.replace(...) to derive a child context; subclasses must also be declared @dataclass(frozen=True). (#344)
  • StartRule, BodyRule, BlockRule and AttributeRule now pass a caller-supplied SerializationContext down to their children instead of discarding it, so a non-default context (e.g. inside_dollar_string=True) passed to StartRule.serialize() now changes the output.

Added

  • Python 3.14 is now tested and declared as supported. No source changes were needed; the full suite passes on 3.14 as-is. (#360)

Fixed

  • Concurrent load/loads calls no longer corrupt each other's results. All rules shared one default SerializationContext that was mutated in place during serialization, so a tuple or object parsed in one thread could come back as its inline HCL source ('[1, 2, 3]') instead of a list or dict, with no error raised. The context is now immutable, which also makes a caller-supplied context safe to share across threads. (#327, #344)

Full Changelog: amplify-education/python-hcl2@v8.1.4...v8.2.0

v8.1.4

What's Changed

Fixed

  • Parse blocks whose type or unquoted label is an HCL keyword, such as the in block in Snowflake's snowflake_schemas data source. HCL reserves no keywords, so all are now accepted as block labels. Diagnosed independently in #355. (#357)

... (truncated)

Changelog

Sourced from python-hcl2's changelog.

[8.2.0] - 2026-11-09

Changed

  • Breaking for direct cli.* imports. The CLI modules moved from a top-level cli package to hcl2.cli, so installing python-hcl2 no longer claims the generic top-level cli name. Since 8.0 the distribution installed cli/ into site-packages, where it collided with projects that have a top-level cli package of their own and made their cli.* imports resolve to the wrong module. The hcl2tojson, jsontohcl2, and hq commands and python -m hcl2 are unaffected; only code importing cli.hcl_to_json, cli.json_to_hcl, cli.hq, or cli.helpers needs to add the hcl2. prefix. No compatibility shim ships, because a shim would still occupy the colliding name. (#359)
  • The redundant cli/py.typed marker is gone; hcl2/py.typed already covers hcl2.cli. (#359)
  • Breaking for direct hcl2.utils.SerializationContext users. The context is now a frozen dataclass and SerializationContext.modify() is removed. Use context.replace(...) to derive a child context; subclasses must also be declared @dataclass(frozen=True). (#344)
  • StartRule, BodyRule, BlockRule and AttributeRule now pass a caller-supplied SerializationContext down to their children instead of discarding it, so a non-default context (e.g. inside_dollar_string=True) passed to StartRule.serialize() now changes the output.

Added

  • Python 3.14 is now tested and declared as supported. No source changes were needed; the full suite passes on 3.14 as-is. (#360)

Fixed

  • Concurrent load/loads calls no longer corrupt each other's results. All rules shared one default SerializationContext that was mutated in place during serialization, so a tuple or object parsed in one thread could come back as its inline HCL source ('[1, 2, 3]') instead of a list or dict, with no error raised. The context is now immutable, which also makes a caller-supplied context safe to share across threads. (#327, #344)

[8.1.4] - 2026-09-08

Fixed

  • Parse blocks whose type or unquoted label is an HCL keyword, such as the in block in Snowflake's snowflake_schemas data source. HCL reserves no keywords, so all are now accepted as block labels. Diagnosed independently in #355. (#357)
  • Parse keyword-named object keys reliably, fixing a regression of #148. A key such as in parsed only where the lexer fell back to NAME, so its separator and position decided whether the file parsed. (#357)

[8.1.3] - 2026-08-26

Several fixes below change the values loads() returns for input that already

... (truncated)

Commits
  • bdaf508 chore: prepare 8.2.0 release changelog (#362)
  • 0c164f3 fix: make SerializationContext immutable to stop concurrent parses corrupting...
  • 2f6d718 fix: move the CLI into the hcl2 namespace (cli → hcl2.cli) (#359)
  • 8a6b2ec feat: declare and test support for Python 3.14 (#360)
  • 5f51c8b chore: prepare 8.1.4 release changelog (#358)
  • 0f74596 fix: accept HCL keywords as block labels and object keys (#148) (#357)
  • 1874eb7 chore: prepare 8.1.3 release changelog (#325)
  • ca51f4b docs: credit contributors in the unreleased changelog entries (#322)
  • 06279a0 fix: return heredoc bodies as real multi-line values when unquoting (#303) (#...
  • 37c0b8f fix: parse heredocs with a single-character delimiter (#314) (#323)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [python-hcl2](https://github.com/amplify-education/python-hcl2) from 7.3.1 to 8.2.0.
- [Release notes](https://github.com/amplify-education/python-hcl2/releases)
- [Changelog](https://github.com/amplify-education/python-hcl2/blob/main/CHANGELOG.md)
- [Commits](amplify-education/python-hcl2@v7.3.1...v8.2.0)

---
updated-dependencies:
- dependency-name: python-hcl2
  dependency-version: 8.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file major python Pull requests that update python code labels Nov 15, 2026
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4359f991-43fd-49b0-8d00-68c1be149fb6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant