Skip to content

Commit

Permalink
Use Cargo for dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
larose committed May 16, 2020
1 parent fc4e665 commit 76551c2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 98 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.25 (2020-05-16)

* Use Cargo for dependency injection.

## 1.24 (2020-05-16)

* Migrate from Pipenv to Poetry
Expand Down
14 changes: 13 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ version = "0" # Do not change. Updated by a script.

[tool.poetry.dependencies]
argcomplete = "1.11.1"
cargo = "0.3"
python = "^3.7"
python_dateutil = "2.8.1"
pytz = "2019.3"
Expand Down
5 changes: 3 additions & 2 deletions utt/api/_v1/_private.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from configparser import ConfigParser
from typing import Any, Type

from ... import ioc
import cargo

from ...command import Command
from ...components.activities import Activities, activities
from ...components.add_entry import AddEntry
Expand All @@ -28,7 +29,7 @@


def create_container():
_container = ioc.Container()
_container = cargo.containers.Standard()

_container[Activities] = activities
_container[AddEntry] = AddEntry
Expand Down
95 changes: 0 additions & 95 deletions utt/ioc.py

This file was deleted.

0 comments on commit 76551c2

Please sign in to comment.