mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
Transfer errors module to Cython
This commit is contained in:
parent
78cb4296cc
commit
74aea6f1dc
|
@ -10,6 +10,7 @@ follows `Semantic versioning`_
|
||||||
Development version
|
Development version
|
||||||
-------------------
|
-------------------
|
||||||
- Add ``dependency_injector.injections`` module (C extension).
|
- Add ``dependency_injector.injections`` module (C extension).
|
||||||
|
- Transfer ``dependency_injector.errors`` module to Cython (C extension).
|
||||||
- Remove ``@inject`` decorator.
|
- Remove ``@inject`` decorator.
|
||||||
- Add makefile (``clean``, ``test``, ``build``, ``install``, ``uninstall``
|
- Add makefile (``clean``, ``test``, ``build``, ``install``, ``uninstall``
|
||||||
& ``publish`` commands).
|
& ``publish`` commands).
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -50,6 +50,10 @@ setup(name='dependency-injector',
|
||||||
['src/dependency_injector/injections.c'],
|
['src/dependency_injector/injections.c'],
|
||||||
define_macros=defined_macros,
|
define_macros=defined_macros,
|
||||||
extra_compile_args=['-O2']),
|
extra_compile_args=['-O2']),
|
||||||
|
Extension('dependency_injector.errors',
|
||||||
|
['src/dependency_injector/errors.c'],
|
||||||
|
define_macros=defined_macros,
|
||||||
|
extra_compile_args=['-O2']),
|
||||||
],
|
],
|
||||||
package_data={
|
package_data={
|
||||||
'dependency_injector': ['*.pxd'],
|
'dependency_injector': ['*.pxd'],
|
||||||
|
|
8
src/dependency_injector/errors.pxd
Normal file
8
src/dependency_injector/errors.pxd
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
"""Dependency injector errors.
|
||||||
|
|
||||||
|
Powered by Cython.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
cdef class Error(Exception):
|
||||||
|
pass
|
|
@ -1,7 +1,10 @@
|
||||||
"""Dependency injector errors module."""
|
"""Dependency injector errors.
|
||||||
|
|
||||||
|
Powered by Cython.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
class Error(Exception):
|
cdef class Error(Exception):
|
||||||
"""Base error.
|
"""Base error.
|
||||||
|
|
||||||
All dependency injector errors extend this error class.
|
All dependency injector errors extend this error class.
|
|
@ -1,6 +1,6 @@
|
||||||
"""Dependency injector injections.
|
"""Dependency injector injections.
|
||||||
|
|
||||||
Cython optimized code.
|
Powered by Cython.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
cimport cython
|
cimport cython
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Dependency injector injections.
|
"""Dependency injector injections.
|
||||||
|
|
||||||
Cython optimized code.
|
Powered by Cython.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
cimport cython
|
cimport cython
|
||||||
|
|
Loading…
Reference in New Issue
Block a user