Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #648 from Clariteia/0.2.1
Browse files Browse the repository at this point in the history
0.2.1
  • Loading branch information
Sergio García Prado authored Nov 9, 2021
2 parents 9ad4337 + 959365f commit 6a0aa0e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 38 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,8 @@ History
* Add `Lock` class as an abstract class to implement application-level locking in `minos`.
* Add `PostgreSqlLock` and `PostgreSqlLockPool`
* Replace the `MinosPool` instance creation strategy, from "create if possible or get or wait" to "get or create if possible or wait".

0.2.1 (2021-11-09)
--------------------

* Fix bug related with dependency injections over `minos.*` modules.
2 changes: 1 addition & 1 deletion minos/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.2.0"
__version__ = "0.2.1"

from .configuration import (
BROKER,
Expand Down
39 changes: 3 additions & 36 deletions minos/common/launchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
)

import logging
import re
import sys
from asyncio import (
AbstractEventLoop,
)
Expand Down Expand Up @@ -175,42 +177,7 @@ async def _setup(self) -> None:

@property
def _internal_modules(self) -> list[ModuleType]:
from minos import (
common,
)

modules = [common]
try:
# noinspection PyUnresolvedReferences
from minos import (
networks,
)

modules += [networks] # pragma: no cover
except ImportError:
pass

try:
# noinspection PyUnresolvedReferences
from minos import (
saga,
)

modules += [saga] # pragma: no cover
except ImportError:
pass

try:
# noinspection PyUnresolvedReferences
from minos import (
cqrs,
)

modules += [cqrs] # pragma: no cover
except ImportError:
pass

return modules
return [v for k, v in sys.modules.items() if re.fullmatch(r"minos\.\w+", k)]

async def _destroy(self) -> None:
"""Unwire the injected dependencies and destroys it.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "minos_microservice_common"
version = "0.2.0"
version = "0.2.1"
description = "Python Package with common Classes and Utilities used in Minos Microservices."
readme = "README.md"
repository = "https://github.com/clariteia/minos_microservice_common"
Expand Down

0 comments on commit 6a0aa0e

Please sign in to comment.