Skip to content

Add env variable to enable/disable build freeze#2

Merged
n30111 merged 4 commits intomainfrom
switch_freeze
Aug 12, 2025
Merged

Add env variable to enable/disable build freeze#2
n30111 merged 4 commits intomainfrom
switch_freeze

Conversation

@n30111
Copy link
Collaborator

@n30111 n30111 commented Aug 11, 2025

This PR adds the following:

  1. Option to disable the plugin even when the configuration is present in the pyproject.toml
  2. Minor configuration changes related to how prerelease is configured.

@n30111 n30111 requested a review from jbedorf August 11, 2025 07:10
@n30111 n30111 marked this pull request as ready for review August 11, 2025 07:10
Copy link
Member

@jbedorf jbedorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, method looks good, but let's change the environment variable to HATCH_BUILD_FREEZE_DISABLED to make it more clear. Basically if that variable is set the freeze is disabled.

README.md Outdated
```

## Disable the plugin
By default, the plugin is enabled. To disable it, use the environment variable `HATCH_BUILD_FREEZE_ENABLED`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about changing it to HATCH_BUILD_FREEZE_DISABLED ?

@n30111
Copy link
Collaborator Author

n30111 commented Aug 12, 2025

@jbedorf ENV variable name is updated.

Copy link
Member

@jbedorf jbedorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@n30111 n30111 merged commit 7e621f5 into main Aug 12, 2025
4 checks passed
@n30111 n30111 deleted the switch_freeze branch August 12, 2025 08:18
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.

2 participants