Commit Graph

168 Commits

Author SHA1 Message Date
Roman Mogilatov
1f7a76ef5e Add provider OverridingContext 2016-03-13 22:46:32 +02:00
Roman Mogilatov
cfaaa723fe 1.14.11 release 2016-03-11 13:01:26 +02:00
Roman Mogilatov
dba896670c 1.14.10 release 2016-03-09 11:39:05 +02:00
Roman Mogilatov
ad27f44b67 1.14.9 release 2016-03-01 17:04:01 +02:00
Roman Mogilatov
fbf654d824 Update doc block for Provider.override() method 2016-03-01 16:46:13 +02:00
Roman Mogilatov
86ef17c75a Add storing of originaly decorated instance in @inject decorator 2016-03-01 16:28:05 +02:00
Roman Mogilatov
92a58cd4f9 Move fetch_cls_init() to utils module 2016-03-01 15:42:06 +02:00
Roman Mogilatov
a86df49160 Add providers @override decorator 2016-03-01 15:25:34 +02:00
Roman Mogilatov
e46ffeb1bc Make Provider.override() return overriding provider 2016-03-01 12:27:22 +02:00
Roman Mogilatov
9f2a521888 Refactor inject decorator 2016-03-01 12:25:54 +02:00
Roman Mogilatov
b53c1bbffe 1.14.8 release 2016-02-27 00:19:09 +02:00
Roman Mogilatov
b38ade5b69 1.14.7 release 2016-02-27 00:17:41 +02:00
Roman Mogilatov
9da9ef7153 1.14.6 release 2016-02-27 00:07:32 +02:00
Roman Mogilatov
beb7bbd3d9 1.14.5 release 2016-02-26 19:34:30 +02:00
Roman Mogilatov
b433a730bc Update documentation 2016-02-08 01:42:21 +02:00
Roman Mogilatov
6c26643e92 1.14.3 release 2016-02-08 00:37:39 +02:00
Roman Mogilatov
0e5ec6956e Optimize provider calls 2016-02-08 00:29:41 +02:00
Roman Mogilatov
f0f5822d14 1.14.2 release 2016-02-04 22:55:41 +02:00
Roman Mogilatov
b43a96d743 1.14.1 release 2016-02-01 23:18:07 +02:00
Roman Mogilatov
449a67eede 1.14.0 Drop support of Python 3.2 2016-01-25 15:07:11 +02:00
Roman Mogilatov
3d8de194ac Update PyPi info 2016-01-11 11:30:50 +02:00
Roman Mogilatov
ae6067b96a Transfer ownership to ETS Labs 2016-01-11 11:20:29 +02:00
Roman Mogilatov
7f46524162 1.13.0 release 2015-12-28 17:40:26 +02:00
Roman Mogilatov
319128260a Add DelegatedCallable, DelegatedFactory & DelegatedSingleton providers 2015-12-28 17:25:25 +02:00
Roman Mogilatov
0d00e2b0f5 1.12.0 release 2015-12-15 17:02:21 +02:00
Roman Mogilatov
c6b79a8052 Update catalogs and providers error messages 2015-12-15 16:47:26 +02:00
Roman Mogilatov
76e4837201 Add validation for catalog providers type 2015-12-14 11:22:55 +02:00
Roman Mogilatov
99cd7bfda6 Update catalogs API docs 2015-12-14 10:59:17 +02:00
Roman Mogilatov
1ca17fdeff Update injections API docs 2015-12-14 10:22:15 +02:00
Roman Mogilatov
f3668ed815 Make some refactorings for providers 2015-12-11 22:46:49 +02:00
Roman Mogilatov
10e76f65d7 Add validation of provided type for Factory provider 2015-12-11 16:01:07 +02:00
Roman Mogilatov
ee37558946 1.11.2 release 2015-12-11 11:40:00 +02:00
Roman Mogilatov
6b098768f6 Update changelog and injections API docs 2015-12-11 11:35:48 +02:00
Roman Mogilatov
7b611820c5 Add smarter providers representation 2015-12-11 11:18:09 +02:00
Roman Mogilatov
9ef7a961f6 Update representation of injections 2015-12-09 19:28:52 +02:00
Roman Mogilatov
5bb20a9c2d Improve representation of injections 2015-12-07 14:31:51 +02:00
Roman Mogilatov
cadcf73362 1.11.1 release 2015-11-30 12:09:56 +02:00
Roman Mogilatov
2103420fb9 1.11.0 release 2015-11-26 15:50:12 +02:00
Roman Mogilatov
449dff6282 Restrict overriding of catalogs by themselves 2015-11-26 15:11:46 +02:00
Roman Mogilatov
ab3e901d7e Add DynamicCatalog docs 2015-11-26 13:39:42 +02:00
Roman Mogilatov
7c3daf4c64 Update providers module API docs 2015-11-25 15:14:24 +02:00
Roman Mogilatov
6e6cac380b Update catalogs module API docs 2015-11-25 15:10:49 +02:00
Roman Mogilatov
f3538955c8 Update injections module API docs 2015-11-25 15:02:20 +02:00
Roman Mogilatov
b5ea234701 Update providers module API docs 2015-11-25 14:58:51 +02:00
Roman Mogilatov
934261d870 Update utils module API docs 2015-11-25 14:41:03 +02:00
Roman Mogilatov
a8fb12dcd4 Change scope of IS_PYPY and OBJECT_INIT constants in injections module to protected 2015-11-25 14:40:49 +02:00
Roman Mogilatov
ff629989bb Make DynamicCatalog.last_overriding and DeclarativeCatalog.last_overriding attributes None by default 2015-11-25 13:39:50 +02:00
Roman Mogilatov
b7f42a3ff4 Make Provider.last_overriding None by default 2015-11-25 13:25:40 +02:00
Roman Mogilatov
0a6e05657e Update catalogs API docs 2015-11-24 10:33:29 +02:00
Roman Mogilatov
09de5a6021 Update providers API docs 2015-11-24 10:33:20 +02:00
Roman Mogilatov
46a89600cb Update injections API docs 2015-11-24 10:33:10 +02:00
Roman Mogilatov
a064ce97da Update catalogs API docs 2015-11-24 09:59:53 +02:00
Roman Mogilatov
524cd78c5f Add VERSION to API docs and add test for VERSION 2015-11-23 21:46:22 +02:00
Roman Mogilatov
dcf247ad3e Update config providers API docs 2015-11-23 21:46:21 +02:00
Roman Mogilatov
91dcfea775 Update external dependency provider docs, including API, and examples 2015-11-23 21:46:20 +02:00
Roman Mogilatov
a65155ed1c Update callable provider docs, including API, and examples 2015-11-23 21:46:20 +02:00
Roman Mogilatov
cea843160c Update static providers docs, including API, and examples 2015-11-23 21:46:20 +02:00
Roman Mogilatov
61e6f2db60 Update singleton provider docs, including API, and examples 2015-11-23 21:46:19 +02:00
Roman Mogilatov
fb6deaec96 Update factory provider API docs 2015-11-23 21:46:19 +02:00
Roman Mogilatov
556c842685 Update catalogs overriding docs 2015-11-23 21:46:19 +02:00
Roman Mogilatov
e55f6ed212 Update catalog bundles docs 2015-11-23 21:46:19 +02:00
Roman Mogilatov
b29387abdd Add nocover modified for DeclarativeCatalog __getattr__(), __setattr__(), __delattr__() 2015-11-23 21:46:18 +02:00
Roman Mogilatov
801716fd92 Update catalog bundle and dynamic catalog api docs 2015-11-23 21:46:18 +02:00
Roman Mogilatov
9e4138da96 Add API docs for declarative catalog meta class 2015-11-23 21:46:18 +02:00
Roman Mogilatov
9a5e8f4a5a Update docs for declarative catalogs 2015-11-23 21:46:18 +02:00
Roman Mogilatov
dc79339cae Add errors module API docs 2015-11-23 21:46:17 +02:00
Roman Mogilatov
da4976e3c7 Add DeclarativeCatalog API docs 2015-11-23 21:46:17 +02:00
Roman Mogilatov
99b9a5648a Restrict overriding of providers with themselves 2015-11-20 13:51:36 +02:00
Roman Mogilatov
2236d77313 Refactor DeclarativeCatalog 2015-11-12 16:56:00 +02:00
Roman Mogilatov
be1ff0445d Refactor DeclarativeCatalog 2015-11-12 13:57:33 +02:00
Roman Mogilatov
4252fbfe4c Implement DeclarativeCatalog.__repr__ and add some tests for it 2015-11-12 01:00:27 +02:00
Roman Mogilatov
ed898f7fe2 Add UndefinedProviderError(Error, AttributeError) for proper work of hasattr() 2015-11-11 19:48:24 +02:00
Roman Mogilatov
9a617479cc Refactor CatalogBundle 2015-11-11 15:51:42 +02:00
Roman Mogilatov
7684bc7dcb Refactor DynamicCatalog 2015-11-11 15:45:39 +02:00
Roman Mogilatov
677e7143a2 Change CatalogBundle initialization procedure 2015-11-11 15:19:24 +02:00
Roman Mogilatov
548847f83a Remove required DynamicCatalog.name attribute 2015-11-10 19:47:59 +02:00
Roman Mogilatov
05d6db5664 Make some refactoring after DynamicCatalog implementation 2015-11-10 19:38:18 +02:00
Roman Mogilatov
b456d770b6 Implement DynamicCatalog 2015-11-10 17:58:04 +02:00
Roman Mogilatov
8b175f0b71 Refactor DeclarativeCatalog metaclass 2015-11-10 15:15:48 +02:00
Roman Mogilatov
b076b871a1 Change provider-to-catalog binding restrictions 2015-11-10 15:01:06 +02:00
Roman Mogilatov
68ce5c79ef Rename AbstractCatalog to DeclarativeCatalog 2015-11-10 10:42:29 +02:00
Roman Mogilatov
b22b893623 0.10.5 release 2015-11-04 16:32:04 +02:00
Roman Mogilatov
addbd16b3b 0.10.4 release 2015-11-02 10:58:09 +02:00
Roman Mogilatov
607e51e218 Update example docblocks 2015-10-26 12:52:52 +02:00
Roman Mogilatov
53f692a78c Fix bug with injecting entities with __getattr__ implementations 2015-10-23 18:07:52 +03:00
Roman Mogilatov
a42fefacef Update some examples 2015-10-23 17:05:24 +03:00
Roman Mogilatov
b269023f7a Improve functionality of catalog overriding 2015-10-23 16:41:21 +03:00
Roman Mogilatov
3fac75cb79 Move version number inside dependency_injector package 2015-10-23 15:20:25 +03:00
Roman Mogilatov
6dc007c8df Add functionality for using positional argument injections with @inject decorator 2015-10-23 14:44:36 +03:00
Roman Mogilatov
5bdca32779 Add Callable.injections read-only attribute for getting a full list of Callable injections 2015-10-22 17:43:29 +03:00
Roman Mogilatov
59b98959bc Add support of positional argument injections for Callable provider
Also current commit contains:
- Some refactoring of internals
- Additional unit tests for Factory and Singleton providers
2015-10-21 11:47:37 +03:00
Roman Mogilatov
9b4a7bd28c Add additional unittests for full validation of Singleton provider 2015-10-19 15:41:16 +03:00
Roman Mogilatov
824ed4f3e9 Add support of positional args for Factory & Singleton providers 2015-10-19 14:50:15 +03:00
Roman Mogilatov
7a4ffa140f Add functionality of checking catalog bundles ownership 2015-10-19 12:12:38 +03:00
Roman Mogilatov
c13bee6fb5 Add optimization for Injection.value property 2015-10-19 10:50:17 +03:00
Roman Mogilatov
53025756d8 Fix bug with injections of catalog bundles 2015-10-19 10:47:24 +03:00
Roman Mogilatov
476e867dc9 Restrict repeatedly binding of catalog providers 2015-10-17 01:00:32 +03:00
Roman Mogilatov
40dc54b64b Refactor catalog bundle 2015-10-16 23:54:51 +03:00
Roman Mogilatov
730d46f9a0 Add catalog packs 2015-10-15 20:16:40 +03:00
Roman Mogilatov
3b54763563 Change catalog subsets factory implementation 2015-10-14 18:34:50 +03:00