Skip to content

Commit

Permalink
bump to 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pwoolvett committed Jul 18, 2019
1 parent 74d16d6 commit e9e8d43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion petri/base_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def read_env(cls, app_name: str = "") -> Optional[str]:

@classmethod
def descendants(cls):
"""Recursive subclasses."""

children = cls.__subclasses__()
for child in children.copy():
children.extend(child.descendants())
Expand All @@ -85,7 +87,7 @@ def bootstrap_filter(
child.__fields__["ENV"].default: child
for child in cls.__subclasses__()
}

return {
default_env: setting_class
for default_env, setting_class in descendants.items()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"

[tool.poetry]
name = "petri"
version = "0.20.0"
version = "0.21.0"
description = "Handle project/application config from pyproject.toml"
authors = [
"Pablo Woolvett <pablowoolvett@gmail.com>"
Expand Down

0 comments on commit e9e8d43

Please sign in to comment.