Repository navigation
Mark 4.0.0 as the final release, add migration guide - #28
Open
lukeburden wants to merge 3 commits into
Open
lukeburden wants to merge 3 commits into
lukeburden wants to merge 3 commits into
Conversation
Django's own IntegerChoices/TextChoices (enum.Enum-based, available since Django 3.0) now cover what this library exists for, with better IDE/type-checker support and no dependency. Rather than continue maintaining a parallel constants system, mark this as the last planned release: it gives existing dependents a version compatible with currently-supported Python/Django, and the README now documents the modern equivalent for every feature (including a copy-paste DRF field for the one bit of behavior -- exposing an enum by name -- that stock DRF doesn't provide out of the box). Update the PyPI classifier to Development Status :: 7 - Inactive. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
django-konst's dynamic __getattr__/setattr-based attributes are invisible to type checkers and IDE autocomplete; Choices enum members are real declared attributes, so they work with every type checker/IDE out of the box. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Choices doesn't replicate konst's boolean-attribute and group-membership sugar (apple.purpose.cooking, apple.purpose.culinary) -- those become explicit ==/in checks. State that honestly instead of implying full feature parity. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
IntegerChoices/TextChoices(enum.Enum-based, since Django 3.0) now cover what this library was for.Development Status :: 7 - Inactive.Test plan
ruff check/ruff format --checkpasstox -e py312-dj52passes (28 tests)python -m buildsucceeds, producingdjango_konst-4.0.0publish.yml(requires PyPI trusted-publisher registration first, per the earlier CI modernization PR)🤖 Generated with Claude Code