Tags: ioxiocom/firedantic
Tags
Support for Python 3.13 (#83) - Run tests on Python 3.13. - Drop support for Python 3.8, it was EOL already some time ago. - Remove the `remove_prefix`, as it was only added to make things easier on Python 3.8 (presumably not used by users of the library, but added to the changelog just in case to highlight it was removed). - Update a lot of underlying libraries. - Some fixes to get rid of complaints from mypy after updating it.
Fix issue with publishing to PyPI (#82) Publishing to PyPI failed with error: Checking dist/firedantic-0.9.0-py3-none-any.whl: ERROR InvalidDistribution: Metadata is missing required fields: Name, Version. Make sure the distribution includes the files where those fields are specified, and is using a supported Metadata-Version: 1.0, 1.1, 1.2, 2.0, 2.1, 2.2. From poetry-core 2.0.0 release notes: - Create METADATA files with version 2.3 instead of 2.2 (#707). This PR thus locks the poetry version in GitHub actions to the last 1.x series, i.e. 1.8.5.
Fix issues with indexes (#69) There were two issues with setting up indexes: 1. An AttributeError was raised when setting up indexes if there's a model that have no indexes. If you set up indexes using the approach suggested in the README, i.e. `models=get_all_subclasses(Model)`, and there's at least one sub-model that does not define `__composite_indexes__` an `AttributeError` was raised. This PR fixes that by adding the default value `None`, so you don't need to manually define it for each sub-class or make your own intermediate base class. 2. If you defined a prefix for the collections, the prefix was ignored when creating the indexes, i.e. you didn't get an index for the collection you were actually using, but for one with the same name minus the prefix.
PreviousNext