Skip to content

Commit f62dde5

Browse files
authored
Merge pull request #106 from fnproject/version-bump
Refresh the Python FDK dependencies to more recent versions.
2 parents 0b369a0 + fac86cf commit f62dde5

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

fdk/customer_code.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ def __init__(self, func_module_path):
5050

5151
def get_module(self):
5252
if not self.executed:
53-
import imp
53+
from importlib.machinery import SourceFileLoader
5454
fname, ext = os.path.splitext(
5555
os.path.basename(self._mod_path))
56-
self._func_module = imp.load_source(fname, self._mod_path)
56+
self._func_module = SourceFileLoader(fname, self._mod_path)\
57+
.load_module()
5758
self.executed = True
5859

5960
return self._func_module

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pbr!=2.1.0,>=2.0.0 # Apache-2.0
1+
pbr==5.4.5
22
iso8601==0.1.12
3-
pytest==4.0.1
4-
pytest-asyncio==0.9.0
5-
httptools>=0.0.10
3+
pytest==5.4.3
4+
pytest-asyncio==0.12.0
5+
httptools>=0.1.1

test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
flake8<2.7.0,>=2.6.0
22
hacking==1.1.0
3-
pytest==4.0.1
4-
pytest-cov==2.4.0
3+
pytest==5.4.3
4+
pytest-cov==2.9.0
55
attrs==19.1.0

0 commit comments

Comments
 (0)