Commit Graph

13 Commits

Author SHA1 Message Date
Nikita Melentev 40889a2e94 remove non-install requirement (fix #83) 2018-03-30 15:07:20 +11:00
Jakub Stasiak c186b8767a Fix the package installation
Broken in [1], I forgot that injector is imported in setup.py and the
dependency format I used was incorrect.

[1] 2b14948aa7
2016-10-18 16:11:17 +02:00
Jakub Stasiak 2b14948aa7 Make (Class)AssistedBuilder and ProviderOf generic classes
This doesn't provide much benefit to Injector itself but now
(Class)AssistedBuilder[T] and ProviderOf can be used in type hints[1]
like this:

    class Class:
        def __init__(self, builder: AssistedBuilder[OtherClass]):
            # ...

By being able to do that projects using Injector will gain more static
type safety when tool like mypy is used to lint the code.

Python 2.6 support is dropped because the typing module requires Python
2.7 or newer.

[1] https://docs.python.org/3/library/typing.html
2016-10-18 13:55:48 +02:00
Jakub Stasiak 6f22b5eac7 Add some package keywords 2013-08-28 23:16:02 +01:00
Alec Thomas 66142afe8c Convert README.md to RST for PyPi. Bump to 0.7.6.
Fixes #26.
2013-08-10 10:52:07 -04:00
Alec Thomas ac80271553 Whoops. 2013-06-27 16:47:48 -04:00
Alec Thomas 201ec769fd Roll back README.md->rst rename. 2012-11-18 23:19:52 -05:00
Alec Thomas e2361667e6 Bump version. 2012-11-18 22:51:54 -05:00
Alec Thomas c70ed6be7d Release 0.5.0
- Python 3 compatibility thanks to @didrocks.
- Allow unicode keys to Key().
- Add @threadlocal scope.
- Add @with_injector method decorator for helping with test boilerplate.
2012-11-16 09:52:12 -05:00
Alec Thomas 890e5bfe60 Fix setup.py. 2012-02-24 16:06:44 -05:00
Alec Thomas 1f075896a7 Clean up test running with py.test.
Also moved into a package and removed duplicate docs in injector.py.
2012-02-23 16:16:33 -05:00
Alec Thomas 4cd33a659b Add injector context and make scopes use it. 2010-11-28 00:27:26 +11:00
Alec Thomas bfef950c4f Flesh out the README. 2010-11-26 01:33:37 +11:00