Skip to content

Releases: BrianPugh/autoregistry

v0.9.1

22 Feb 20:51
68a527a
Compare
Choose a tag to compare

Bug Fixes

  • Internally, an element name is now strictly a str (previously Optional[str]). This can help out typing when doing reverse-key lookups. Other typing needs to be improved, but this is a common one that was easy to fix.

v0.9.0

07 Dec 17:17
d151e4e
Compare
Choose a tag to compare

Breaking Change

  • Subclasses of Registry are no longer registered to the base Registry class. This is to prevent cross-library mingling. Shouldn't impact most use-cases.

v0.8.3

04 Dec 22:38
Compare
Choose a tag to compare

Bug Fixes

  • RegistryDecorator should not be in the Registry registry. Fix skips registration.

v0.8.2

02 Oct 22:16
1f8e4d9
Compare
Choose a tag to compare
Merge pull request #17 from BrianPugh/descriptor

Improve function descriptor

v0.8.1

19 Sep 19:53
24ff200
Compare
Choose a tag to compare

Bug Fixes

  • Improved type hinting.

v0.8.0

05 Jul 18:17
Compare
Choose a tag to compare

Breaking Changes

  • Moved __registry_name__ to __registry__.name via _Registry object.
  • Moved __registry_config__ to __registry__.config via _Registry object.

Bug Fixes

  • Fixed recursive behavior to be more useful (and more proper implementation). See docs for details and examples.
  • Checks and disallows . and / in explicitly defined names and aliases.

v0.7.0

30 Jun 16:26
Compare
Choose a tag to compare

New Features

  • Add skip option for inheritance. Will skip registering the subclass to it's parent(s) registries.
  • Redirect registry-method overrides to work as (probably) expected. Can be disabled via redirect=False.

Bugfixes

  • Add __repr__ fallback.

v0.6.0

29 Jun 02:32
Compare
Choose a tag to compare

New Features

  • The name a class was registered under is now available at __registry_name__.

Bugfixes

  • As much of the initialization process is moved prior to the actual creation of the class. This is so the state during hooks like __init_subclass__ are as close to expected as possible. Due to limitations, the class is not yet registered to its parent registry. However, the following actions are performed prior to __init_subclass__:
    • __registry__ is created and empty.
    • __registry_config__ is created with expected configuration.
    • __registry_name__ is set.

v0.5.1

18 Jun 22:22
Compare
Choose a tag to compare

Bugfixes

  • propagate parent's registry configuration to children when recursively registering a module. Previously, submodules would erroneously use the default configuration.

v0.5.0

17 Jun 21:01
Compare
Choose a tag to compare

New Features

  • new config options: prefix and strip_prefix. These mirror the functionality of suffix and strip_suffix.
  • new config options: name and aliases. These allow you to override and add additional registration keys.
  • new config options: regex verifies registered names pass some regex validation.

See the docs for more details.

Misc

  • Update Poetry to v1.2.0b2
  • Slightly optimized config-copying code.