Handle JuliaProject.toml properly

pull/595/head
David Anthoff 2019-03-02 09:56:13 -08:00
rodzic 3b3d2c8c84
commit c892f3fdf6
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -21,6 +21,9 @@ class JuliaProjectTomlBuildPack(PythonBuildPack):
@property
def julia_version(self):
default_julia_version = '1.1.0'
if os.path.exists(self.binder_path('JuliaProject.toml'):
project_toml = toml.load(self.binder_path('JuliaProject.toml'))
else:
project_toml = toml.load(self.binder_path('Project.toml'))
if 'compat' in project_toml:
if 'julia' in project_toml['compat']: