diff --git a/lower-constraints.txt b/lower-constraints.txt index 50ec14b6b..e55bc0625 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -1,6 +1,5 @@ coverage==5.3.1 decorator===4.4.2 -deprecation==2.1.0 docker==4.4.1 fixtures==3.0.0 Jinja2==2.11.2 diff --git a/requirements.txt b/requirements.txt index 8e09e8fb2..18ed331a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ # Tobiko framework requirements decorator>=4.4.2 # BSD -deprecation>=2.1.0 # Apache-2.0 docker>=4.4.1 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD Jinja2>=2.11.2 # BSD diff --git a/tobiko/__init__.py b/tobiko/__init__.py index 2800ee881..8d4f018e5 100644 --- a/tobiko/__init__.py +++ b/tobiko/__init__.py @@ -19,7 +19,6 @@ import sys from tobiko.common import _cached from tobiko.common import _case from tobiko.common import _config -from tobiko.common import _deprecation from tobiko.common import _detail from tobiko.common import _exception from tobiko.common import _fixture @@ -67,8 +66,6 @@ retry_test_case = _case.retry_test_case run_test = _case.run_test sub_test = _case.sub_test -deprecated = _deprecation.deprecated - details_content = _detail.details_content tobiko_config = _config.tobiko_config diff --git a/tobiko/common/_deprecation.py b/tobiko/common/_deprecation.py deleted file mode 100644 index 9fc06f517..000000000 --- a/tobiko/common/_deprecation.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2021 Red Hat -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -from __future__ import absolute_import - -import deprecation - -from tobiko import version - - -def deprecated(deprecated_in: str = None, - removed_in: str = None, - details=""): - return deprecation.deprecated(deprecated_in=deprecated_in, - removed_in=removed_in, - current_version=version.version, - details=details) diff --git a/upper-constraints.txt b/upper-constraints.txt index 04e2e250b..ea54398f6 100644 --- a/upper-constraints.txt +++ b/upper-constraints.txt @@ -61,7 +61,6 @@ debtcollector===2.5.0 decorator===5.1.1;python_version=='3.8' defusedxml===0.7.1 Deprecated===1.2.13 -deprecation===2.1.0 dfs-sdk===1.2.27 dib-utils===0.0.11 directord===0.12.0