Commit Graph

12 Commits

Author SHA1 Message Date
Jakub Stasiak ae39af0ad8 Simplify pytest configuration
It seems to be doing fine on its own.

As a bonus this restores running doctests from the injector source code
which I broke when I made it a package (code in injector/__init__.py)
instead of a simple module. *But* we need to start skipping running
doctests for get_bindings on Python versions that don't support
Annotated (or don't support it well enough).
2019-12-10 02:00:19 +01:00
Jakub Stasiak 625938a77f Move the code into a package (needed for PEP 561)
If we want to distribute type information the right way and for the
tools to pick it up we need to follow PEP 561 and include a file named
py.typed. Unfortunately there's no way to include the file with
module-only distributions[1]:

    This PEP does not support distributing typing information as part of
    module-only distributions. The code should be refactored into
    a package-based distribution and indicate that the package supports
    typing as described above.

Therefore we need to have a package first - this is what this commit
does.

[1] https://www.python.org/dev/peps/pep-0561/#packaging-type-information
2019-02-07 12:43:56 +01:00
Jakub Stasiak 164188b758 Generate universal wheels 2014-01-26 22:31:11 +00:00
Alec Thomas 76cb00592e Add simple example. 2013-06-27 10:19:25 -04:00
Alec Thomas 201ec769fd Roll back README.md->rst rename. 2012-11-18 23:19:52 -05:00
Alec Thomas 14c95b2ee4 Fix some artifacts of README rename. 2012-11-16 10:20:13 -05:00
Alec Thomas dded2484d9 Add simplified and working mapping and sequence binding. 2012-02-24 15:46:53 -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 ef6a45c122 Add a "real world" example to the README.
Also touched up the README so it is now doctestable and switched to
py.test, as I couldn't figure out how to make nose doctest it.
2012-02-23 11:28:33 -05:00
Alec Thomas 4cd33a659b Add injector context and make scopes use it. 2010-11-28 00:27:26 +11:00
Alec Thomas c68c87dc20 Flesh out documentation. 2010-11-27 11:19:16 +11:00
Alec Thomas c8d79c38cf Make Key a more public interface. 2010-11-24 14:00:11 +11:00