mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Add announce of Python 3.5 support dropping
This commit is contained in:
parent
0b3bcf334e
commit
72d0e2610d
|
@ -19,6 +19,7 @@ follows `Semantic versioning`_
|
||||||
- Add ``Configuration(pydantic_settings=[...])`` argument.
|
- Add ``Configuration(pydantic_settings=[...])`` argument.
|
||||||
- Drop support of Python 3.4. There are no immediate breaking changes, but Dependency Injector
|
- Drop support of Python 3.4. There are no immediate breaking changes, but Dependency Injector
|
||||||
will no longer be tested on Python 3.4 and any bugs will not be fixed.
|
will no longer be tested on Python 3.4 and any bugs will not be fixed.
|
||||||
|
- Announce the date of dropping Python 3.5 support (Jan 1st 2022).
|
||||||
- Fix ``Dependency.is_defined`` attribute to always return boolean value.
|
- Fix ``Dependency.is_defined`` attribute to always return boolean value.
|
||||||
- Fix ``envs_required=False`` behavior in ``Configuration.from_*()`` methods
|
- Fix ``envs_required=False`` behavior in ``Configuration.from_*()`` methods
|
||||||
to give a priority to the explicitly provided value.
|
to give a priority to the explicitly provided value.
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -6,6 +6,7 @@ import json
|
||||||
import sys
|
import sys
|
||||||
import importlib
|
import importlib
|
||||||
import inspect
|
import inspect
|
||||||
|
import warnings
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import asyncio
|
import asyncio
|
||||||
|
@ -32,6 +33,14 @@ else:
|
||||||
def unwire(*args, **kwargs):
|
def unwire(*args, **kwargs):
|
||||||
raise NotImplementedError('Wiring requires Python 3.6 or above')
|
raise NotImplementedError('Wiring requires Python 3.6 or above')
|
||||||
|
|
||||||
|
if sys.version_info[:2] == (3, 5):
|
||||||
|
warnings.warn(
|
||||||
|
"Dependency Injector will drop support of Python 3.5 after Jan 1st of 2022. "
|
||||||
|
"This does not mean that there will be any immediate breaking changes, "
|
||||||
|
"but tests will no longer be executed on Python 3.5, and bugs will not be addressed.",
|
||||||
|
category=DeprecationWarning,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class WiringConfiguration:
|
class WiringConfiguration:
|
||||||
"""Container wiring configuration."""
|
"""Container wiring configuration."""
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -64,6 +64,14 @@ else: # pragma: no cover
|
||||||
copy.deepcopy(obj.im_self, memo),
|
copy.deepcopy(obj.im_self, memo),
|
||||||
obj.im_class)
|
obj.im_class)
|
||||||
|
|
||||||
|
if sys.version_info[:2] == (3, 5):
|
||||||
|
warnings.warn(
|
||||||
|
"Dependency Injector will drop support of Python 3.5 after Jan 1st of 2022. "
|
||||||
|
"This does not mean that there will be any immediate breaking changes, "
|
||||||
|
"but tests will no longer be executed on Python 3.5, and bugs will not be addressed.",
|
||||||
|
category=DeprecationWarning,
|
||||||
|
)
|
||||||
|
|
||||||
config_env_marker_pattern = re.compile(
|
config_env_marker_pattern = re.compile(
|
||||||
r'\${(?P<name>[^}^{:]+)(?P<separator>:?)(?P<default>.*?)}',
|
r'\${(?P<name>[^}^{:]+)(?P<separator>:?)(?P<default>.*?)}',
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,6 +6,7 @@ import inspect
|
||||||
import importlib
|
import importlib
|
||||||
import importlib.machinery
|
import importlib.machinery
|
||||||
import pkgutil
|
import pkgutil
|
||||||
|
import warnings
|
||||||
import sys
|
import sys
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from typing import (
|
from typing import (
|
||||||
|
@ -58,6 +59,14 @@ except ImportError:
|
||||||
from . import providers
|
from . import providers
|
||||||
|
|
||||||
|
|
||||||
|
if sys.version_info[:2] == (3, 5):
|
||||||
|
warnings.warn(
|
||||||
|
"Dependency Injector will drop support of Python 3.5 after Jan 1st of 2022. "
|
||||||
|
"This does not mean that there will be any immediate breaking changes, "
|
||||||
|
"but tests will no longer be executed on Python 3.5, and bugs will not be addressed.",
|
||||||
|
category=DeprecationWarning,
|
||||||
|
)
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'wire',
|
'wire',
|
||||||
'unwire',
|
'unwire',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user