Release crate-python v2.3.0 - #832
Open
bgunebakan wants to merge 3 commits into
Open
bgunebakan wants to merge 3 commits into
bgunebakan wants to merge 3 commits into
Conversation
Open
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 of the changes / Why this is an improvement
Added
DefaultTypeConvertersupport that decodesDataType.UUIDcolumns to Pythonuuid.UUIDobjects instead of returning the raw string.Added CrateDB column type identifiers to
DataType:INTERVAL(17),ROW(18),FLOAT_VECTOR(28),UUID(29), andREGTYPE(30). FixedConverter.get()raisingValueErrorfor column type identifiers it does not know. Unknown identifiers now fall back to the default converter.Breaking change:
connect()now raisesConnectionErrorimmediately if no configured server node responds.Breaking change:
DefaultTypeConverternow decodesDataType.BITcolumns, converting CrateDB'sB'0110'wire format to a plain string of0/1digits. Code that stripped the wrapper itself needs to be adjusted, or can restore the previous behaviour by mappingDataType.BITto a converter of its own.Fix for packaging
Our sdist include pattern was /src/crate/*.py and published sdists contained no source at all. This already reported on @mfussenegger's comment in #786 and mentioned in #792. I explored while releasing a beta package. Fixed by including
/src/crateas a directory. Also anchored the*.rst/*.txtpatterns, which matched at any depth and swept unrelated files into the sdist. I keep this fix here because it's related with package.Checklist
uv buildvs.hatch build#792