Changelog¶
All notable changes to this project will be documented in this file.
0.3.0¶
- Breaking:
cluster + otherandassembler + othernow return a new instance and leave both operands unchanged. Use+=to addotherin place (the old behavior of "+"). - Breaking:
Assemblernow validates every constructor added withinsert,append,extend,prepend, or item assignment, and raises aTypeErrorfor anything that is not a wonka-compatible constructor. Before, onlyaddvalidated. - Added the
py.typedmarker so that type checkers use the type hints inwonka. - Added a
subsetmethod toManufacturer. - Added slice support to
Assemblerindexing, assignment, and deletion. - Added the
Parameterstype alias for theparametersargument (a mapping withstrkeys). - Fixed
Assembler.prepend, which added the contents of anAssemblerinstead of theAssembleritself. - Fixed
Registrar.create, which did not accept the keyword arguments that everyFactory.createaccepts. - Fixed
Subclasserchoosing between subclasses with the same name in a random order. Subclasses are now found in a fixed, depth-first order without duplicates. - Fixed the undefined names in the
Sourcererrecipe. - Removed the unfinished and broken
HubandKeystoneclasses, which were not exported or documented. - Removed the unused
_is_sequenceand_return_subsetutilities, the duplicate_iterify, the unusedGenericList,GenericSet, andSubsetReturnsaliases, and the commented-out code. - Updated to the
snickerdoodle0.5.0 template (Codecov coverage, a coverage page in the docs,pydoclint, Python 3.15, SPDX license metadata, a version read from__version__, GitHub CLI releases, anduvupdates from Dependabot). Added.cruft.jsonso thatcruft updatecan apply future template changes. - Removed the leftovers from
pdm(the credits page and the script that readpdm.lock) and moved the issue templates out of a nestedISSUE_TEMPLATEfolder. - Restyled the package (spaces around keyword argument
=, closing brackets on the last line, section markers, and complete docstrings). Ruff now enforces single quotes and the 80 character line limit, and ignores thetestsfolder when run by pre-commit. mypynow passes (there were 39 errors) and runs in CI.- Reorganized the tests by module, added a fixture that restores the global options after each test, and added tests for the operators, slices, validation,
subset, the dispatchers, the options, and the package metadata (100 tests in total, with 99% coverage).
0.2.2¶
- Updated to the
snickerdoodle0.4.0 template - Removed
ruff formatfrom thepre-commithooks because it removes the spaces around "=" in keyword arguments - Made
ruffprefer single quotes and converted the strings in the code to single quotes - Made
ruffignore boolean default positional arguments (FBT002) - Excluded
uv.lockfrom the large file check - Fixed typos in the contributing guide and noted that the project does not use a code formatter
- Fixed the LICENSE link in the README
0.2.1¶
- Added 'AutoRegistrar' and 'Cluster' to the package namespace and 'all'
- Added tests for 'AutoRegistrar', edge cases, options, utilities, 'Assembler', 'Manufacturer', and producers
- Changed 'AutoRegistrar' so that each direct subclass gets its own registry instead of all families sharing one
- Changed 'Assembler' 'manage' to accept keyword arguments and pass them to each constructor
- Changed 'finalize' to inject parameters as attributes when the item is an instance, instead of calling it
- Changed 'Kwargs' type alias to 'Any' and applied it consistently to '**kwargs' annotations
- Changed 'delitem' on 'Cluster' and 'Assembler' to return 'None'
- Fixed 'Sourcerer' raising 'TypeError' when an item did not match an earlier key in 'sources'
- Fixed dispatchers masking 'AttributeError' raised inside a builder method as a missing method
- Fixed 'Scribe' cloning itself instead of the item when the item was falsy
0.2.0¶
- Added example to README.md
- Added more recipes to recipes.md
- Added Registry class, offering extra functionality beyond a
dict - Added documentation to advanced.md
- Added support for Python 3.13
- Changed 'Manager' 'create' property to a proper alias method for 'manage' to preserve its signature when introspected
- Switched dependency manager to uv
0.1.5¶
- Fixed default for 'Registrar' registry class attribute
- Fixed wordwrap issue in tables in tutorial
- Added recipe to recipes.md
- Removed non-public classes and functions from documentation
- Fixed bug with Manager's
createproperty so that it properly calls themanagemethod - Changed required Python version to 3.11 or greater
0.1.4¶
- Removed empty keystons module until it is ready to prevent linting errors
- Updated out-of-date actions
- Removed extraneous actions
0.1.3¶
- Fixed unit test setting bug
0.1.2¶
- Transitioned to 0.1.9
snickerdoodletemplate - Removed all external dependencies
0.1.1¶
- Added unit tests
- Added advanced documentation and full tutorial
0.1.0¶
- Initial commit