Python2: Add funcsigs dependency

inspect.signature() was added to Python 3.3: add funcsigs on Python
2.7.

funcsigs dependency is specific to Python 2.7 and so not installed on
Python 3.

Change-Id: I951e7df9fcebdc2148cca477f4b064fc9a028e55
Related-Bug: 1726399
This commit is contained in:
Victor Stinner 2017-11-09 13:29:23 +01:00
parent 90642dd2ec
commit 50560fc91c
2 changed files with 8 additions and 1 deletions

View File

@ -11,7 +11,6 @@
# under the License.
import abc
import collections
import inspect
import logging
import threading
import time
@ -21,6 +20,11 @@ from typing import Iterable
from typing import Optional
from typing import TYPE_CHECKING
try:
import funcsigs as inspect # Python 2.7
except ImportError:
import inspect
from ospurge import exceptions
if TYPE_CHECKING: # pragma: no cover

View File

@ -2,3 +2,6 @@ os-client-config>=1.22.0 # Apache-2.0
pbr>=1.8 # Apache-2.0
shade>=1.13.1
typing>=3.5.2.2 # PSF
# Python 2.7 dependencies
funcsigs; python_version < '3.0'