added requirements file
This commit is contained in:
@ -69,7 +69,6 @@ def check_python_requirements(reqs:Dict[str,Any])->bool:
|
|||||||
if basename(prefix) != reqs[REQ_PYTHON_ENVIRONMENT]:
|
if basename(prefix) != reqs[REQ_PYTHON_ENVIRONMENT]:
|
||||||
return False, ""
|
return False, ""
|
||||||
|
|
||||||
# TODO expand these so you can specify versions
|
|
||||||
if REQ_PYTHON_MODULES in reqs:
|
if REQ_PYTHON_MODULES in reqs:
|
||||||
for module in reqs[REQ_PYTHON_MODULES]:
|
for module in reqs[REQ_PYTHON_MODULES]:
|
||||||
module_version = None
|
module_version = None
|
||||||
|
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pytest
|
||||||
|
papermill
|
||||||
|
nbformat
|
||||||
|
pyyaml
|
@ -1044,6 +1044,7 @@ class RequirementsTest(unittest.TestCase):
|
|||||||
|
|
||||||
self.assertFalse(status)
|
self.assertFalse(status)
|
||||||
|
|
||||||
|
# TODO make this test portable
|
||||||
def testPythonRequirementModuleVersions(self)->None:
|
def testPythonRequirementModuleVersions(self)->None:
|
||||||
key, python_reqs = create_python_requirements(
|
key, python_reqs = create_python_requirements(
|
||||||
modules="papermill==2.4.0")
|
modules="papermill==2.4.0")
|
||||||
@ -1113,7 +1114,7 @@ class RequirementsTest(unittest.TestCase):
|
|||||||
|
|
||||||
# Test environment value of Python requirement testings
|
# Test environment value of Python requirement testings
|
||||||
def testPythonRequirementsEnvironment(self)->None:
|
def testPythonRequirementsEnvironment(self)->None:
|
||||||
# TODO rework this test so that it actually create and runs in a new
|
# TODO rework this test so that it actually creates and runs in a new
|
||||||
# environment
|
# environment
|
||||||
if prefix != base_prefix:
|
if prefix != base_prefix:
|
||||||
key, python_reqs = create_python_requirements(
|
key, python_reqs = create_python_requirements(
|
||||||
|
Reference in New Issue
Block a user