Skip to content

Commit ff6e964

Browse files
committed
do not use deprecated package
Signed-off-by: Tim van Katwijk <timvankatwijk@hotmail.com>
1 parent d0c40e5 commit ff6e964

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

.packit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ jobs:
2121
srpm_build_deps:
2222
- python3-pip
2323
- python3-setuptools_scm
24-
- Deprecated

dockerfile_parse/parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import logging
1212
import os
1313
import re
14-
from deprecated import deprecated
1514
from contextlib import contextmanager
1615
from shlex import quote
1716

@@ -862,12 +861,12 @@ def context_structure(self):
862861
return instructions
863862

864863

865-
@deprecated(reason="Use image_name_from instead.")
866864
def image_from(from_value):
867865
"""
868866
:param from_value: string like "image:tag" or "image:tag AS name"
869867
:return: tuple of the image and stage name, e.g. ("image:tag", None)
870868
"""
869+
DeprecationWarning("Use image_name_from instead.")
871870
image, name = image_name_from(from_value)
872871
return str(image) if image else None, name
873872

tests/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pytest>=4.1.0
22
pytest-cov
33
pytest-html
4-
flake8
5-
Deprecated
4+
flake8

0 commit comments

Comments
 (0)